How can I get the parameters from url
asp.net, c#, sharepoint
Solution
To get the value for the http get Parameter:
string testParameter = Request.QueryString["Text"];
then set the Textbox Text
Name.Text = testParameter
Also its strongly suggested to not take Content directly from the url as malicious content could be injected that way into your page. ASP offers some protection from this, still its considered a good practice.
Problem
I'm writing an aspx to let users check the filename and create a file with that name the url is ``` /sites/usitp/_layouts/CreateWebPage.aspx?List=%7b74AB081E-59FB-45A5-876D- 284607DA03C6%7d&RootFolder=%3bText=%27SD_RMDS%27 ``` how can I parse the parameter 'Text' and show in the textbox? ``` <div> <asp:TextBox id="Name" runat="server" /> </div> ``` the aspx text box is this, I tried ``` <asp:TextBox id="Name" runat="server" text=<%$Request.QueryString['Text']%>></asp:TextBox>> ``` but it didn't work anyone can help me out?