Solved

turn off call backs in template field

Posted on 2006-11-14
2
3,456 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 17

Accepted Solution

by:
Elvio Lujan earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Hovering effect 9 47
Problem to page 4 72
LINQ - C# to VB convertion 12 46
Ajax Panel Not Updating When Triggered By Timer 4 40
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now