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
question about query string
Old 09-01-2006, 07:30 PM question about query string
Experienced Talker

Posts: 34
Trades: 0
I use query string to pass the data in to webform2.aspx

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetFiles"
>
<SelectParameters>
<asp:QueryStringParameter DefaultValue="~\6666" Name="directoryPath" QueryStringField="path"
Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
how can get access to the value of the query string that has been passed to webform1 and use it
in the codebehind operation.Suppose I want to show the content of query string on the label
or use it in the below code (Exists in webform2.aspx) instead of "path0000"
Private Sub BindDataList()
Dim dir As DirectoryInfo = New DirectoryInfo(Server.MapPath(Path0000))
DataList1.DataSource = dir.GetFiles("*.*")
DataList1.DataBind()
End Sub
s2002 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to question about query string
 

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.07985 seconds with 12 queries