Hi,

I am confused; I am in hot water,
I need Ur help.

When I click on "Add Value" button my all values r getting added into database,
After that Every time I press "F5" my values are getting added again & again.
I am wondering what silly mistake i have done, not getting any clue....,
though i can restrict the Addition in some other way like[ IsSameItemExist() ] 
etc., but that's not the answer.

I just want to know why it�s behaving like this. 

I AM IN A SERIOUS FIX.

Please answer with a proper explanation.

Have a look at those functions bellow.


if (!Page.IsPostBack )
   {
   ShowValues(); 

   }


private void btnAddvalues_Click(object sender, System.EventArgs e)
  {
   
   AddValues();
   ClearAllValuesfromControls();
     
  }


function 1
=============
void AddValues()
{

 // this function will add values in DB
 ShowValues(); 
   
}

function 2
=============

void ShowValues()
{

 // this function will fetch values from  DB & show on the page.
   
}

function 3
=============
void ClearAllValuesfromControls()
 {
 // this function will clear all controls value like , txt1.text=""  etc.

 } 


Thanks 
Arindam



Thanks & Regards

Arindam 
Web Designer & Developer  




Yahoo! India Matrimony: Find your life partneronline.

[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to