Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > checkbox on usercontrol in formview - databinding

Reply
Thread Tools

checkbox on usercontrol in formview - databinding

 
 
Jethro
Guest
Posts: n/a
 
      04-26-2009
Hi guys

I've got a formview, and have added a usercontrol I devised as the
Insert and Edit template. In order to get databinding working, I have
had to specify the full path to the control :

<InsertParameters>
<asp:FormParameter formfield="ctl00$MainContent$frmUser
$uf1$CheckBox1" Name="active" Type="Boolean" />
<asp:FormParameter formfield="ctl00$MainContent$frmUser
$uf1$vchHomepageTextBox" Name="homepage" Type="String" />
</InsertParameters>

This is fine for the textbox. However, when the checkbox is binding,
instead of the "Checked" property (ie. True/False) being returned, the
"Text" property is.

Can anyone advise how I can bind to the "Checked" property of the
control ?

thanks in advance
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Databinding expressions are only supported on objects that have a DataBinding event jobs ASP .Net 0 09-25-2007 11:54 PM
Gridview encoding, or how to run commands before gridview's default databinding, or, how do I disable default databinding at all? Sergei Shelukhin ASP .Net 1 11-12-2006 01:43 PM
asp:Wizard inside of a asp:FormView breaks two-way databinding John R. Lewis ASP .Net 2 01-25-2006 12:08 PM
Databinding in InsertItemTemplate of FormView Swetha ASP .Net 0 11-14-2005 09:53 AM
DataGrid Custom Column Error when DataBinding "does not contain a definition for 'DataBinding'" Earl Teigrob ASP .Net Datagrid Control 1 03-01-2004 04:52 AM



Advertisments