Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do i substitute a variable for a control name upon validation?

Status
Not open for further replies.

THEGREEK

Technical User
Aug 17, 2000
51
CA
I would like to replace the below:
If Document.Form.CTRL_NAME1(0).Checked = True Then

I would like to substitute a variable "x" where the 1 currently is

Does anyone know the right syntax to use?

Any help would be greatly appreciated.

Thanks in advance,

 
you can use the eval function or execute

but furthering the discussion. you can't do that in ASP as it is a client side object referenced

however you can do
If Request.Form(&quot;CTRL_NAME&quot; & x)(0) <> &quot;&quot; Then

or there abouts

_____________________________________________________________________
Where have all my friends gone to????
onpnt2.gif

 
Thanks for the info...
Much appreciated.

Is there anyway using the syntax you showed my above, can I check to see out of the two radio buttons..which one was selected?

Thanks again,
If you need any more info let me know.
 
perfect time to promo the FAQ section [smile]

faq333-4050 there is examples with in this FAQ on exactely what you need

_____________________________________________________________________
Where have all my friends gone to????
onpnt2.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top