Solved

turn off call backs in template field

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Syntax Error 2 62
asp day pilot 3 18
jquery progress bar 3 40
Switching Visual Studio 2015 to normal debug display 3 24
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

808 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