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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

checkboxes as design time controls

Status
Not open for further replies.

carmine55555

Programmer
Jan 24, 2001
3
US
Has anyone here tried to use Design-Time Control Checkbox objects? I know how html checkboxes work, but html checkboxes can't be used if 'scripting' is enabled (like when recordsets are used).
Thanks,
John
 
John,

> but html checkboxes can't be used if 'scripting' is enabled (like when recordsets are used).

That is not entirely accurate. Please clarify your statement, your problem and your goal.

-pete
 
i have a loop that displays filtered recordset results. each row of data has a checkbox.
i want to be able to dynamically checkmark one or more selections and have my choices stored.
 
John,

For some reason your posts are unintelligible. Without a description of the context and the specific problem you are having, I cannot help.

Good luck
-pete
 
OK, I am using Visual Interdev 6.0. When I add a recordset, it asks me if I want to enable scripting. I usually say yes.
Once scripting is enabled, grey bars appear at the beginning and end of the ASP page. The grey bars have the <FORM> and </FORM> tags in them but do not have the
<FORM action=&quot;destination_page.asp&quot;> part included so that you can pass data with a SUBMIT button on one side, and REQUEST.FORM.ITEM(&quot;textbox_data&quot;) on the other side. I am trying to avoid using Session(&quot;textbox_data&quot;) as that puts a load on the server for large amounts of data. When I try to edit the grey areas to add <FORM action=&quot;destination_page.asp&quot;> it complains that editing the area is illegal.

In summary, what I am trying to do boils down to:
1. Using Recordsets, and on the same page...
2. Using the Form/action---request.form data passing
in the same page (actually this is two types of forms on a single page).

Carmine55555
 
Carmine,

You can not put other forms on a DTC page.

You can use 'HTML' controls on a DTC page and access them in server code.

You can use the DTC form to submit back to the server using client script.

Here is a small example using a check box:


My check box: <INPUT type=&quot;checkbox&quot; id=MyCheck name=MyCheck><br>
Click <A HREF=&quot;javascript:document.thisForm.submit()&quot;>HERE</A> to submit
<hr>
My check was checked on the server: <%=Request(&quot;MyCheck&quot;)%>


Hope this helps
-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top