I have a single form and am displaying data from ms access database directly in the corresponding textboxes. I have 8 button namely: First, previous, Next, Last, Update, Delete, Edit and Exit. I need help in coding the update, delete, edit button rest i have written the code. Am not using gridview since my requirement is to display the data in the textbox rather than the gridview. I also want to try the same thing in web application as well. there i need help in coding all the 8 buttons. somehow my code works only few times. so please help me in this regard. Am still learning working with windows forms and web application. Am very new to programming.
Thanks in advance,
Avinash.
Loading
shashi reddyPosted Mar 17, 2011, 6:00 AM
u said that u r displaying database directly in the corresponding textboxes..
if suppose there are 10 rows which row data will be entered into the textboxs....
try this u may get sme idea by seeing...
protected void update_button_Click(object sender, EventArgs e)
{
edit_button.Visible = true;
cancel_button.Visible = true;
update_button.Visible = false;
}
protected void edit_button_Click(object sender, EventArgs e)
{
write connection code;
write query;
edit_button.Visible = true;
cancel_button.Visible = true;
update_button.Visible = false;
}
protected void cancelbutton_Click(object sender, EventArgs e)
{
edit_button. = false;
cancel_button = false;
update_button = true;
}