calling a C# function from a link on an asp page
I have an asp login page. When a user clicks a link I need it to call a function in a .cs file to dynamically create the url and redirect. How would I g开发者_JS百科o about doing this?
I think this is what you're looking for.
you need to make use of postback. Add for example Button on the page and set property AutoPostBack=true, set it's Click event handler to be a method in your cs file (code behind) and use Response.Redirect() inside that handler
精彩评论