I really did not think I would ask about this but I have worked for too long with web forms so I cant figur out how to make a standard button click with some server side code, in web forms I just make a button click event but thats seams to be a hole diffrent way to do it in mvc. Hope someone can make a simple eksempel where a button runs a function from a class file.
or just even sent me a link for som simple reading. I have searched the web but I think im just confusing myself with what I find.
It's probably a good idea if you read the official Umbraco documentation on how to work with surface controllers - I think the key to the answer is in there.
button click in mvc?
I really did not think I would ask about this but I have worked for too long with web forms
so I cant figur out how to make a standard button click with some server side code, in web forms I just make a button click event but thats seams to be a hole diffrent way to do it in mvc.
Hope someone can make a simple eksempel where a button runs a function from a class file.
or just even sent me a link for som simple reading.
I have searched the web but I think im just confusing myself with what I find.
Hi Dan and welcome to our :)
It's probably a good idea if you read the official Umbraco documentation on how to work with surface controllers - I think the key to the answer is in there.
Also make sure to read Warren Buckleys post about surface controller here http://creativewebspecialist.co.uk/2013/07/22/umbraco-mvc-what-on-earth-is-a-surface-controller/
And asp.net is always a good ressource for general asp.net MVC stuff http://www.asp.net/mvc
Hope this helps.
/Jan
Thanks that helped me :)!
Hi Dan
Very pleased to hear that. Please do ask further questions if something else is troubling you :)
Have a nice day.
/Jan
is working on a reply...