Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How can I refrence html object from aspx form.

Reply
Thread Tools

How can I refrence html object from aspx form.

 
 
Mike John
Guest
Posts: n/a
 
      06-28-2003
I have created checkbox in the aspx form (html) not the
design.


Syntax:<input type =checkbox name ="mycheckbox">

now how can I read i's value from aspx.

I have type Me which stand for the current form, but the
mycheckbox was not in the list.


Sincelery yours


Mike John

 
Reply With Quote
 
 
 
 
Axel Dahmen
Guest
Posts: n/a
 
      06-29-2003
You can either...

1) use the <asp:Checkbox RunAt="Server" id="myCtrl"/> element

-or-

2) use the <input type="checkbox" RunAt="Server" id="myCtrl"> element


then in your VB file, add

1) protected System.Web.UI.WebControls.CheckBox myCtrl;

-or-

2) protected System.Web.UI.HtmlControls.HtmlInputCheckBox myCtrl;


This is the same thing Designer does. After that you have a control to be displayed and a variable to be used in code.

HTH,
Axel Dahmen

------------------------
"Mike John" <(E-Mail Removed)> schrieb im Newsbeitrag news:16ba01c33dcf$e28fdef0$(E-Mail Removed)...
> I have created checkbox in the aspx form (html) not the
> design.
>
>
> Syntax:<input type =checkbox name ="mycheckbox">
>
> now how can I read i's value from aspx.
>
> I have type Me which stand for the current form, but the
> mycheckbox was not in the list.
>
>
> Sincelery yours
>
>
> Mike John
>


 
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
How to Refrence to HTML Object vunet.us@gmail.com Javascript 5 05-01-2007 04:37 PM
For refrence pete Computer Support 2 10-20-2004 08:57 AM
Group Policy refrence Rich MCSE 48 07-28-2004 09:39 PM
How can I refrence the aspNetEmail Mike John ASP .Net 1 07-06-2003 09:01 PM
Re: How to refrence html objec t from aspx form Kevin Spencer ASP .Net 0 06-30-2003 02:28 PM



Advertisments