Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Get QueryString value in page plugin
hnchan
#1 Posted : Tuesday, June 22, 2010 8:25:29 PM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 5/16/2010(UTC)
Posts: 36
Location: HK
Hi

How could I get the querystring value from page plugin?

Regards
Alex
luiz@wise.com.br
#2 Posted : Tuesday, June 22, 2010 9:03:44 PM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 3/4/2010(UTC)
Posts: 157
Location: brazil
I didn't try this

Can't you use Controller.Request.QueryString?
hnchan
#3 Posted : Wednesday, June 23, 2010 10:53:01 PM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 5/16/2010(UTC)
Posts: 36
Location: HK
Seems not work, or did I missed something?
luiz@wise.com.br
#4 Posted : Wednesday, June 23, 2010 10:54:17 PM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 3/4/2010(UTC)
Posts: 157
Location: brazil
What do you want to do, i'll try here
hnchan
#5 Posted : Wednesday, June 23, 2010 11:33:32 PM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 5/16/2010(UTC)
Posts: 36
Location: HK
just want to pass the querystring value to plugin and use it. Thanks.
luiz@wise.com.br
#6 Posted : Wednesday, June 23, 2010 11:41:43 PM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 3/4/2010(UTC)
Posts: 157
Location: brazil
Did you try this way?

Code:
var userKey = this.Controller.RouteData.Values["UserKey"].ToString();

or this
Code:

Controller.Request.QueryString["UserKey"]



or to get from the form
Code:

Controller.Request.Form["Rate"]

hnchan
#7 Posted : Thursday, June 24, 2010 12:11:01 AM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 5/16/2010(UTC)
Posts: 36
Location: HK
I just try Controller.Request.QueryString["UserKey"]

Anyway, let try this one var userKey = this.Controller.RouteData.Values["UserKey"].ToString();
hnchan
#8 Posted : Saturday, June 26, 2010 8:18:08 PM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 5/16/2010(UTC)
Posts: 36
Location: HK
I tried but it contains null value... Why?
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.085 seconds.