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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
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
Hi,
I am a fresher. i have a problem related to DataGrid .
i have  a data grid and i have to place a dropdown in the 
datagrid.and i have to retrieve the values from the database
(sqlserver).please tell me any idea about the code.
 Question Submitted By :: Jyothisree
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Hi, I am a fresher. i have a problem related to DataGrid . i have a data grid and i have to place a dropdown in the datagrid.and i have to retrieve the values from the database (sqlserver).please tell me any idea about the code.
Answer
# 1
put the code inCODEFILE

		public DataSet PopulateDDList()
		{
			string sqlString ="select 
emp_name,emp_id from emp_current where 
emp_des='"+Des.PM+"'";/*ANY*/
			SqlDataAdapter ad = new 
SqlDataAdapter(sqlString,new log().db);
			DataSet ds = new DataSet();
			ad.Fill(ds);
			return ds;
		}

in the follwing aspx

<EditItemTemplate>
						
	<asp:DropDownList id=DropDownList1 runat="server"  
DataSource="<%#PopulateDDList()%>" DataTextField="emp_name" 
DataValueField="emp_id">
						
	</asp:DropDownList>
					
	</EditItemTemplate>

Actually this is work well
 
Is This Answer Correct ?    0 Yes 0 No
Ignatius
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
What is the difference between Server.Transfer and Response.Redirect? Why would you choose one over the other? Syntax-Softtech24
What is the importence of the INTERFACE? but not the inheritence concept?and why we r declaring the empty methods in that? we can directly implements with in the class know? Tell me the importence?  2
Create the Output by mearging 2 tables and taking common column sid from both you should not use database create table and data in it Randomly table 1 sid sname saddress 1 sa ampt 2 na hyd 3 ha hyd table 2 sid dno dname 1 12 stats 2 23 phy 3 12 stats OutPUt sid sname saddress did dname 1 sa ampt 12 stats 2 na hyd 23 phy 3 ha hyd 12 stats  1
How you will handle session when deploying application in more than a server? Describe session handling in a webfarm, how does it work and what are the limits? CoreObjects2
How can you assign styles to webforms? Microsoft2
Asp.net and asp ? differences?  2
How can we read a columnised text data in ASP.Net C#? Columnised means my data is stored in a text file and I have numeric data or string data in this file. For ex. If I am searching for the data of gender and I know that gender data is stored at column 32 in text file. How can I get this data in ASP.Net page. Thanks for help in advance.  2
can I use session variable in App_code Class page?? Wipro2
How can we Deploy a website?  2
what is strong name? Microsoft2
When is validation done on the client? How does client-side validation improve the efficiency of an application?  1
What is the difference between response.redirect and server.transfer, how to choose one among the other? 247Customer2
What is boxing and unboxing ? Accenture6
About DataAdapters ? Accenture7
Difference between ISQL and OSQL??  1
I need to download file from web server, without using save as dialogue box. Can anyone help, thanks In advance.  1
what is view state? Satyam9
How can i include both C# and vb.net classes in same solution?  2
Describe the role of inetinfo.exe, aspnet_isapi.dll and aspnet_wp.exe in the page loading process Visual-Soft1
Describe the two main components of the .NET framework ?  1
 
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