Monday, September 17, 2018

Cascading drop-down list in asp.net Grid view | Dependent Dropdownlist inside GridView

Here i am going to explain how to do cascading drop down list in asp.net webform.code is copied from my project so not able to formatted properly due to lack of time.but you see the code and understand the implementation. .aspx code OnRowCommand="gvCity_RowCommand" OnRowEditing="gvCity_RowEditing" OnRowCancelingEdit="gvCity_RowCancelingEdit"  OnRowUpdating="gvCity_RowUpdating"...

Sunday, September 16, 2018

Different return types of asp.net mvc controller action method

Q.What are different return types of a controller action method? Answer: There are total nine return types we can use to return results from controller to view. The base type of all these result types is ActionResult. ViewResult (View): View Result is used to return a webpage from an action method. PartialviewResult (Partialview): PartialViewResult...

Page lifecycle of an ASP.NET MVC | ASP.NET page life cycle

Q.Explain “Page Life Cycle” of an ASP.NET MVC? Ans.In traditional ASP.NET webform application each asp.net page implements the IHTTPHandler interface. This interface has a ProcessRequest() method that gets called when you request the page. The ProcessRequest() method is responsible for processing the request and generating the response. So in asp.net...

What are the advantages of ASP.NET MVC

Q.What are the advantages of ASP.NET MVC  Answer:  Multi view support Due to the separation of the model from the view, the user interface can display multiple views of the same data at the same time. Separation of Concerns Separation of Concerns is one of the core advantages of ASP.NET MVC .Since code-behind concept has been removed...