I have tired writing triggers <Triggers> for button click, but still the above code is not executed..
but If remove all the updatepanel, the above code works fine! but im looking a ajax partial update page solution.. not sure, wht happened.. any help appreciatd.. thanks
bsarahim
Member
14 Points
145 Posts
using Ajax updatepanel, few code, is not working in the click event
Dec 27, 2012 03:51 PM|LINK
<asp:UpdateProgress ID="PageUpdateProgress" runat="server"
AssociatedUpdatePanelID="UpdatePanel1" DisplayAfter="50">
<ProgressTemplate>
<div id="dvProgress" runat="server" style="position:absolute; top: 300px;
left: 550px; text-align:center;">
<asp:Image ID="Image2" runat="server" Height="46px" Width="47px"
ImageUrl="../gifs/ajax-loader.gif" />
</div>
</ProgressTemplate>
</asp:UpdateProgress>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Panel ID="panelRegister1" runat="server" DefaultButton="btnSubmit1"
Width="354px" Height="136px">
<table>
<tr>
<td colspan="2">
EXISTING CUSTOMERS</td>
</tr>
<tr>
<td colspan="2">
<asp:Label ID="lblMsg7" runat="server" ForeColor="Red"></asp:Label>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label14" runat="server" CssClass="Labelhead1"
Text="Email Address :" Width="110px"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtEmail0" runat="server" CssClass="textboxFont" Height="20px"
MaxLength="50"></asp:TextBox>
</td>
<td>
<span ID="spanUsername1">
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
ControlToValidate="txtEmail0" ErrorMessage="Email Required !!!"
ValidationGroup="Register1">*</asp:RequiredFieldValidator>
</span>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label15" runat="server" CssClass="Labelhead1" Text="Password :"
Width="110px"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtPassword0" runat="server" CssClass="textboxFont"
MaxLength="20" TextMode="Password"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"
ControlToValidate="txtPassword0" ErrorMessage="Password Required !!!"
ValidationGroup="Register1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:Button ID="btnSubmit1" runat="server" CssClass="text8pt" Text="Sign In"
ValidationGroup="Register1" />
</td>
</tr>
<tr>
<td class="Labelhead1" colspan="2">
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td colspan="2">
</td>
</tr>
<tr>
<td align="center" colspan="2" height="30">
</td>
</tr>
</table>
</asp:Panel>
</contenttemplate>
</asp:UpdatePanel>
Hi in the btnSubmit1_Click, all other code is working fine, but this below code is not working...
TabContainer1.ActiveTab = TabContainer1.Tabs(1)
TabContainer1.Tabs(1).Enabled = True
TabContainer1.Tabs(2).Enabled = False
Pls suggest accordingly...
I have tired writing triggers <Triggers> for button click, but still the above code is not executed..
but If remove all the updatepanel, the above code works fine! but im looking a ajax partial update page solution.. not sure, wht happened.. any help appreciatd.. thanks
SohailShaikh
Contributor
6109 Points
1167 Posts
Re: using Ajax updatepanel, few code, is not working in the click event
Dec 27, 2012 04:44 PM|LINK
Remove this line
AssociatedUpdatePanelID="UpdatePanel1" DisplayAfter="50"
and set update mode always
Sohail Shaikh
bsarahim
Member
14 Points
145 Posts
Re: using Ajax updatepanel, few code, is not working in the click event
Dec 28, 2012 06:21 AM|LINK
Thanks
Still Not working! Thanks
chetan.sarod...
All-Star
65619 Points
11118 Posts
Re: using Ajax updatepanel, few code, is not working in the click event
Jan 02, 2013 02:31 AM|LINK
Refer this thread
http://forums.asp.net/t/1523478.aspx/1
http://forums.asp.net/t/1074319.aspx/1
http://forums.asp.net/t/1074319.aspx/2/10
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.