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

Can we make activex dll also ti execute in some process as that of client ? How can we do?

4467


Is asp.net core faster?

772


How many ways are there to maintain a state in .net? What is view state?

801


What is manifest in .net framework?

774


Distinguish between Server-side and Client-side code?

784


What is Web API Routing?

832


What are the different web pages?

671


What are the asp.net 2.0 features?

748


Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?

723


How can we use Web API with ASP.NET Web Form?

830


What is parse in asp.net?

757


I have an external link in my application say www.xyztest.com. Today this site works on http protocal. Tommorow it may run on https. So i cant hardcore the protocal in the site. When a user clicks on the link how can i know if the external site works on http or https and takes him to that place?

1681


Which methods validate all the controls on a page?

758


What is diff. Between abstract class and an interface?

740


How do I open an ashx file?

768