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 guys,
I have some C# code I want to be executed in the onClick event.
What would be the best way to do it? Any suggestions? :)
Regards,
Dmitrij
In Razor you don't have an onclick event. Instead you could create a form and post that form. For example something like this: http://our.umbraco.org/forum/developers/razor/22536-Send-email-in-razor-macro
If you're using MVC you can post to a controller of course.
Jeroen
Hej Jeroen,
Thanks for quick response :)
Ehh... well I was hoping for some magic that just might do this... well but still that is better than nothing :)
Thanks for info! :-)))
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Button onClick in Razor?
Hi guys,
I have some C# code I want to be executed in the onClick event.
What would be the best way to do it? Any suggestions? :)
Regards,
Dmitrij
In Razor you don't have an onclick event. Instead you could create a form and post that form. For example something like this: http://our.umbraco.org/forum/developers/razor/22536-Send-email-in-razor-macro
If you're using MVC you can post to a controller of course.
Jeroen
Hej Jeroen,
Thanks for quick response :)
Ehh... well I was hoping for some magic that just might do this... well but still that is better than nothing :)
Thanks for info! :-)))
Dmitrij
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.