[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[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!

6.6

Convert vbscript to VB

Asked by 4thShiftInnovations in Programming for ASP.NET, Scripting Languages, Active Server Pages (ASP)

Tags: vbscript, VB, ASP, .NET, convert

I have a classic ASP page (done by another programmer long ago) with a form on it and I want to convert this page to ASPX .NET page.  I am using VB for the code behind so I am assuming this will be pretty easy.  I am not used to doing data access with VB in the manner it is done on this page.  Any help is greatly appreciated.

The form is posted below.  I mostly need help with the data access part and how to handle the results.
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:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
<form name="Search" action="searchresults.asp " method="GET">
			<table bordercolor=BLACK bgcolor="#DBE3E6" border=0 width="400 pixels" cellpadding="3">
				<tr>
					<td bgcolor="#cccc33">
						<div align="right">
							<b><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2">Zip Code :</font></b></div>
					</td>
					<td bgcolor="#ccff99"><input type=TEXT size=7 name="ZIP" maxlength=5></td>
				</tr>
				<tr>
					<td bgcolor="#cccc33">
						<div align="right">
							<b><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">County :</font></b></div>
					</td>
					<td bgcolor="#ccff99"><select size=3 name="COUNTY">
							<option selected></option>								
					<%
					Dim ObjConn
					Set ObjConn = Server.CreateObject("ADODB.Connection")
					ObjConn.ConnectionString="XXXXXXXX"
					ObjConn.Open
					Dim rs
					Dim strSQL
					strSQL = "Select * From [County Codes]"
					Set rs = Server.CreateObject("ADODB.Recordset")
					rs.Open strSQL,objconn,adOpenDynamic,adLockOptimistic,adcmdtext
					If rs.EOF = True then
					Else
					rs.MoveFirst
					Do Until rs.EOF = True
					%>
							<Option><%=rs.Fields("County")%></Option>								
					<%	
					rs.MoveNext
					Loop
					End IF
					rs.Close
					%>
						</select></td>
				</tr>
				<tr>
					<td bgcolor="#cccc33">
						<div align="right">
							<b><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Provider Name :</font></b></div>
					</td>
					<td bgcolor="#ccff99"><input type=TEXT size=40 name="PNAME" maxlength=42></td>
				</tr>
				<tr>
					<td bgcolor="#cccc33">
						<div align="right">
							<b><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">City :</font></b></div>
					</td>
					<td bgcolor="#ccff99"><input type=TEXT size=40 name="CITY" maxlength=42></td>
				</tr>
				<tr>
					<td bgcolor="#cccc33">
						<div align="right">
							<b><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Type :</font></b></div>
					</td>
					<td bgcolor="#ccff99"><select size=3 name="PTYPE">
							<option selected></option>
					<%
					strSQL = "Select * From tblDropDowns Where (((DropDown)='providertype'))"
					Set rs = Server.CreateObject("ADODB.Recordset")
					rs.Open strSQL,objconn,adOpenDynamic,adLockOptimistic,adcmdtext
					If rs.EOF = True then
					Else
					rs.MoveFirst
					Do Until rs.EOF = True
					%>
							<Option><%=rs.Fields("Value")%></Option>								
					<%	
					rs.MoveNext
					Loop
					End IF
					rs.Close
					ObjConn.Close
					%>
						</select></td>
				</tr>
				<tr>
					<td bgcolor="#cccc33" align=RIGHT title="TEST"></td>
					<td align=Center bgcolor="#ccff99"><input type=Submit name=Submit value="Submit"></td>
				</tr>
			</table>
		</form>
[+][-]02/05/09 04:43 AM, ID: 23558698Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/06/09 03:47 AM, ID: 23568816Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/06/09 12:04 PM, ID: 23573651Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/06/09 12:07 PM, ID: 23573686Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/06/09 12:24 PM, ID: 23573854Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/06/09 01:40 PM, ID: 23574511Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/06/09 01:42 PM, ID: 23574526Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/06/09 03:45 PM, ID: 23575444Assisted Solution

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

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

 
[+][-]02/06/09 04:05 PM, ID: 23575569Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/06/09 04:30 PM, ID: 23575725Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/06/09 04:32 PM, ID: 23575731Accepted Solution

View this solution now by starting your 30-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: Programming for ASP.NET, Scripting Languages, Active Server Pages (ASP)
Tags: vbscript, VB, ASP, .NET, convert
Sign Up Now!
Solution Provided By: 4thShiftInnovations
Participating Experts: 2
Solution Grade: A
 
[+][-]02/07/09 04:40 AM, ID: 23577847Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625