How can I return a simple string (plain text) to the browser in some circumstances?
For example, by passing some parameters to the page (?mypar=1), I get only text/plain output.
You can pass the parameters like this:
Application.Navigate("?mypar=1");
You can then get the values like so:
AlertBox.Show(Application.QueryString.ToString());
returns: mypar=1
And this returns just the value:
string[] values = Application.QueryString.GetValues(0);
AlertBox.Show(values[0]);
returns: 1
See attached sample
You might also find these forum threads to be helpful:
https://wisej.com/support/question/url-parameters
https://wisej.com/support/question/url-arguments
Please login first to submit.