Genki Posted May 6, 2005 Posted May 6, 2005 I am just bearly learning asp.net and need some help I have created a simple form that inserts rows into an sql database. The Problem is when ever I hit the refresh button it also inserts a row. Is there an easy fix for this. Quote
Moderators Robby Posted May 6, 2005 Moderators Posted May 6, 2005 Yeah, remove the insert routine from your page load event :) , however, if you need it the first time a person visits the page then wrap your routine with the following code... if not IsPostBack then LoadInsertMyData() end if Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.