Request String

19 views
Skip to first unread message

sushilkum...@gmail.com

unread,
Mar 12, 2015, 2:31:01 PM3/12/15
to shar...@googlegroups.com
How to generate following code using sharpkit

var x = Request.QueryString("name");

Dan-el Khen

unread,
Mar 12, 2015, 3:17:27 PM3/12/15
to shar...@googlegroups.com
Hi,

You can generate this code, but it won't really work on the client-side, unless you're actually imitating .NET's System.Web.HttpContext class. If you are (and I think not) - you can use this:

HttpContext.Current.Request.QueryString["name"];

Otherwise, I would recommend that you parse the query string on the client side - using:

var s = HtmlContext.window.location.search;

You will need to parse this from a string to an object in order to find values by name: Like in this code snippet:

Hope that helps.
D.

On Thu, Mar 12, 2015 at 7:31 PM <sushilkum...@gmail.com> wrote:
How to generate following code using sharpkit

var x = Request.QueryString("name");

--
You received this message because you are subscribed to the Google Groups "SharpKit Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sharpkit+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages