ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
Suppose you display a data having 200 records in a 
datagrid. Then you edit 100 records of them. Now when you 
will press update button,all 100 records should be updated 
in single shot rather than reading every record and 
updating. How to do it?
 Question Submitted By :: Bassi
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Suppose you display a data having 200 records in a datagrid. Then you edit 100 records of them. Now when you will press update button,all 100 records should be updated in single shot rather than reading every record and updating. How to do it?
Answer
# 1
Here, bind primary key of database to datagrid column make 
it visible false.
and travel loop as 

foreach(DataGridItem dataItem in DataGrid1.Items) 
{
      priceText = (TextBox)dataItem.FindControl
("txtBookPrice");
   bookIdText = (TextBox)dataItem.FindControl("txtBookId");

Updatecode_for_perticular_row ();

   }

txtBookPrice= textbox from witch u would like to update
txtBookId= test i.e. unique id comming from database

With help of unique id in for loop  find perticular text in 
texbox and update.

This code you will write on update button click.
 
Is This Answer Correct ?    2 Yes 0 No
Guest
 
  Re: Suppose you display a data having 200 records in a datagrid. Then you edit 100 records of them. Now when you will press update button,all 100 records should be updated in single shot rather than reading every record and updating. How to do it?
Answer
# 2
First you load 20 records to DataGrid and add one 
more templet field like"Chech Box" finally add one button 
in your page for update operation

        you write code whatever CheckBox clike get all row 
id's and you can update row based on selected id's
 
Is This Answer Correct ?    0 Yes 0 No
Arief
 
 
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
Security types in ASP/ASP.NET? Different Authentication modes?  3
Is string a value type or a reference type?  9
What is dataset and uses of dataset ? TCS4
WHT IS DIFFERENCES BETWEEN HTML CONTROLS AND SERVER CONTROLS. HCL9
How do you add a javascript function for a link button in a datagrid ? Microsoft4
when using personlization, how do you access over setting at runtime?  1
After building the custom control, you test it by adding an ASP.Net web application to the solution. You add a correct <%@ Register %> directive and a proper declaration of the control in the <asp:Form> tag to the Web Form, but when you execute the application you get an error. What is the most likely reason for the problem? a) The custom control must be compiled first. b) The web application must have a reference to the control c) The custom control must be registered with windows first. d) The assembly from the custom control is not in the application?s bin directory. Syntax-Softtech1
What is web application virtual directory ? Satyam1
can u create two Primary key for a table? --Sivaa BirlaSoft8
How do we get only edited/deleted/inserted records from a Dataset? Syntax-Softtech1
what is satellite assembly in .net?  4
after which page life cycle event all properties of control will be "fully loaded " FactorH9
When would you not use the oleDbConnection object? a) To connect to an SQL 7.0 database. b) To connect to a DB/2 database. c) To connect to an Access database. d) To connect to an SQL 6.5 database. Syntax-Softtech5
Where does the Web page belong in the .NET Framework class hierarchy? Visual-Soft1
What is difference between masterpage and user control, what is the objective of master page when we had user control in .NET 1.1 version DELL3
Why Global.asax is used? Perot-Systems6
Can two web application share a session and application variable ? Satyam4
What is the difference between session state and session variables ? Digital-GlobalSoft4
What is FullTrust? Do GACed assemblies have FullTrust?  2
Below is a code extract from an ASP.Net application. The code basically reads data from the “name” field in the “members” table and prints them onto the webpage. Using the assumptions provided, fill in the 4 blanks below so that the code will run correctly. ‘Assumptions: ‘conn_str is a variable that holds the connection string to the database ‘Objects dbcomm and dbread are already declared earlier dbcomm = New OleDbCommand("SELECT name FROM members", conn_str) dbread = dbcomm._______________ _____________________ response.write(_______________) _____________________ dbread.Close() Techno-Solutions3
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com