Click here to Skip to main content
16,003,902 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionScreen Capture Pin
Jeeva Mary Varghese10-Jul-06 21:37
Jeeva Mary Varghese10-Jul-06 21:37 
AnswerRe: Screen Capture Pin
Guffa11-Jul-06 0:07
Guffa11-Jul-06 0:07 
GeneralRe: Screen Capture Pin
Jeeva Mary Varghese11-Jul-06 0:21
Jeeva Mary Varghese11-Jul-06 0:21 
AnswerRe: Screen Capture Pin
Guffa11-Jul-06 9:41
Guffa11-Jul-06 9:41 
GeneralRe: Screen Capture Pin
Jeeva Mary Varghese11-Jul-06 23:16
Jeeva Mary Varghese11-Jul-06 23:16 
QuestionInsert command Pin
kirthikirthi10-Jul-06 20:42
kirthikirthi10-Jul-06 20:42 
AnswerRe: Insert command Pin
Guffa10-Jul-06 23:39
Guffa10-Jul-06 23:39 
GeneralRe: Insert command Pin
kirthikirthi11-Jul-06 0:48
kirthikirthi11-Jul-06 0:48 
GeneralRe: Insert command Pin
eggsovereasy11-Jul-06 9:01
eggsovereasy11-Jul-06 9:01 
QuestionInterop Error while including Microsoft outlook dll in dot net 2005 Pin
aaraaayen10-Jul-06 20:36
aaraaayen10-Jul-06 20:36 
Questionauto upload/export of a downloaded CSV file to SQLSERVER on the server Pin
amitcoder8310-Jul-06 19:55
amitcoder8310-Jul-06 19:55 
AnswerRe: auto upload/export of a downloaded CSV file to SQLSERVER on the server Pin
Saifi Hasan11-Jul-06 2:51
Saifi Hasan11-Jul-06 2:51 
Questionsave image in database and show all images in control from database [modified] Pin
srinandan..10-Jul-06 19:52
srinandan..10-Jul-06 19:52 
AnswerRe: save image in database and show all images in control from database Pin
Paul Conrad25-Jul-06 9:23
professionalPaul Conrad25-Jul-06 9:23 
QuestionInsert comment in Excel sheet with Asp.net Pin
mhemant10-Jul-06 19:50
mhemant10-Jul-06 19:50 
QuestionDesign Question Pin
smarttom9910-Jul-06 18:25
smarttom9910-Jul-06 18:25 
AnswerRe: Design Question Pin
Paddy Boyd10-Jul-06 22:09
Paddy Boyd10-Jul-06 22:09 
QuestionWEBSITE MONITORING:REQUEST:URGENT PLZZZZZZ Pin
Devi C10-Jul-06 18:03
Devi C10-Jul-06 18:03 
QuestionVCalendar in C# Pin
B Desai10-Jul-06 12:59
B Desai10-Jul-06 12:59 
QuestionUnmangle DLL name in DotNetNuke Pin
wildfiction10-Jul-06 11:29
wildfiction10-Jul-06 11:29 
Question3D Dynamic Virtual Tour Pin
DaViL8310-Jul-06 9:37
DaViL8310-Jul-06 9:37 
AnswerRe: 3D Dynamic Virtual Tour Pin
DaViL8311-Jul-06 2:47
DaViL8311-Jul-06 2:47 
QuestionDrop down list not populating [modified] Pin
leckey10-Jul-06 9:35
leckey10-Jul-06 9:35 
I have a drop down list (not attached to my datagrid anymore for those of you on the saga with me). I just want to populate this plain old drop-down box. But I can't get it to populate. I could get it to populate when I had it inside a datagrid, so I'm sure it's something easy.

Here is my asp code:
<asp:dropdownlist id=ddPartType style="Z-INDEX: 101; LEFT: 104px; POSITION: absolute; TOP: 48px" tabIndex=1 runat="server" Width="144px" Height="24px" DataSource="<%# GetPartTypes()%>" DataTextField="ptDescription" DataValueField="ptId" EnableViewState="True" AutoPostBack="True"><br />
			</asp:dropdownlist>


All I'm doing is calling GetPartTypes. Okay, here's that code (C#)
public DataSet GetPartTypes()<br />
		{<br />
			ds3 = new DataSet();<br />
			ds3= SqlHelper.ExecuteDataset(this.connectionString, "dbo.GetDescriptions", null);	<br />
			dt3 = ds3.Tables[0];<br />
			ds3.Tables[0].TableName="PartTypes";<br />
			ddPartType.DataSource = ds3;<br />
			ddPartType.DataBind();<br />
			return ds3;<br />
<br />
		}


This calls a stored procedure, GetDescriptions. I know this code works because it executes in Query Analyzer. It's just basically return the descriptions and order by description.

Going through the debugger it's like the code never gets called. So I delibrately called it in PageLoad and got a stack overflow.

BLECH!

Follow up: Okay I can get it to populate if I put the code in the PageLoad. Is this the only way to do it? Or is there something similiar to what I was trying to do?

-- modified at 16:09 Monday 10th July, 2006
AnswerRe: Drop down list not populating Pin
Not Active10-Jul-06 11:51
mentorNot Active10-Jul-06 11:51 
AnswerRe: Drop down list not populating Pin
postmaster@programmingknowledge.com10-Jul-06 17:47
postmaster@programmingknowledge.com10-Jul-06 17:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.