how to create controller in asp.net web form without taking controller class we should take only normal class and how to do routing in that class and make that class work exctly as controller
Loading
how to create controller in asp.net web form without taking controller class we should take only normal class and how to do routing in that class and make that class work exctly as controller
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Tuhin PaulPosted Mar 22, 2023, 1:47 PM
In ASP.NET Web Forms, there is no specific controller class like in ASP.NET MVC. However, you can create a regular class and use it to handle requests by implementing the
IHttpHandlerinterface.Tuhin PaulPosted Mar 22, 2023, 1:49 PM
To use this class to handle requests, you need to register it in the RouteConfig class. You can do this by adding a new route to the RouteTable:
Jaya PrakashPosted Mar 21, 2023, 7:28 AM
Jaya PrakashPosted Mar 21, 2023, 5:19 AM
Jaya PrakashPosted Mar 21, 2023, 4:46 AM