Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

.NET Forum


You are currently viewing our .NET Forum as a guest. Please register to participate.
Login



Reply
send server path parameter to webform
Old 08-31-2006, 07:13 AM send server path parameter to webform
Experienced Talker

Posts: 34
Trades: 0
In my webpage there is a parameter called "Gooo" it's usage is for path of folder which contain downloads files 'i.e ("Down/zip/")
I want to send this parameter(Gooo) from another page.I like it to use post mehod or even something like"download.aspx?id=Down/zip/

what should I do for this purpose
page:download.aspx
------------------------
<script runat="server">
Dim Gooo As String = "Down/zip/"
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
BindDataList()
End Sub
</script>
s2002 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-31-2006, 10:20 AM Re: send server path parameter to webform
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
If you just want it passed to one single page, then a query string like you have above would be appropriate. In the receiving page, you access it with Request.QueryString("id") (VB) or Request.QueryString["id"]; (C#).

If you want it to be accessable across multiple pages, you could use a session variable.
Session("Gooo") = "/whatever"
then:
MyVar = Session("Gooo")
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 08-31-2006, 03:35 PM Re: send server path parameter to webform
Experienced Talker

Posts: 34
Trades: 0
Let's tell simpler it's the adress of folder that I have saved The Files and it's value is read from the DB in the form1 and then I will send it to the form2.

where should I put the "Request.QueryString("id") "
When I put it in the page_load sub I will encounter error
when I do something like this
Dim Gooo As String = Request.QueryString("id")
again I encounter the Error.
Note that "id" must contain the VAlue which I send from the frist page.
If it's possible I want to send it so that No one can Understand the value of "id"

Last edited by s2002; 08-31-2006 at 03:39 PM..
s2002 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to send server path parameter to webform
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11719 seconds with 12 queries