MVC for ASP.net Webform [closed] - asp.net

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Goal:
Use MVC with ASP.net Webform only.
Problem statement:
Is it possible to use the concept MVC (Model, View etc.) for ASP.NET webform? If yes, how do I do it? Got any picture?

There seems to be some confusion in the comments. If I understand you correctly, you are not trying to make Webforms work with the ASP.NET MVC technology. You want to use the MVC Pattern with a WebForms page.
If that's the case, then no. You can't use the MVC Pattern with a Webforms page (ie full page lifecycle, etc..). The WebForms model just doesn't work in a way that is consistent with an MVC design.
You can, however, use other patterns that are similar to MVC and try to achieve similar goals of separation of concerns. The most common of these is the MVP or Model View Presenter pattern.
http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93presenter
http://msdn.microsoft.com/en-us/magazine/cc188690.aspx

Related

Convenient way to navigate throught views on uno-platform [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I am very new to UnoPlatform. I am trying to create a new application. Yet for some time I am stuck at creating convenient way to navigate through views.
I searched through webs and forums. I found that the best design pattern would be MVVM. Demo Apps on platform.uno seems to be implemented using this pattern as well. However some approaches i found online are not possible with unoplatform, as far as I understand it.
To give an example:
The app starts at LoginPage. On successful login I want to be taken to a completely different view with different controls. One of the approaches I found is by holding currently active viewmodel and render pages accordingly.
Is there some approach you would recommend for navigating through views? Or some material I could read to understand this concept better?
Using MVVM Light, the navigation needs to be performed using the NavigationService, as you'll find in this documentation: http://www.mvvmlight.net/doc/nav5.cshtml.
You can also use Prism for Uno, which handles navigation per regions. You can find documentation here https://prismlibrary.com/docs/ and samples here: https://github.com/PrismLibrary/Prism/blob/c71957ad56c0cfedf479d46dcb1870c96232d86c/e2e/Uno/HelloUnoWorld.Shared/ViewModels/ShellViewModel.cs#L30

Classic ASP to ASP.NET MVC [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am currently working with a classic asp application. We are looking to upgrade this in small phases to .NET. what I mean by small phases is page by page over an extended period of time.
I want to minimize impact to users. So upgrade pages but keeping the look the same for now. The classic asp app is all frames based so I think i could keep the look and run the upgraded page and point to the new page?
My questions are, what is the best method in doing this in peoples experience? Again I want to build this in .NET so I don't know if i would be best off using MVC or asp.net? would utilizing a particular framework make any difference here?
Those folks who have went through this pain in the past what were some gotchyas in upgrading and running a newer technology with an older technology? I would imagine i shouldn't have to much heartache in running these together.
Any additional things we should think about?
Thanks for the assistance.
MVC provides more control and flexibility. You can use .cshtml page to insert html code and use model variables (#Model.xxx with Razor) defined in your .cs code. You can easily display list box, combo box and other controls. Besides it does not require AJAX.

jQuery Mobile with ASP.NET and SQL Server [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Hopefully this question is not to broad or inappropriate for Stack Overflow. I use VS2013 to develop an asp.net website based upon SQL Server. I want to make a jquery mobile app that needs much of the DB content and would like to reuse my existing EF-linq-VB code. I've looked at somewhat similar questions here, but not found a good way to get started. I have ample books for the jquery mobile UI and often use regular jQuery in my web pages. It's not clear to me if I should start with an aspx page or an html page. If aspx then does this cause problems for jquery mobile? If html, then how to call VB code behind and move data back to the html page? Is there an good tutorial or example that deals with this? Thanks.
jquery mobile is Bulid on Javascript Base and It is Client Script , ASP.NET is on ServerSide .
so You can Choice html or aspx to Use jquery mobile. if you want exchange data. like Insert ,
Update, Delete. You can Use Json on ASP.NET in WebService or WebApi
ref
http://demos.jquerymobile.com/1.2.0/docs/forms/forms-sample.html
http://demos.jquerymobile.com/1.0a1/experiments/api-viewer/docs/jQuery.post/index.html
ASP.NET Example
Simple Form Submit in Jquery Mobile

ASP.NET MVC Grids [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Which is the best way to implement grids with common functionality for ASP.NET MVC application?
I don't want to develop it by my own, so could you please suggest best implementation, possibly with MVC support and free?
You can try the below ones..
DataTables.net
jqGrid
These are free and opensource. you just have to include the needed js files and call js methods to start using them...

ASP.NET MVC 4 Roles [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
what is the best way to manage roles in MVC 4? I found this tutorial:
http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-7
but I want to be flexible and add the back office user the power to create and assing roles to registred user.
Many thanks
The ASP.NET Configuration site mentioned in that tutorial does not even work with SimpleMembershipProvider.
You will need a few custom pages to do the following:
List users
Create/Edit user where you display a list of roles.
Then you can just use the built-in functions such as:
Roles.RoleExists(role)
Roles.CreateRole(role);
Roles.IsUserInRole(username, role)
Roles.AddUserToRole(username, role);
This assumes you are using a built-in provider and the data tables generated by ASP.NET. You can also inherit from the RoleProvider class and implement your own methods.
I don't think that the framework provides an out of the box solution for managing users and roles. It should however be quite easy to roll your own, especially if you use the new SimpleMembership provider.
You can also take a look at the SecurityGuard project, which seems quite nice, but I haven't tried it yet.

Resources