Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
How can I pass parameters to /Base.
Something like:
namespace BaseTest { public class TestClass { public static string Hello(string text) { return text; } }}
Thanks,
kukuwka
Hi Kukuwka,
I belive they just need to be in the request object (either via the querystring or form post).
Many thanks
Matt
PS If you have an umbraco.tv subscription, you may want to check out the following videos
http://umbraco.org/documentation/videos/for-developers/base-and-ajax-development/introduction-to-base
Throught querystring doesn't work
(or maybe do I something wrong?)
Ahhh, my bad, it looks like you pass them as part of the url
http://www.mysite.com/base/TestClass/Hello/SomeValue.aspx
Where SomeValue will be the value of text parameter. If you have more than one, just add keep adding them as additional directories on the URL.
An alternative would be to use the querystring and just use
HttpContext.Current.Request.QueryString
Thank you very much.
It works fo me.
It's must be :
www.mysite.com/base/TestClass/Hello/Param1/Param2
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to pass parameters to /Base.
Hi,
How can I pass parameters to /Base.
Something like:
namespace BaseTest {
public class TestClass {
public static string Hello(string text) {
return text;
}
}
}
Thanks,
kukuwka
Hi Kukuwka,
I belive they just need to be in the request object (either via the querystring or form post).
Many thanks
Matt
PS If you have an umbraco.tv subscription, you may want to check out the following videos
http://umbraco.org/documentation/videos/for-developers/base-and-ajax-development/introduction-to-base
Many thanks
Matt
Throught querystring doesn't work
(or maybe do I something wrong?)
Ahhh, my bad, it looks like you pass them as part of the url
http://www.mysite.com/base/TestClass/Hello/SomeValue.aspx
Where SomeValue will be the value of text parameter. If you have more than one, just add keep adding them as additional directories on the URL.
An alternative would be to use the querystring and just use
Matt
Thank you very much.
It works fo me.
It's must be :
www.mysite.com/base/TestClass/Hello/Param1/Param2
is working on a reply...