Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

turn off call backs in template field

Posted on 2006-11-14
2
Medium Priority
?
3,618 Views
Last Modified: 2008-01-09
Hi,

I using a details view to update the record . I am using a template field for the dropdown list on one of the colums. I am getting an error message.

Error Message:-

Callbacks are not supported on TemplateField because some controls cannot update properly in a callback.  Turn callbacks off on 'AlarmsDetails'.

This is my code snippet of the template field. Please look in to that and explain how to turn off the call backs.

<ItemTemplate>

&nbsp;

<asp:Label ID="Label3" runat="server" Text=" "></asp:Label>

<asp:DropDownList ID="DropDownList1" runat="server">

<asp:ListItem>Y</asp:ListItem>

<asp:ListItem> N</asp:ListItem>

</asp:DropDownList>

</ItemTemplate>

</asp:TemplateField>


Thanks,

Sreekanth Nagabandi.
0
Comment
Question by:Sreekanth_Nagabandi
2 Comments
 
LVL 18

Accepted Solution

by:
Elvio Lujan earned 2000 total points
ID: 17938587
<ItemTemplate>

&nbsp;

<asp:Label ID="Label3" runat="server" Text=" "></asp:Label>

<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="False">

<asp:ListItem>Y</asp:ListItem>

<asp:ListItem> N</asp:ListItem>

</asp:DropDownList>

</ItemTemplate>

</asp:TemplateField>
0
 

Author Comment

by:Sreekanth_Nagabandi
ID: 17940863
Hi ,

When i add this code AutoPostBack="False" , i get the following error message.


Error Message:-   Cannot insert the value NULL into column 'ACTIVE', table 'CMS.dbo.ALARM_DEFINITION'; column does not allow nulls. UPDATE fails.
The statement has been terminated.

Can you please resolve  and fix this error.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Screencast - Getting to Know the Pipeline
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question