[thelist] .NET: help with a form parsing script

Anthony Baratta anthony at baratta.com
Wed Nov 29 13:30:22 CST 2006


This is exactly way I don't use the brain dead Web Controls in dotNet. ;-P How can you make a CheckBox without an HTML Value, even when you are explicitly giving it one in the dotNet Code? (argh.)

You might want to look at the ListItem.Attributes property, see if that helps or not.

-----Original message-----
From: "Casey Crookston" caseyc at IntelliSoftmn.com
Date: Wed, 29 Nov 2006 11:11:05 -0800
To: "Anthony Baratta" anthony at baratta.com, thelist at lists.evolt.org
Subject: Re: [thelist] .NET: help with a form parsing script

> 
> 
> -----Original Message-----
> 
> If you check your generated HTML you see:
> 
> <input id="How_0" type="checkbox" name="How:0" /><label for="How_0">FPC
> Magazine Add</label>
> 
> Acording to the Help file, in your code you want something like this:
> 
> <asp:ListItem Text="Blue" Value="#0000FF" />
> 
> -----------------------
> 
> Right. Of course I'm aware of that.  But this:
> 
> <asp:checkboxlist id="color" runat="server">
> <asp:ListItem Text="Blue" Value="Blue" />
> </asp:checkbox>
> 
> Get's converted in the HTML to this:
> 
> <input id="color_0" type="checkbox" name="color:0" />
> 
> This does me no good.  I need it to be this:
> 
> <input id="color_0" type="checkbox" name="Blue" />
> 
> Is there some way to over-ride?  Or am I looking at the the wrong way?
> 
> Thanks, Casey
> 
> 
> -- 
> 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> 
> For unsubscribe and other options, including the Tip Harvester 
> and archives of thelist go to: http://lists.evolt.org 
> Workers of the Web, evolt ! 
> 



More information about the thelist mailing list