Testing Querystring in aspx.vb page

elmo61

New member
Joined
Jun 26, 2008
Messages
1
Programming Experience
Beginner
Hi sorry if this is the wrong forum didnt know where else to put it.

I am creating my first vb aspx website(i normally do c#) Currently stuck in a big rut. I simply don't know how to structure my aspx.vb page should look like.

I need to test the querystring. But currently i can be one of three things. Either

index.aspx (a null querystring)
index.aspx?type=something (type querystring)
index.aspx?project=something (product querystring

i want to return a sql selection command different one of each 3 possible outcomes.

I know u can do string,IsNullOrEmptry(Querystring["dsfdsf"])
but this doesnt test for if its type or project.

So i need to create a connection string and test the querystring and i just dont know where to even start.

I know its a big question so any help would be great

elmo

P.S im using framework version 3.5
 
Try this to just check the project querystring. I'm assuming an integer value here so change the code as necessary.

VB.NET:
Convert.ToInt32(Request.QueryString("project"))
 
Back
Top