Click here to Skip to main content
15,888,984 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Basic XML question Pin
Piya B7-Sep-09 1:54
Piya B7-Sep-09 1:54 
GeneralRe: Basic XML question Pin
N a v a n e e t h7-Sep-09 6:09
N a v a n e e t h7-Sep-09 6:09 
QuestionUpdate listview items error Pin
Nourayn27-Sep-09 0:54
Nourayn27-Sep-09 0:54 
QuestionAjax Tabcontainer flickering issue? Pin
Pawan Kiran7-Sep-09 0:52
Pawan Kiran7-Sep-09 0:52 
AnswerRe: Ajax Tabcontainer flickering issue? Pin
Robert_Pan7-Sep-09 2:18
Robert_Pan7-Sep-09 2:18 
Questionproblem with Treeview Pin
rinku soni 237-Sep-09 0:50
rinku soni 237-Sep-09 0:50 
AnswerRe: problem with Treeview Pin
Gaurav K Singh7-Sep-09 0:59
Gaurav K Singh7-Sep-09 0:59 
Questioncolor of Drop down list remove on post back... Pin
Gaurav K Singh7-Sep-09 0:36
Gaurav K Singh7-Sep-09 0:36 
I uses the following code to dynamic fill the dropdownlist and forecolor of list item is set, it show good when first time load, but the style removes when the page postback...Any suggestion?

The code i use to fill dropdownlist is following...

Try
cnn.Open()
myreader = cmd.ExecuteReader()
While myreader.Read()

lst = New ListItem(myreader.GetValue(0).ToString().Trim(), myreader.GetValue(1).ToString().Trim())
If myreader.GetValue(2).ToString().Trim() = 0 Then
lst.Attributes.Add("style", "color:Red")
Else
lst.Attributes.Add("style", "color:Green")
End If

ddl.Items.Add(lst)
End While
ddl.DataBind()
Catch ex As Exception
Throw New Exception(ex.Message)
Finally
cnn.Close()
End Try

The miracle is this--the more we share, the more we have.

AnswerRe: color of Drop down list remove on post back... Pin
Abhishek Sur7-Sep-09 1:11
professionalAbhishek Sur7-Sep-09 1:11 
GeneralRe: color of Drop down list remove on post back... Pin
Gaurav K Singh7-Sep-09 1:14
Gaurav K Singh7-Sep-09 1:14 
GeneralRe: color of Drop down list remove on post back... Pin
Abhishek Sur7-Sep-09 1:31
professionalAbhishek Sur7-Sep-09 1:31 
Questionhow to call a javascript function from a linkbutton which is not in grid Pin
anushh6-Sep-09 23:49
anushh6-Sep-09 23:49 
AnswerRe: how to call a javascript function from a linkbutton which is not in grid Pin
Christian Graus6-Sep-09 23:50
protectorChristian Graus6-Sep-09 23:50 
AnswerRe: how to call a javascript function from a linkbutton which is not in grid Pin
Abhishek Sur6-Sep-09 23:52
professionalAbhishek Sur6-Sep-09 23:52 
GeneralRe: how to call a javascript function from a linkbutton which is not in grid Pin
anushh7-Sep-09 1:00
anushh7-Sep-09 1:00 
GeneralRe: how to call a javascript function from a linkbutton which is not in grid Pin
sashidhar7-Sep-09 1:55
sashidhar7-Sep-09 1:55 
QuestionMaster page load error Pin
EmZan6-Sep-09 23:29
EmZan6-Sep-09 23:29 
AnswerRe: Master page load error Pin
Christian Graus6-Sep-09 23:49
protectorChristian Graus6-Sep-09 23:49 
GeneralRe: Master page load error Pin
EmZan7-Sep-09 0:49
EmZan7-Sep-09 0:49 
AnswerRe: Master page load error Pin
Abhishek Sur6-Sep-09 23:49
professionalAbhishek Sur6-Sep-09 23:49 
GeneralRe: Master page load error Pin
EmZan7-Sep-09 0:51
EmZan7-Sep-09 0:51 
AnswerRe: Master page load error Pin
sashidhar7-Sep-09 0:07
sashidhar7-Sep-09 0:07 
GeneralRe: Master page load error Pin
EmZan7-Sep-09 0:52
EmZan7-Sep-09 0:52 
GeneralRe: Master page load error Pin
sashidhar7-Sep-09 2:07
sashidhar7-Sep-09 2:07 
QuestionTable not visible in dropdown in Gridview Pin
amittinku6-Sep-09 23:18
amittinku6-Sep-09 23:18 

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.