473,757 Members | 2,083 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to handle asp:formview edititemtemplat e with checkboxlist control

I'm using a formview control to display/edit/insert data that is
populated from an sqldatasource. One of the values is a pipe delimited
string that represents multiple items. Within the edititemtemplat e for
this field I have a label and checkboxlist. Within the checkboxlist
databound event I take the label and split up the string then set the
appropriate checkboxes to selected.

My question is how to update this field. I've looked into the
formview_itemup dating event and can intercept the value of the label
and set it to the selected fields in the checkboxlist using e.value =
''
but the item doesn't update. Do I have to call upate from within the
formview itemupdating sub or does it get called automatically after?

Oct 6 '06 #1
0 1789

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
1400
by: Mactash | last post by:
Folks, I have problem running simplest ASP.Net programs with IIS web server. As a test I just added some text box and dropdown list with Visual Studio but when I run this my page shows nothing.(blank page without error.) I can run this with asp matrix web server. Can you please let me know what is wrong.? Thank you .
1
1970
by: Neil Zanella | last post by:
Hello, I would like to ask a question pertaining to programmatic initialization of ASP web controls (as opposed to initialization via standalone attributes and other elements contained in the enclosing ASP control element)... Given an ASP web control that supports specifying an initialization event handler via the onInit attribute, what is the difference between placing initialization
0
1770
by: Chris Auer | last post by:
I cant get my css to work on my checkboxlist when I have the list set to Table. In flow it works great, but not in table mode. <td width=70% align=center > <asp:CheckBoxList ID=cblAdvanced Runat=server RepeatDirection=Horizontal RepeatLayout=Flow CssClass=chkbox> <asp:ListItem Value=beach>beach</asp:ListItem> <asp:ListItem Value=tennis>tennis</asp:ListItem> <asp:ListItem Value=pool>pool</asp:ListItem> <asp:ListItem...
2
2381
by: Simon Cheng | last post by:
Hi, For the following form: <form runat="server"> <asp:checkboxlist id="list" runat="server"> <asp:listitem runat="server" value="Cash" /> <asp:listitem runat="server" value="Check" /> </asp:checkboxlist><br/> </form>
2
1170
by: kentg | last post by:
How do I "build" the name of an ASP control in the VB Code behind? I would like to cycle through several comboboxes using a loop. (cboReport1, cboReport2, cboReport3, etc.) ie. in MS-Access I can use the following code to reference a combobox named cboReport6 and set it's value to 1: strForm = MyForm strControlName = "cboReport" intCount = 6
2
2005
by: parm | last post by:
How do I highlight text in my first (tabindex = 1) asp control (eg: textbox) on the webform on page load. If I try to set focus using javascript then I get script error "Cannot move focus to invisible control)". Because the tabindex of first control is 1 therfore I can get the focus on first control but the text inside is not highlighted. Any help would be greatly appriciated. My set focus javascript: Public Sub SetFocus(ByRef MyPage As...
2
4083
by: Samuel R. Neff | last post by:
I'm trying to find a good way to handle Control.InvokeRequired without duplicating four lines of code in every function/event. Typically what I've seen in books is this: If InvokeRequired Then Invoke(new EventHandler(AddressOf thisFunc), new Object() { sender, e}) Return End If
2
4267
by: John R. Lewis | last post by:
I posted this yesterday with a different email address. I am reposting with my fake-address as given to me by Microsoft so that I can be guraranteed a response from a support representative. Sorry for the repost. I'd like to make use of the asp:Wizard control to present a step-by-step guided experience for my user to fill out a complicated data-entry form. I'd like to make use of two-way databinding provided by the asp:FormView control...
6
2086
by: Douglas J. Badin | last post by:
Earlier this month, there was a posting about this without a definitive answer. If you place a Wizard inside a FormView's EditItemTemplate the bound fields contained within the View will display the data from the fields to which they are bound; yet they will return null values when the 'Update' LinkButton is clicked. The responder thought this might have something to do with naming containers. If so, this is similar to an issue in...
3
5603
by: Frederik Borg | last post by:
Hi I would like to use script to access an asp control client side. The asp control and script is located in a content page. I use the control's ID to call it: <button onclick="SomeOtherControl.click();">Remove</button> Unfortunately the ID of SomeOtherControl gets changed when using master pages. It owrks perfect when using regualar flat aspx pages.
0
9904
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9884
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8736
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7285
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6556
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3828
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3395
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2697
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.