Wednesday, March 21, 2012

asp 2.0 Login control and Ajax RC1

Hi to all,

I'm new to ASP & AJAX, but I would like to use Ajax in a Login control, so the page wouldn't refresh for everytime a user log in.

Somehow, even with a very simple code, i can't get this to work. Any idea why this is happening ??

I'm also using a SQL Connection, if needed i'll post here the web.config file

Any help will be greatly apreciated. Thanks

Here goes the code, it can't get any simpler than this ... i guess

<formid="form1"runat="server"><asp:ScriptManagerID="ScriptManager1"runat="server"/><asp:UpdatePanelID="UpdatePanel1"runat="server"><ContentTemplate><asp:LoginID="Login1"runat="server"BackColor="#F7F7DE"BorderColor="#CCCC99"BorderStyle="Solid"BorderWidth="1px"Font-Names="Verdana"Font-Size="10pt"><TitleTextStyleBackColor="#6B696B"Font-Bold="True"ForeColor="#FFFFFF"/></asp:Login></ContentTemplate></asp:UpdatePanel></form>

I don't use <asp:Login,

but try add: EnablePartialRendering="true" to your scriptmanager and UpdateMode="Conditional" to your UpdatePanel.

Hope it works.


Hi,

Unfurtunatly no, everything remains the same, but thanks for your help.

Regards,

No comments:

Post a Comment