Showing posts with label default. Show all posts
Showing posts with label default. Show all posts

Wednesday, March 28, 2012

Extenders: Sub-categories for properties in design-mode?

I noticed that when creating properties for an extender control that they appear by default on the target control properties display in the designer all under the same category (the extender control name). The <category> attribute of the extender properties seems simply to be ignored. My control has a lot of properties (client-side charts) and it would be nice to be able to categorize them.

Is there a way to actually create sub-categories under the ExtenderName category for properties on the targeted control?

Thanks in advance,
Pascal

Unfortutately not, the property grid doesn't support categories on sub-objects. There really isn't a clean solution for this as an extender, but based on your description, I'm not sure an extender is what you really want to be using.

My guess is that you want to write a control that emits an extender as part of it's rendering process. That way, you can expose the properties via your control as you would a normal component, and then just pass those values down to the extender via code.

Monday, March 26, 2012

Exposing Web Services from an ASPX page does not work

Hi All,

I am working with ATLAS technology. i am trying to imitatehttp://atlas.asp.net/quickstart/atlas/doc/services/default.aspx#webpage
"Exposing Web Services from an ASPX page"

i am having an aspx page which is inherited from our own Page class not from System.Web.UI.Page.

public partial class MainSearchPage : some namespace.MyPage

but this example does not work in this context.because in javascript, function OnWebRequestComplete1(result) returns null as result.

please help me in this issue.

thanks
Jaideep

hello.

well, i think that it should work. here's an example:

pypage.cs
namespace Test
{
public class MyPage:Page
{
[WebMethod]
public string HelloWorld(string s)
{
return "Hello '" + s + "'";
}
}
}

now, the aspx page:


Untitled Page

function handle()
{
PageMethods.HelloWorld( "Luis", handleComplete );
}

function handleComplete( res )
{
alert( res );
}

here everything is working properly...

Yes, this should work. To debug your issue, I would try:

Check on the server whether your method gets called at all.

yes, my server side code in code behind of aspx is not getting called.
in javascript side:

function handle()

{

PageMethods.HelloWorld("jaideep", handleComplete );

}

function handleComplete( res )

{

debug.dump(res,"Result",true);

alert( res );

}

in debugger, result is null.also my aspx is having one user control also.i tried to put debug in my code behind.but function HelloWorld is not getting called.

any clue as to what is happening.
thanks

jaideep


after viewing request/response in Fiddler ,i got a message indicating a corrupted viewstate.
same is the problem in following post:
http://forums.asp.net/1205269/ShowPost.aspx "ViewState and Atlas ".
and as per the instruction given , i removed "type =="hidden" condition from file
Atlas.js on line 3495.and now it is working!! but this approach is correct or not?
please let me know about this.
Thanks

JAideep


Copying my reply from the other thread:

I tried a few things, but was not able to repro. Could you give this a try with the March CTP to see if it still happens?

thanks,
David

Saturday, March 24, 2012

example "Using the ASP.Net "Atlas" XmlDataSource control" doesnt work!

on :http://atlas.asp.net/docs/atlas/doc/data/default.aspx#XmlDataSource, the "Using the ASP.Net "Atlas" XmlDataSource control" doesn't work.
On click of the link, I redirect it to the http://www.asp.net/forums page.

Can someone help me solving the problem?

Thanks in advace,
Stefano

Stefano,

This appears to work for me. Can you please try it again in a new browser window? Alternatively, you can go tohttp://atlas.asp.net/docs/atlas/doc/data/default.aspxand then scroll down.

Thanks,

Shanku


Sorry, I did not mean to say that the link does not work, but that the example does not work.
If I click "Run it" button in the examples it opens the page: http://atlas.asp.net/docs/atlas/samples/data/XmlDataSource.aspx.
If I click the "Sample Post" link, I redirect to the http://www.asp.net/forums page.

example "Returning a DataTable" doesnt work!

on :http://atlas.asp.net/quickstart/default.aspx, the "Returning a DataTable" doesn't work( on atlas.asp.net. and on my local server too) I don't understand!

Any data are binding!

I'm using IE6! I see somewhere that it's not <binding> but <web:binding> it doesn't work better!

Help me please

ALCINA.

thanks to Garbin. he has provide one nice example in
http://forums.asp.net/1198570/ShowPost.aspx

check it out