Eval() to display Person details Although the markup looks tidy, for a large number of rows and columns, you are executing Eval() that many times, which will reduce performance since DataBinder. The tip, titled Stop Users from Double Clicking, showed how to add a small bit of JavaScript to a form's submit button to prevent users from submitting a form more than once. Partial Requests in ASP. To integrate the feature in Firefox, download and install Auto Refresh add-on and restart your browser. NET MVC Framework Unleashed by Stephen Walther. NET Entity Framework” in the Nov/Dec 2007 issue of CODE Magazine. The same thing can happen with PHP, ASP, and any other type of web page. In previous articles i explained How to Disable browser autocomplete feature in TextBox and Retain password value in TextBox after postback and Get browser name,version,type. NET MVC , MVC , MVC 5 on 4 Jan 2016 compilemode. net mvc by using razor view engine. How can I avoid the CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) vulnerability when using the Html. Add the following code to the corresponding view page for Captcha. by Microsoft. The problem is that when browser refresh button or F5 or CTRL + F5 function keys are pressed, the last executed event is again executed. You are maintaining a separate CSS class for each part in upload file size details. If ShowExceptionsInDebugger == true -> The system will throw an exception in debbuger mode. 01 Service Pack 2 or higher? There is no way to completely prevent caching in earlier versions of the browser. Partial views in ASP. Join a community of over 2. Forum > How to refresh a page without Refreshing Master Page apeafa posted 3 years ago Configuration Views Blade. NET, jQuery, MVC, ajax. NET MVC 3 and Razor to enable this customization in a nice, clean way. NET, MVC, Web Form, File Proc. Granny's Programming Pearls "inside of every large program is a small program struggling to get out" JavaRanch. This post will show you 4 different ways to accomplish that. You can create an MVC Project and add necessary assembly and script with the given MVC-Getting Started Documentation. Net MVC Razor. If you mean on the same site (So it acts kind of like gmail), then it is possible if the site uses AJAX or something similar to dynamically send information behind the scenes and then uses javascript to update your page without you needing to refresh. Abstract: In ASP. Then we can partially refresh the content of it. When i am saving the record and clicking the refresh button the data. But whenever I click on submit button as usual my whole page gets refreshed. When I do something like click on the link in the menu it refresh the whole page which is correct but this redraws the whole screen and becomes annoying because on every post back a the whole screen flickers. NET MVC has built-in AJAX support, which helps to facilitates this pattern. I read a couple of articles online but sometimes they was a little bit confusing on their solution. I have a page with a Fileupload control and a gridview. Submit Form without Page Refresh with jQuery AJAX August 31, 2013 Ajax is a JavaScript based web development technology used for building asynchronous application. NET MVC the intentional lack of viewstate and the different page architecture force developers to re-create the view entirely per each request. By default In Asp. Chapter 6 – Understanding HTML Helpers This is a rough draft of a chapter from the book ASP. When a user is editing data on a web page and they navigate to another page before saving that data, their changes will be lost. Here Mudassar Ahmed Khan has explained with an example, how to implement Paging (Pagination) in WebGrid without Page PostBack (Refresh) in ASP. New here? Start with our free trials. Join a community of over 2. To resolve the problem, use callbacks instead. D) I have been successful in forcing FireFox to clear its cache (I am not sure why it isn't working in Chrome and I don't look at other browsers). Partial Requests in ASP. If you need to update a part of your page, place the corresponding controls inside ASPxCallbackPanel and initiate its callback via the client-side PerformCallback method. This is just a quick article to hopefully dispel some common misunderstandings of the ASP. how to avoid page refresh in asp. Jan 17 2014 1:49 AM. This example uses the News widget. If you ran my code you can see it sends totalExpenses to the id "outPut" but goes away after the page is refreshed. aspx?Prevent+Form+Resubmission+on+Refresh. NET MVC Without Page Refresh Filed Under: Ajax , ASP. Basically, the general idea is to redirect the user to some other pages after the form submission which would stop the form resubmission on page refresh but if you need to hold the user in the same page after the form is submitted, you can do it in multiple ways. If the media is the problem, run an MVCDRAIN EJECT to recall the VTVs and cause the MVC to be removed from the MVC pool. Hi, I have submitted the form through ajax request. Avoid Duplicate record insertion on page refresh in ASP. We will ship the official "ASP. If you mean on the same site (So it acts kind of like gmail), then it is possible if the site uses AJAX or something similar to dynamically send information behind the scenes and then uses javascript to update your page without you needing to refresh. Hi, I am writing a web application in MVC3 which consists of a master page (header / menus) which does not change. Update the Delete page. To use the view models and the Telerik UI Grid for ASP. When the upload is started, the uploader packs the files into a POST request and sends this request to the server. As a workaround, two new views can be created for the second Feather widget which will be used for showing the list of items on the details page. after clicking on button popup opening and closing on close. How To Disable ASP Session State in ASP. Net MVC both make this a pretty trivial thing to do by hiding the complexity of cache providers behind simple attributes to either your. Here Mudassar Ahmed Khan has explained with an example, how to prevent / avoid / stop Form Resubmission (Resubmit) when Refresh button clicked in Browser in ASP. I never try that though. using localStorage. CTRL+F5 should perform a full refresh of the page and all of its resources. In our last installment, we built a very simple Angular application from the ground up. Spring MVC automatically serializes to JSON because the client accepts that content type. I have bind View to controller through model. In this article I am going to discuss how to postback a form on ASP. Then we can partially refresh the content of it. In my case user keeps on updating data on my page for hours and then hit Save button but till the time the access token was getting expired. If your users are regularly reloading pages then you may need to rethink your site/app structure to prevent that. You can use a view master page, for example, to define a two-column page layout and use the two-column layout for all of the pages in your web application. html5Mode(true). Like Viewdata,it is also a dictionary type property. Is there any simple way to prevent form submission. NET Avoid Duplicate record insertion on page refresh in ASP. Net WebMethod and the data from the form fields i. As we can see in Layout view, the content is loaded as a partial view in 'RenderBody'. Hi, I find " beforeunload " method is best method to detect refresh event using JQuery ( Since "unload" JQuery method is deprecated ), however you are unable to customize the default alert. how can i do that ?. Is there any simple way to prevent form submission. using localStorage. On some pages we’ll customize the SideBar to contain content specific to the page it is included on: And on other pages (that do not have custom sidebar content) we will fall back and provide some “default content” to the sidebar: We’ll use ASP. How to "Maintain Grid state while page reload after Paging, sorting, and Filtering" This section demonstrates how to maintain page state (paging, sorting and filtering) at initial load with the help of Jquery cookies. The only possible way is to place the DropDownList inside ASP. Let's call that page RefreshSessionState. In order to avoid Page PostBack (Refresh) during Paging (Pagination), jQuery AJAX will be used in ASP. Hence it prevents the page postback. The tip is remarkably simple - in the button's client-side onclick event, simply set the button's disabled property to true. BeginForm() is an HTML helper that makes it easier to write an HTML form block in an MVC view. New here? Start with our free trials. NET MVC3/MVC4, that is a wrapper for Knockout. Prevent Repeated Requests using ActionFilters in ASP. Delete Row does not refresh Telerik MVC Grid Solution the refresh is not invoked. Modal Input Forms in ASP. More particularly I'll show you how to use the underlying ASP. this does not work for Refresh, when you refresh the page it tells the browser to repeat the last event - jmpena Apr 5 '09 at 7:38 That just stops the button from working more than once, regardless if the post comes from a reload or an actual button click. CacheControl" property or through a returned HTTP header? This is the only way to truly prevent caching in Internet Explorer. I was thinking about something simple. Here Mudassar Ahmed Khan has explained with an example, how to submit Form without Page Refresh using the Ajax. Submit Form without Page Refresh with jQuery AJAX August 31, 2013 Ajax is a JavaScript based web development technology used for building asynchronous application. One way to mitigate performance issues involving both server processing and request size is to use asynchronous Javascript (AJAX) to do partial page updates. In previous articles i explained How to Disable browser autocomplete feature in TextBox and Retain password value in TextBox after postback and Get browser name,version,type. Hi Khlood, There is no official SDK for. Enable refresh is used to refresh or change the captcha image without full page refresh. I am mainly using Angular for everything on my page. Add the following code to the corresponding view page for Captcha. Still what I done log in page with refreshing using jquery. How to Refresh DIV Content Without Reloading Page using jQuery? Last Updated on April 30th, 2017 by App Shah 31 comments In my previous example I've explained you, how to refresh data on JSP page coming from Spring MVC Controller and refresh using JQuery. Please read below article for more info. In Javascript, onbeforeunload event is fired when the page is about to unload and there can be multiple reasons for this unload. Browsers automatically save webpage images, stylesheets, favicon, and other files directly on your computer - this is called caching. Net MVC Razor. net caching engine to improve the performance of an application. Hi Khlood, There is no official SDK for. 0 success criteria. There is no opeartion on page 1 for 60 sec automatically redirect to page2. Granted, this isn't too practical for heavy websites, however, when you're first beginning the design of a new website, it's quite convenient!. Mvc is one of many good paging and sorting packages for ASP. Introduction: In this article i am going to explain How to prevent/avoid/stop duplicate record entry insertion when page is refreshed by clicking on browser's refresh button in asp. Published: 07 Jun 2007 Abstract In this article Bilal Haidar demonstrates how to handle the close event of the browser on the client side and execute a server side method on the server code. Some web pages automatically refresh thanks to the refresh code that the website creator built into the page. Mvc NuGet package. NET Core web application. But I need to refresh only partial view rather than whole page. If the parameter true is specified, it causes the page to always be reloaded from the server. Partial Requests in ASP. Apache Struts is a free, open-source, MVC framework for creating elegant, modern Java web applications. It's 'value' element is of type String[] whose values are the matching names used in @ModelAttribute either on method level or on handler's method parameter level. Are you using Internet Explorer 4. net: How to avoid duplicate record insert on page refresh. Some web pages automatically refresh thanks to the refresh code that the website creator built into the page. ) don't bind to model values on Postback, but rather get their value directly out of the POST buffer from ModelState. 1) i have create one project and using github file code i am able to run the Angular2 using NPM START. My code is giving proper output. Often we see that after executing a functionality by a button click (through posting a form to server), when we click on browser refresh button then a pop up re-sending previous page information to server shows and after clicking resend (retry in IE) that particular functionality re-executed i. using localStorage. Most of the times ASP. after clicking on button popup opening and closing on close. NET MVC views are rendered as a result of user navigating to some action. is the property of the ControllerBase class is used to pass data from one controller to other its. Now when we run the application and navigate to /Address, we get the following Index Page. For background on EF, see my previous article, “Introducing ADO. NET unobtrusive ajax library has many (few years well known :-( ) bugs. When a user is editing data on a web page and they navigate to another page before saving that data, their changes will be lost. aspx pages or controller actions. There are several ways to set up redirection, read more to see which is right for you. Net MVC Razor. Net ? One common problem we face when developing a Save or Submit input form will be insertion of duplicate data when clicking refresh(or F5) after clicking Submit or Save bu. NET One of most common issue which many of the web developers face in their web applications, is that the duplicate records are inserted to the Database on page refresh. First up, a quick explanation of what the Post/Redirect/Get (or PRG) Pattern is for those who don’t know. NET MVC the intentional lack of viewstate and the different page architecture force developers to re-create the view entirely per each request. I'm new to MVC and I'm trying to figure out how to best do things. There are two ways to serve the initial page for your SPA. In last Spring MVC form handling example, if you refresh the form success view, most browsers will prompt a pop-up dialog to confirm about the form resubmission. Spring Framework 5 delivers on this vision by providing a new reactive web stack called Spring WebFlux, which is offered side by side with the traditional Spring MVC web stack. NET MVC By The Web Flash · September 8, 2016 · Updated April 5, 2018 ASP. Are you using the Cache-Control header with the ASP "Response. I hope you can now avoid these unwanted warnings, and I also hope that I have helped to uncover some of the mystery surrounding them. Net Caching. net using C# and VB. When a user is editing data on a web page and they navigate to another page before saving that data, their changes will be lost. NET MVC Source Refresh build. In JavaScript, you refresh the page using document. net web forms. CacheControl" property or through a returned HTTP header? This is the only way to truly prevent caching in Internet Explorer. auto refresh a page in jquery, auto refresh html page every 10 seconds, automatic refresh page using jquery, jquery auto refresh page content, page refresh in jquery after some time, auto refresh web page php code, auto refresh a page in php, auto refresh after page loads, auto refresh page browser. Net MVC Razor. This tutorial explains how you can prevent open redirection attacks in your ASP. Is there any way to force new randomization of the token in every request?. less files to your MVC 4 project:. This tutorial discusses the changes that have been made in the AccountController in ASP. He starts the discussion with the improvements to this build and then demonstrates the creation of a new ASP. I was thinking about something simple. The problem is that when browser refresh button or F5 or CTRL + F5 function keys are pressed, the last executed event is again executed. This question is quite old and difficult to understand; however, I believe I may know the actual answer to the question. NET MVC business applications, you may need to maintain the state of the data across requests. If you want to use html5Mode, you need to change the code to $locationProvider. NET MVC For any browser-based application, it makes sense to load into the web page just the content that is immediately required and avoid whole-page refreshes whenever possible. Logout of MVC client tab 1. In earlier versions of ASP. Of course, we can't refresh complete page because that will annoy visitor, especially if he or she is completing a large form. HTML code on main page will be:. Reactive Spring represents a platform-wide initiative to deliver reactive support at every level of the development stack: web, security, data, messaging, etc. The reason the ModelBinder 'knows about' the cached list is because a reference to it is on the model that I'm binding to - I'm passing it out of the GetCachedCategories() function which originally simply returned the static list. but after page refresh my button click. NET MVC embraces is the "Do Not Repeat Yourself" principle (commonly referred to as "DRY"). If you want to create an web application for cross browser compatibility, the…. net mvc Wherever there is a form or page that allows a user to post up information, there is an opportunity for repeat postings and spam. BeginForm extension method is used to make AJAX calls to Controller’s Action method in ASP. Here is the code snippet from the page containing the data I'm looking to refresh when a user click the "update" form button: Themes Podcast Articles Premium Refresh DIV Content Without Reloading Page. Modal Input Forms in ASP. Read our How-to for MVC based widgets in The Portal Connector for Dynamics CRM and Dynamics 365. e reinsertion occurs in database or some other functionality that previously had been done. Introduction: In this article i am going to explain How to prevent/avoid/stop duplicate record entry insertion when page is refreshed by clicking on browser's refresh button in asp. It's for ASP. how can i do that ?. # re: Detecting browser 'Refresh' from Code behind in C# piyush. The meta refresh tag, or meta redirect, is one way that you can reload or redirect web pages. How to prevent XSS attack in ASP. how to avoid this, please. Net languages. When accessing any pages in our MVC application, the host name must be appended with /krams In the web. For the Delete page, the Entity Framework detects concurrency conflicts caused by someone else editing the department in a similar manner. That is, even though a page is refreshed, if a hidden form variable was changed by JavaScript before the refresh, the changed value will be used after the refresh. Net MVC application. How to "Maintain Grid state while page reload after Paging, sorting, and Filtering" This section demonstrates how to maintain page state (paging, sorting and filtering) at initial load with the help of Jquery cookies. On Cancel my fields are getting blank using JQuery but the post request remains as it is in browser. NET MVC In your ASP. I'll show how to take advantage of partial rendering via Ajax to avoid this page refresh and update the edit portion of the page when clicking on an edit link (this is the second scenario in the list earlier). Updating an MVC Partial View with Ajax 28 May 2014 Comments Posted in ASP. 6m developers to have your questions answered on No page refresh after button click of UI for ASP. Hence it prevents the page postback. There is also no concept of routes anymore (because it is outside the MVC scope). As we can see in Layout view, the content is loaded as a partial view in 'RenderBody'. Spring Framework 5 delivers on this vision by providing a new reactive web stack called Spring WebFlux, which is offered side by side with the traditional Spring MVC web stack. How to Clear Browser Cache Whenever you visit a website, your web browser saves certain information from that site on your computer's hard drive in something called the "browser cache. Hi Khlood, There is no official SDK for. NET MVC project in Visual Studio. Is there any simple way to prevent form submission. For instance, back or forward or refresh button is clicked or a link on the page is clicked etc. This is just a quick article to hopefully dispel some common misunderstandings of the ASP. If you could suggest design changes that it is ok too? i just need to make sure if user refresh the page the question need not be generated again and new quiz should not be registered to user. New here? Start with our free trials. How do I change the page refresh rate on Internet Explorer 10? I am using an online electronic laboratory notebook for research purposes and I have a recurring problem that when I spend roughly a minute typing in information the page refreshes automatically and I lose all the information that I have typed. I have bind View to controller through model. Here Mudassar Ahmed Khan has explained how to submit form to database without page refresh using jQuery AJAX and JSON in ASP. NET MVC is a powerful component, which allows you to visualize and edit data via its table representation. Instead of the default gray submit button, you may like to use an image. Thus, on a page load JavaScript can check to see if a hidden variable that defaults to being unset is set. << MVC DropDownListFor fill on selection change of another dropdown MVC EnumDropdownListFor bind with enum example >> Having 13+ years of experience in Microsoft Technologies (C#, ASP. TextBoxFor() etc. SSW Consulting team has delivered best of breed Microsoft solutions for more than 1000 clients in 15 countries. If I were to use MVC PopupControl Extension for the MVC pages and the ASP. This tutorial discusses the changes that have been made in the AccountController in ASP. Introduction: In this article i am going to explain How to prevent/avoid/stop duplicate record entry insertion when page is refreshed by clicking on browser's refresh button in asp. If you visualize objects on your page as a stack of sheets of paper, objects with the bigger z-indexes lie on the top of the stack. Howto force page reload/refresh of previous page when back button is pressed? - jQuery Forum. Net? Cross-Site scripting which is commonly called XSS attack is a vulnerability that can be found on any web applications. The only possible way is to place the DropDownList inside ASP. You should see that execution breaks within both method bodies. If am doing any operation on page not refreshed and not redirected to another page. I wrote a small library 'Better Unobtrusive Ajax (not only for ASP. One way to mitigate performance issues involving both server processing and request size is to use asynchronous Javascript (AJAX) to do partial page updates. NET MVC Author-Pradip Bobhate Published On-Dec 25 2013 9:02PM Section-Technical Chapter-Working With Files, ASP. Net which cause duplicate (double) inserts. In that case when the user insert some data to the textbox and click on the submit button, it will save the record to the Database and then if the user refresh the web page immediately then the same record is again saved to the database as there is no unique keys that can be used to verify the existence of the data, so as to prevent the. NET in particular; it is a built-in browser behavior. Here's a solution I have te. NET MVC C-sharpcorner. Submit Form without Page Refresh with jQuery AJAX August 31, 2013 Ajax is a JavaScript based web development technology used for building asynchronous application. This won't refresh the page. Suppose you are on the Home Controller's Index Action and you make changes to the page by performing a post function. Imagine that you are collecting information from your website users with an HTML form. - In today's world of Cloud computing, micro-services, and containers, you need a web development framework that is lightweight, cross-platform and easy to deploy. NerdDinner Step 7: Partials and Master Pages [This is step 7 of a free "NerdDinner" application tutorial that walks-through how to build a small, but complete, web application using ASP. So you need to override the CSS with display property. Effectively it looks like you can't change the display. net mvc - Detecting page refresh. I have a page with a Fileupload control and a gridview. Using this vulnerability, an attacker can take advantage on your application and insert some malicious script that will get executed automatically to accomplish whatever the attacker wants. But you can use ' HigLabo' library for interaction with the Dropbox. First you need to make modificaions in web. NET MVC Author-Pradip Bobhate Published On-Dec 25 2013 9:02PM Section-Technical Chapter-Working With Files, ASP. Name the file folder therein 'Chrome. Join a community of over 2. When you refresh the web page in the form success view, the form you just submitted is resubmitted again. While this does not work out of the box with MVC 5, I have provided a workaround that should help. 6m developers to have your questions answered on How prevent report from running on page load of Reporting Reporting. Revisiting Partial View Rendering in ASP. Net MVC dropdownlist's selected item's index change. after clicking on button popup opening and closing on close. aspx but instead do a ajaxposting inside the Html. I’ll show how to take advantage of partial rendering via Ajax to avoid this page refresh and update the edit portion of the page when clicking on an edit link (this is the second scenario in the list earlier). In this example, we have a simple contact form with name, email, and phone number. How To Page Refresh Using JavaScript In JSP In this section, we develop an User Login application. NET MVC C-sharpcorner. How to Prevent Caching in ASP. Listing 1 shows how you would use this helper in a Razor view. This article demonstrates that how to auto refresh partial view in asp. Security Issues with Single Page Apps Last week, I was asked to do a code review of a Single Page App built using the ASP. In fact, there is some confusion about MVC that is widespread. This can be done with a meta-refresh tag. There are two ways to use an image instead of the button. D) I have been successful in forcing FireFox to clear its cache (I am not sure why it isn't working in Chrome and I don't look at other browsers). New here? Start with our free trials. If you need to update a part of your page, place the corresponding controls inside ASPxCallbackPanel and initiate its callback via the client-side PerformCallback method. net using C# and VB. Net which cause duplicate (double) inserts. Post/Redirect/Get (PRG) is a web development design pattern that prevents duplicate form submission. 01 Service Pack 2 or higher? There is no way to completely prevent caching in earlier versions of the browser. How To Prevent Ajax. Net MVC Razor. Are there any events in the grid that will allow me to a) disable and then b) re-enable the automated refresh timer during refresh actions explicitly triggered by the user? Thanks again August 8, 2013 at 6:09 am How to avoid flicker when auto refreshing the grid? #26478. If it were possible to POST back to the same page, the widget which is in place on the page can then tackle the POST state. Here Mudassar Ahmed Khan has explained with an example, how to submit Form without Page Refresh using the Ajax. This article demonstrates how to use TempData and Session to achieve this requirement. Of course, to keep the web page from refreshing constantly, we'll place the refresh inside a tiny IFRAME. LocalStorage has enough support so it is not necessary to provide a cookie alternative. Enable Audio and Refresh. Typically it's used on the @Controller class. The pages flicker on page load and the images flicker on postbacks. He starts the discussion with the improvements to this build and then demonstrates the creation of a new ASP. The following post captures the implementation details to manage session timeout in ASP. 0 and 2 applications. POST Data In ASP. You also need to configure URL rewrite at server side. Tagged: java, java-tutorial, spring, and web. In my previous article I had discussed How to bind IList with MVC dropdownlist. Mvc has 236 books on Goodreads, and is currently reading The Haunting of Hill House by Shirley Jackson, Wuthering Heights by Emily Brontë, and Greenglass. NET MVC] One of the design philosophies ASP. If the parameter true is specified, it causes the page to always be reloaded from the server. Net MVC generates a bit of inline JavaScript attached to the onsubmit event of the form. spring-servlet. The following post captures the implementation details to manage session timeout in ASP. Prevent Refresh in ASP. # re: No more Meta Refresh Tags I tried the example but it only works the first time. Caching lets you visit the same site multiple times without having to download those files over and over again - you save time, the hosting company saves bandwidth, and the world makes sense again. Avoid Duplicate record insertion on page refresh in ASP. Among the more annoying features of the Internet, the Meta Refresh is an anachronistic relic of the past that seems to persist only as a tool of black hat website owners. On submit, the form should only post the entered value to an action method. ASPMANTRA | Asp. Enable refresh is used to refresh or change the captcha image without full page refresh. These validators should perform only on submit button click, instead in each post back all the validtions are performed. MVC and its alternatives hgraca Architecture , Development , Series , The Software Architecture Chronicles August 17, 2017 August 26, 2018 8 Minutes This post is part of The Software Architecture Chronicles , a series of posts about Software Architecture. How do I change the page refresh rate on Internet Explorer 10? I am using an online electronic laboratory notebook for research purposes and I have a recurring problem that when I spend roughly a minute typing in information the page refreshes automatically and I lose all the information that I have typed. Net MVC Razor. But when the user clicks the "reload" or "refresh" button, the browser submits the same form fields again, sometimes with unpleasant results. aspx?Prevent+Form+Resubmission+on+Refresh. Here's some handy jQuery to warn the user any time they attempt to navigate to another page with unsaved changes and give them the option of staying on the current page to save those changes. I have bind View to controller through model. How to Avoid Page Refresh in Asp. Intro to MVC - View presentation slides online. Net MVC application. (Single Page App). To avoid this problem, you can apply the post/redirect/get design pattern, which recommends redirecting to another URL after a form submission is handled successfully, instead of returning an HTML page directly. Share on: Twitter Facebook Google+. The meta refresh tag, or meta redirect, is one way that you can reload or redirect web pages. Net MVC TempData. Net Session object but of short life span. One way to mitigate performance issues involving both server processing and request size is to use asynchronous Javascript (AJAX) to do partial page updates. Codeproject. In that case when the user insert some data to the textbox and click on the submit button, it will save the record to the Database and then if the user refresh the web page immediately then the same record is again saved to the database as there is no unique keys that can be used to verify the existence of the data, so as to prevent the. I want the disabled property of all the menu items to be driven off of a property in my model.