Solved

turn off call backs in template field

Posted on 2006-11-14
2
3,531 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 18

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

739 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