I M working in 1.1 .net framework.
In a page I have 5 text box & 2 data grid.
In PageLoad()
All text box will populate with blank value & 1st dataGrid
with some value.
When I click on EDIT button Of the 1st dataGrid,The Relevent
data Of the particular row will populate in first 3 textboxs
& corresponding relevent data Will populate in the 2nd DataGrid.
Now when I click 2nd datagrid's EDIT button of a perticular
Row,relevent data will populate on last 2 textboxs &
1st 3 textbox's value will be same as per as it was........

........My Problem Is ...........
When I click on edit button Of 2nd DataGrid, 1st 3 text
boxes values goes Off & 2nd DataGrid Is goes off Due to
Postback.but The relevent value is populated In last 2
textboxes.So How I stoped this postback??So that all the
data in 1st 3 textboxes will be same.So that I can edit the
values of 2nd Grid with 1st 3 textBoxes value..
plz dirctly mail me 1 copy of post to...
maloy.adhikari@in.com

Answer Posted / nabin

hi,
you can use this code to check IsPostBack or not using
IsPostBack property


if((!IspostBack))
{
//your form logic goes here
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of the code-behind feature?

765


Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?

2174


i want to implement grid view value in paypal site. so how to create this code in asp.net with C#

1749


Can the dictionary object be created in client?s scope ?

2225


What kind of programming language is ASP.NET?

856


What is difference between web config and global asax?

673


what are the ihttphandler and ihttphandlerfactory interfaces ?

749


Explain how is a property designated as read-only?

784


Explain the asp.net mvc request life cycle? : asp.net mvc

701


Is LINQ performance wise better or using sqlcommand?

4688


Can we use a static function with a non-static variable?

757


What is content page in asp net?

726


What is the displayafter property in updateprogress control?

745


How to disable cut, copy and paste in TextBox using jQuery in asp.net?

903


How does the iis work?

818