Advertisement

07.03.2008 at 07:38AM PDT, ID: 23537010
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.4

Can I make an <input type=checkbox> value not appear in a QueryString?

Asked by bigtwig in Active Server Pages (ASP), Hypertext Markup Language (HTML)

Hi,
I have an ASP form, method=get, that has a checkbox at the start of every item that the user can toggle on/off.  It's a form that the user would probably not select multiple checkboxes, so if the checkbox becomes checked or unchecked, I ask a confirm(), and then write to SQL.

My QueryString is bogged down with the values of checkbox fields that I do not need.  I 'DISABLE' other input fields that I don't want returned in the QueryString and that are only used for display purposes.

Can I make a variable not display in a QueryString that is part of a form?
Code Snippet is attached.

Here's a typical QueryString:
http://www.xxx.com/index.asp?chkColorCoded=1&chkColorCoded=0&chkColorCoded=1&chkColorCoded=1&chkColorCoded=1&chkColorCoded=1&chkColorCoded=1&chkColorCoded=1&chkColorCoded=1&xID=102408&btnUpdate=Update&CCDate=7%2F3%2F2008&DetailSelected=3&IsPostback=True&User=Mike&item=prep&BitNotSet=True&JobNumber=1000&iWire=1&iColorCoded=1

THANKS!!!
MikeStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
<form name="frmDetailPrep" id="frmDetailPrep" method="get">
  <table class="tableDP" width="100%" cellpadding="0" cellspacing="0" border="1" bordercolor="#888888">
	<tr>
		<th>Color<br>Coded</th>
		<th>Wire<br>Reqd</th>
		<th>Detail</th>
		<th>Date</th>
		<th>User</th>
	</tr>
		
  <% 
  Do while NOT objRS.eof
	Set DetailNum = objRS("xDetailNumber")
	Set ixID = objRS("xID")
 
	sSQL2 = "SELECT dt_xID, dtJobNo, dtDetailNo, dtColorCoded, dtWireReqd, dtColorCodeBy, dtColorCodeDate " &_
		"FROM jt.dbo.dTrack " &_
		"WHERE jt.dbo.dTrack.dt_xID=" & ixID
		
	Set objRS2=Server.CreateObject("ADODB.Recordset")
	objRS2.Open sSQL2, oConn
		
	if objRS2.eof then
		ColorCodeDate = null
		ColorCodeUser = null
		ColorCoded = 0
		WireReqd = 0
	else
		Set ColorCodeDate = objRS2("dtColorCodeDate")
		Set ColorCodeUser = objRS2("dtColorCodeBy")
		Set ColorCoded = objRS2("dtColorCoded")
		Set WireReqd = objRS2("dtWireReqd")
	end if
  %>
	<tr>
		<% if ColorCoded then %>
			<td class='td1'><input type="checkbox" name="chkColorCoded" id="chkColorCoded" CHECKED   value=1 onClick="checkColorCoded(<%=ixID%>,<%=DetailNum%>,1);"></td>
		<% else %>
			<td class='td1'><input type='checkbox' name='chkColorCoded' id='chkColorCoded' UNCHECKED value=0 onClick="checkColorCoded(<%=ixID%>,<%=DetailNum%>,0);"></td>
		<% end if %>
 
		<% if WireReqd then %>
			<td class='td1'><input type='checkbox' name='chkWireReqd' id='chkWireReqd' CHECKED value=1 DISABLED></td>
		<% else %>
			<td class='td1'><input type='checkbox' name='chkWireReqd' id='chkWireReqd' UNCHECKED value=0 DISABLED></td>
		<% end if %>
				
		<td class='td1bold'><%=DetailNum%></td>
		<td class='td3'>
			<input type="text" name="ColorCodeDate" id="ColorCodeDate" DISABLED size="10" value="<%=ColorCodeDate%>">
		</td>
		<td class='td3'>
			<input type="text" name="ColorCodeUser" id="ColorCodeUser" DISABLED size="15" value="<%=ColorCodeUser%>">
		</td>
	</tr>
  <%		
	objRS.movenext
  Loop
  Response.Write("</table>")	
  %>
 
Loading Advertisement...
 
[+][-]07.03.2008 at 07:46AM PDT, ID: 21925971

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 07:51AM PDT, ID: 21926014

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 07:52AM PDT, ID: 21926025

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 08:00AM PDT, ID: 21926109

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 08:14AM PDT, ID: 21926228

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 08:20AM PDT, ID: 21926319

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 10:01AM PDT, ID: 21927269

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 10:20AM PDT, ID: 21927410

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 10:50AM PDT, ID: 21927672

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.03.2008 at 10:53AM PDT, ID: 21927690

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 11:02AM PDT, ID: 21927771

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Active Server Pages (ASP), Hypertext Markup Language (HTML)
Sign Up Now!
Solution Provided By: hielo
Participating Experts: 3
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628