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
Related
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 7 years ago.
Improve this question
While Single-Page application approach is rising as a web development choice, I still don't understand, practically, how would losing the ability to go back/forward in the browser be an O.K sacrifice? Imagine Facebook without direct page navigation! Is there an essential/direct purpose for SPA I can't get my hands on?
You wont have to give up back button functionality to develop a single page application. HTML5 has a history api (and there's polyfills for older browsers) which allows your to keep back button functioning properly.
The main reason (in my opinion) to go for a single page approach is the more app-like feel it gives you. For example gmail feels more like an app than a web page, and given its purpose, I think that's way it should be too. Another example might be the pixlr online image editor.
Single page approach indeed doesn't suit every purpose, but when you want a webapp to feel just that, instead of a website, then single page might be the way to go.
You mentioned direct navigation in comments, and that's totally doable if it's something that makes sense in your context. Angularjs can do that, and I'm sure pretty much every modern single page framework has a way of implementing this.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am using masterpages in my aspnet website. .
Whenever I refresh or reload or redirect to another page of same application , the complete page is getting reloaded which taking lot of time in binding header and footers. ....
Is there any other way keep header and footer constant and only content inside it get reloaded........
That is not something MasterPages is going to solve for you.
MasterPages are intended to easily reuse the framework of your site.
Picture from MSDN explaining the behavior of MasterPages:
As you see, it's just A+B.
If you want to prevent reloading it every time, use AJAX.
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.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I just want to inform the user that the page is busy when it is loading or the action is being carried in the background or when the postback occurs by just changing the mouse cursor to busy.
The cursor should turn to normal pointer when the page is completely loaded in ASP.Net.
try this from setHourglass
With ASP.NET pages this is a bit more of a problem to do. You need to employ a little JavaScript.
Add this JavaScript between the tags on your ASP.NET web page:
Code:
function setHourglass()
{
document.body.style.cursor = 'wait';
}
Now you have to tell the web form to run the JavaScript funciton when a post back happens.
Add this to your tag:
Code:
<body onbeforeunload="setHourglass();" onunload="setHourglass();">
Also try this Hourglass-cursor-for-Web-ASP-NET-pages
Now to set it back to normal do this
document.body.style.cursor='default';
This helped me. However, it was for the ajax updatePanel. It may give you some ideas.
http://encosia.com/improved-progress-indication-with-aspnet-ajax/
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'm creating an ASP.NET web site where all pages hang off a database-driven tree-hierarchy. Pages typically present HTML content. But, some will execute programming.
Examples:
a "contact us" form
a report generator
How should I represent/reference the programming within the database? Should I have a varchar value of a Web User Control (.ascx) name? Or a Web Form (.aspx) name? Something else? Or should it just be an integer or other such ID in a dictionary within my application?
Can I make an ASP.NET Site Map Provider with this structure?
See more information here: Which is the best database schema for my navigation?
You might consider inserting placeholders like <my:contact-us-form/> in the database on specific pages; that way the database can describe all the static text content instead of completely replacing that database-driven content with an .ascx control.
Our development team has had success with defining the name of a Web User Control in the database. Upon page load it checks too see what controls to dynamically load from the database.
We use Web User Controls instead of Web Forms in order to ensure we can use the control on any page.
You can also dynamically build a site map using ASP.Net's provider. CodeProject has a good example.