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

Answers were Sorted based on User's Feedback



I M working in 1.1 .net framework. In a page I have 5 text box & 2 data grid. In PageLoad() A..

Answer / 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

I M working in 1.1 .net framework. In a page I have 5 text box & 2 data grid. In PageLoad() A..

Answer / manickaraj

If Not IsPostBack Then
your function or your code here
end if

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More ASP.NET Interview Questions

how we declare interface

2 Answers  


Explain difference betn dataset and recordset?

0 Answers  


Can anyone please tell me that the question posted on this website are Sufficient for the interview with 2+ year experience in .net

0 Answers  


what is difference between User Control,Custom Contro1,Web server control and template controls

1 Answers  


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

0 Answers   HCL,






Why do we use sessions?

0 Answers  


Which is the best institute for ASP.NET?

8 Answers   ABC Infotech, Tech Mahindra,


What are the different kinds of assemblies?

0 Answers  


What is the difference between debug and release?

0 Answers  


What does asax stand for?

0 Answers  


I am using ASP.Net 2.0. I added the following code in button_Click page. but 'PreviousPage' is not taking as a keyword. It throughs an error. Page Poster = this.PreviousPage; TextBox txtNewTest = (TextBox)Poster.FindControl("txtTest"); sDisplay = txtNewTest.Text; Response.Write(sDisplay); The following is the Error Message: 'controls_LoginMain' does not contain a definition for 'PreviousPage'

2 Answers  


List the types of authentication supported by asp.net?

0 Answers  


Categories