Post Back Question

J

JJ297

Good Morning,

I have a text box and a gridview on my page. After I enter text and
hit the submit button I would like to see my entry populated in the
gridview the same time I hit the submit button. How do I do this?

Thanks.
 
M

Mike

when you click your button call your method that is binding your grid.

so something like this

void Btn_Click()
{
//add data
BindGrid();
}

void BindGrid()
{
GetData();
}
 
J

JJ297

when you click your button call your method that is binding your grid.

so something like this

void Btn_Click()
{
//add data
BindGrid();

}

void BindGrid()
{
GetData();

}







- Show quoted text -

Thanks Mike!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,143
Messages
2,570,822
Members
47,368
Latest member
michaelsmithh

Latest Threads

Top