|
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
|