PC Review


Reply
Thread Tools Rate Thread

checkbox on usercontrol in formview - databinding

 
 
Jethro
Guest
Posts: n/a
 
      26th Apr 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
Rate This Thread
Rate This Thread:

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
FormView Webcontrol Databinding Barry Microsoft Dot NET Framework 0 20th Jul 2008 09:10 AM
FormView/Insert template / DropdownList / DataBinding Just Me Microsoft ASP .NET 1 17th Apr 2007 08:38 PM
how can i find usercontrol in Formview mike Microsoft ASP .NET 0 19th Nov 2005 03:13 AM
Databinding in InsertItemTemplate of FormView Swetha Microsoft ASP .NET 0 14th Nov 2005 09:53 AM
Usercontrol inside a formview mopa Microsoft ASP .NET 0 11th Nov 2005 07:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:10 PM.