I’m writing an ASP web application with VB back-end. What I’d like to do is generate a url and display this in control on the page. For example if I have a label and a button on the form. The label is blank. When the button is clicked the following code fires:
Protected Sub btnGenerate_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnGenerate.Click
label1.Text = "Hello"
End Sub
What I’d like to have is a url that would point to my ASP Page with the words “Hello” in the label. Is this possible?
Pass the text in query string e.g. suppose relative path of the page is /pagename.aspx , you can pass the query string as per given example below:
in c# write following code in Page_Load event
You can also create a property for text given through query string and default text.