Refresh stress

Genki

Newcomer
Joined
Dec 21, 2004
Messages
2
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.
 
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
 
Back
Top