Kooboo Forum
»
Kooboo CMS
»
Extension
»
Get QueryString value in page plugin
|
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
|
|
|
|
|
|
|
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?
|
|
|
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 5/16/2010(UTC) Posts: 36 Location: HK
|
Seems not work, or did I missed something?
|
|
|
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 3/4/2010(UTC) Posts: 157 Location: brazil
|
What do you want to do, i'll try here
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
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"]
|
|
|
|
|
|
|
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();
|
|
|
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 5/16/2010(UTC) Posts: 36 Location: HK
|
I tried but it contains null value... Why?
|
|
|
|
|
|
Kooboo Forum
»
Kooboo CMS
»
Extension
»
Get QueryString value in page plugin
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.