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

XML querystring Value

Status
Not open for further replies.

buffster

Technical User
Apr 1, 2007
1
GB
Hey guys,

This code is on page load. It works fine if I hard code a value in but I need it to read in a querysrting value Im posting from the previous page. It's called "CarCatNo"
I've tried quite a few things but it's giving me the error message .."Conversion from string "CarCatNo" to type 'Integer' is not valid.

The CarCatNo field in the database is already set as Integer.

Any help greatly appreciated.
Thanks
Buff.

-------------------
It uses a web service.

Dim carResults As New CarService.Service
Dim carDataSet As New System.Data.DataSet
carDataSet = carResults.getCarsByCatNo(need to read in querystring here)
carDataSet.WriteXml(Server.MapPath(Nothing) & "/cars/carResults.xml")
Me.carPanel.DocumentSource() = (Server.MapPath(Nothing) & "/cars/carResults.xml")
 
I need it to read in a querysrting value
It might be an integer in the database, but when you stuff it in the querystring, it's a string. So convert it back to an integer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top