Solved

turn off call backs in template field

Posted on 2006-11-14
2
3,429 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:
lem2802 earned 500 total points
Comment Utility
<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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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