Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to get params our of url c# VB

You would use Querystrings.

I.E your URL should be formatted as follows:

[URL][?][Key=value]

If you are adding multiple parameters then separate with [&] then your next [key=value]

So:

Here is your URL with 2 parameters, ID and Name:

AttendanceExcelReport.aspx?id=1&name=Report

You can access these by just calling

Request("id") in VB and Request["id"] in c#

Request("name") in VB and Request["name"] in c#
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #params #url #VB
ADD COMMENT
Topic
Name
9+8 =