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

What’s the difference between response .redirect and server.transfer?

0 Answers  


What are the uses of reflection?

0 Answers  


Write code to send e-mail from an asp.net application?

0 Answers  


diff between Server.Transfer() and Server.Execute()

1 Answers  


What is the Custom Error in ASP.NET?

2 Answers   ABB, IBM, Infosys, Tech Mahindra,






What is boxing and how it is done internally?

1 Answers   Microsoft,


What combination of methods are used to improve the speed of the fill() method of the DataAdapter? a) BeginFillData() and EndFillData() b) StartFillData() and EndFillData() c) BeginLoadData() and EndLoadData() d) StartLoadData() and EndLoadData()

2 Answers   Syntax Softtech, winfoware,


What layout mode is the default when a new Web Form is created? a) GridBagLayout b) GridLayout c) FlowLayout d) FormLayout

2 Answers   Syntax Softtech,


Is It Possible for Static Variables access normal variable? and Normal Varialbe Access the static Variables?

1 Answers   Phoenix Technologies,


1.What are the types of events in asp.net? 2.what is databind? 3.what is COM objects? 4.Difference between gridview and datalist? 5.what is SOAP? 6.what are contents are available in asp.net page? 7.what are types of error?

1 Answers   CompuRx Infotech, Gemini, Gemini Communication,


How to disable validator control by client side JavaScript?

0 Answers  


What does asp.net stand for?

0 Answers  


Categories