471,066 Members | 1,164 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,066 software developers and data experts.

gridview updatepanel when updating - proooblem


I'm having a bit of a proooblem.

I have a gridview which has a checkbox as one of the templatecolumn's. When it is checked, it hides a textbox containing a DateTime templatefield (visible="false" which I set in the RowDataBound Event).

I have put the DateTime TextBox inside an updatepanel with an asynchronous trigger on the checkbox. It is hiding and displaying perfectly with the updatepanel whenever the checkbox is selected. However. Since puting the DateTime Textbox inside an updatepanel, it is not updating whenever I click the update button of the gridView. If I take the textbox out of the updatepanel, it updates the gridview and db perfect-o.

Any assistance/suggestions would be much appreciated!

Thanks Terence

Sample of code:

<asp:UpdatePanel ID="upStartEdit" runat="server" UpdateMode="Conditional">
<asp:TextBox ID="txtStartDateEdit" runat="server" Text='<%# Bind("StartDate") %>'></asp:TextBox>
<asp:AsyncPostBackTrigger ControlID="chkIgnoreStartEndDateEdit" />
Apr 2 '07 #1
1 5043
16,027 Expert Mod 8TB
This seems like a .NET problem. I'll move it there for you.
Apr 3 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by davidjgonzalez | last post: by
1 post views Thread by jmdolinger | last post: by
1 post views Thread by =?Utf-8?B?Q2hyaXM=?= | last post: by
2 posts views Thread by mike | last post: by
1 post views Thread by =?Utf-8?B?cmxt?= | last post: by
13 posts views Thread by SAL | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.