Showing posts with label example. Show all posts
Showing posts with label example. Show all posts

Wednesday, March 28, 2012

Very simple example... with masterpage!

I create a really simple example using atlas on a masterpage.

Ihave this code:

<

cc1:ScriptManagerID="ScriptManager1"runat="server"EnablePartialRendering="true"></cc1:ScriptManager><cc1:UpdatePanelID="up2"runat="server"><ContentTemplate><asp:Labelid="lbl1"runat="server"Text="Label"></asp:Label><BR/><asp:LinkButtonid="LinkButton1"runat="server"OnClick="LinkButton1_Click">LinkButton</asp:LinkButton></ContentTemplate>

</cc1:UpdatePanel>

and this:

protectedvoid LinkButton1_Click(object sender,EventArgs e)

{

lbl1.Text =

"egege";

}

the problem is that the event is raised, lbl1.Text became "egege", but the text of the label on the page it is still the same...

what can be wrong?

Can you supply a bit more code and perhaps explain how the cc1 namespace prefix got placed in front of your atlas controls?

<cc1:ScriptManager......

Instead of

<atlas:ScriptManager....

Etc.

I'm not saying that's the problem, but I'm unfamiliar with how that prefix got there.


hello.

btw, you should also start by using fiddler to see the msg that the client is receiving from the server...is there any forbidden xml chars on the head section?


Eureka!

The problem was that there was a<script language="Javascript"> block on the head of my masterpage.

I canceled it and everythigs works!

Can anybody tell me why?


hello.

well, currently, atlas packages the content of the head element in the msg that is sent from the server in response to a partial postback. since it doesn't escape those elements (say, by using a cdata section), you can't have any forbidden xml chars there (and it's really easy to get one of those inside a javascript script - for instance, this would make your document not well formed: for( ; i < 10; i++ ))

in the current version of atlas, when the returned xml document isn't well formed, the client platform discards it without giving any feedback.

Monday, March 26, 2012

VSHTMLGenericElement minor issue

Not a major issue but is very easy to produce. For example, if you add a textbox watermark extender and link it to a textbox then delete the extender. The textbox will only be displayed as a "VSHTMLGenericElement" without any properties. The fix is to save your page. Then close and reopen the ASPX page you are working on. Then the textbox will be labeled as a textbox again.

Like I said not a major issue but seems like something doesn't get reset after the delete.

Yes.This is not a major issue for web application development.You should save current web files when you make some changes to them.Otherwise maybe you will get some issues for not saving them.

Wednesday, March 21, 2012

Web controls with in th Accordion control

Hi,


Is there a way or an example to put ASP.Net controls and another Ajax controls within the accordion control?.


Thanks.

Marco

this is my own example

<cc1:AccordionPane ID="AP3" runat="server">
<Header>
<a href="http://links.10026.com/?link=" onclick="return false;" class="accordionLink">Section 3</a></Header>
<Content>
<asp:UpdatePanel ID="up3" runat="server">
<ContentTemplate>
<asp:GridView ID="gd2" runat="server">
</asp:GridView>
<asp:Button ID="btnClick" runat="server" Text="Call Database" OnClick="btnClick_Click" />
</ContentTemplate>
</asp:UpdatePanel>
</Content>
</cc1:AccordionPane>

then on the btnClick's click event, I generate gridview from database

so yes. you can have most of control within accordion

Web Service bridge example

Hi,

I have two questions:

1. Where can I find _working_ example of Web Service bridge? I am using RC release.

2. What are the advantages that this bridge offers? Anyway you need to create wrapper classes so why to use bridge at all? I can always create another local WS (or even inline web methods) that call the actual WS.

Thanks,

Gauri

Try to take a look at the web service bridge example as the following?for?details -?http://www.codeproject.com/cs/webservices/DIMEBridge.asp
Try to take a look at the following readings about web service bridge for details.
http://ieeexplore.ieee.org/iel5/10432/33126/01559637.pdf?arnumber=1559637
Wish the above can help you.