Solved

Visual Basics passing data via URL

Posted on 2011-03-21
3
210 Views
Last Modified: 2012-05-11
Hey

Im using visual studio and VB.

Im creating a form and i would like to retrieve names from the link.

So if i have a link = ~/Forum/forums.aspx?room=gen

on the next page i want to the the room= name.
How can i do this in vb??

0
Comment
Question by:runnerjp2005
3 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 500 total points
ID: 35180697
How to: Pass Values Between ASP.NET Web Pages
http://msdn.microsoft.com/en-us/library/6c3yckfw.aspx


~/Forum/forums.aspx?room=gen

Dim s As String
s = Request.QueryString("room")
0
 
LVL 6

Expert Comment

by:kswathi
ID: 35180705
In the your "Forum" folder check for the  forums.aspx page
In that page(forums.aspx), in the page load event you can write the following code:

 

If Request.QueryString("room") isNot Nothing And  Request.QueryString("room").ToString() Then
'Write your checking code here.
End If

Open in new window



0
 
LVL 23

Expert Comment

by:OP_Zaharin
ID: 35180840
- this code might be useful for you:

http://msdn.microsoft.com/en-us/library/6c3yckfw.aspx
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with checking if excel exist in client's computer 9 43
Multiple file Upload asp.net 2 36
Javascript Refresh Parent Page from Popup 3 48
Red error squiggly on vb.net 7 27
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now