Click here to Skip to main content
15,885,979 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Using javascript functions ? Pin
kindman_nb26-Apr-08 20:53
kindman_nb26-Apr-08 20:53 
AnswerRe: Using javascript functions ? Pin
Christian Graus26-Apr-08 11:15
protectorChristian Graus26-Apr-08 11:15 
GeneralRe: Using javascript functions ? Pin
kindman_nb26-Apr-08 20:54
kindman_nb26-Apr-08 20:54 
AnswerRe: Using javascript functions ? Pin
samMaster27-Apr-08 0:18
samMaster27-Apr-08 0:18 
GeneralRe: Using javascript functions ? Pin
kindman_nb27-Apr-08 5:02
kindman_nb27-Apr-08 5:02 
GeneralRe: Using javascript functions ? Pin
samMaster27-Apr-08 18:44
samMaster27-Apr-08 18:44 
GeneralRe: Using javascript functions ? Pin
kindman_nb28-Apr-08 3:53
kindman_nb28-Apr-08 3:53 
GeneralAccessing a DropDownList inside a DetailsView Pin
Ekjon26-Apr-08 7:07
Ekjon26-Apr-08 7:07 
I have a DetailsView in which I have a DropDownList in the EditItemTemplate.
I need to access the list and populate it when the Edit command is clicked on the DetailsView.

I tried the following:
 <br />
protected void dvStation_ModeChanged(object sender, EventArgs e)<br />
{<br />
DetailsViewRow row = dvStation.Rows[0];<br />
DropDownList ddlStatus = (DropDownList)row.FindControl("ddlStatus");<br />
ddlStatus.DataSource = dsStatus;<br />
ddlStatus.DataTextField = "STATUS_NAME";<br />
ddlStatus.DataBind();<br />
}<br />

But its not populating my list. I also tried a SqlDataReader, did the connection and SQL, then used a while loop to populate like:
<br />
cmd = new SqlCommand(sql, conn);<br />
dr = cmd.ExecuteReader();<br />
while (dr.Read() != null)<br />
{<br />
     ddlStatus.Items.Add(dr.GetString(0));<br />
}<br />

That didn't do it either...
Any ideas?
Thanks.

Ekjon
GeneralRe: Accessing a DropDownList inside a DetailsView Pin
AlexeiXX326-Apr-08 7:34
AlexeiXX326-Apr-08 7:34 
GeneralRe: Accessing a DropDownList inside a DetailsView Pin
Ekjon26-Apr-08 10:02
Ekjon26-Apr-08 10:02 
GeneralRe: Accessing a DropDownList inside a DetailsView Pin
AlexeiXX327-Apr-08 18:42
AlexeiXX327-Apr-08 18:42 
GeneralProblem with DataTable Pin
Member 456754126-Apr-08 1:55
Member 456754126-Apr-08 1:55 
GeneralRe: Problem with DataTable Pin
N a v a n e e t h26-Apr-08 5:27
N a v a n e e t h26-Apr-08 5:27 
GeneralRe: Problem with DataTable Pin
Christian Graus26-Apr-08 11:18
protectorChristian Graus26-Apr-08 11:18 
GeneralRe: Problem with DataTable Pin
N a v a n e e t h28-Apr-08 20:21
N a v a n e e t h28-Apr-08 20:21 
GeneralRe: Problem with DataTable Pin
Christian Graus28-Apr-08 20:42
protectorChristian Graus28-Apr-08 20:42 
GeneralRe: Problem with DataTable Pin
N a v a n e e t h28-Apr-08 22:59
N a v a n e e t h28-Apr-08 22:59 
GeneralRe: Problem with DataTable Pin
Christian Graus28-Apr-08 23:58
protectorChristian Graus28-Apr-08 23:58 
GeneralRe: Problem with DataTable Pin
N a v a n e e t h29-Apr-08 0:48
N a v a n e e t h29-Apr-08 0:48 
GeneralRe: Problem with DataTable Pin
Christian Graus26-Apr-08 11:20
protectorChristian Graus26-Apr-08 11:20 
General[Message Deleted] Pin
Member 456754126-Apr-08 0:38
Member 456754126-Apr-08 0:38 
GeneralRe: Shared Access Specifier Pin
Christian Graus26-Apr-08 0:44
protectorChristian Graus26-Apr-08 0:44 
GeneralRe: Shared Access Specifier Pin
Christian Graus26-Apr-08 13:45
protectorChristian Graus26-Apr-08 13:45 
QuestionTwo Aspx Pages on Two Clients Interact With Each Others ??????????????????????? Pin
Feras Mazen Taleb25-Apr-08 23:17
Feras Mazen Taleb25-Apr-08 23:17 
GeneralRe: Two Aspx Pages on Two Clients Interact With Each Others ??????????????????????? Pin
Christian Graus25-Apr-08 23:23
protectorChristian Graus25-Apr-08 23:23 

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.