Click here to Skip to main content
15,900,644 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCombobox validation Pin
jdstuart14-Feb-08 3:45
jdstuart14-Feb-08 3:45 
GeneralRe: Combobox validation Pin
Christian Graus14-Feb-08 9:14
protectorChristian Graus14-Feb-08 9:14 
QuestionFile Upload - How to rename a file Pin
Boshkash14-Feb-08 3:26
Boshkash14-Feb-08 3:26 
GeneralRe: File Upload - How to rename a file Pin
Vasudevan Deepak Kumar14-Feb-08 3:29
Vasudevan Deepak Kumar14-Feb-08 3:29 
GeneralCrystal Report Error Message Pin
macca2414-Feb-08 3:13
macca2414-Feb-08 3:13 
GeneralRe: Crystal Report Error Message Pin
Vasudevan Deepak Kumar14-Feb-08 3:30
Vasudevan Deepak Kumar14-Feb-08 3:30 
GeneralRe: Crystal Report Error Message Pin
macca2414-Feb-08 3:40
macca2414-Feb-08 3:40 
QuestionHOW to persist data with color in dropdownlist control Pin
mohd imran abdul aziz14-Feb-08 2:28
mohd imran abdul aziz14-Feb-08 2:28 
Hi all,

I am using asp.net2.0 , C# and sql server 2005.

When i fill the dropdownlist with two color based on contdtion in recordset it fill successfully but on seletedindex _change those color vanish but record remains.

how can i persist data with color ?

the code i used to fill the data is

foreach (DataRow row in dtcompany.Rows)

{

if (row["HM_TRG_FLAG"].Equals(true) )

{

ListItem item = new ListItem(row[1].ToString(), row[0].ToString());

// item.Attributes.Add("Tooltip", row[1].ToString());

item.Attributes.Add("style", "color:GREEN");

ctrl.Items.Add(item);

//ctrl.Items.Add(new ListItem(ctrl.Items.Add(item);, row[0].ToString()));

}

else

{

ListItem item = new ListItem(row[1].ToString(), row[0].ToString());

// item.Attributes.Add("style", "color:RED");

item.Attributes.Add("Tooltip", row[1].ToString());

ctrl.Items.Add(item);

}

}

regards
imran khan

AnswerRe: HOW to persist data with color in dropdownlist control Pin
Sandeep Akhare14-Feb-08 3:00
Sandeep Akhare14-Feb-08 3:00 
GeneralRe: HOW to persist data with color in dropdownlist control Pin
mohd imran abdul aziz14-Feb-08 3:40
mohd imran abdul aziz14-Feb-08 3:40 
GeneralGenerating two level using asp:menu control [modified] Pin
sanjubaba14-Feb-08 2:26
sanjubaba14-Feb-08 2:26 
GeneralRe: Generating two level using asp:menu control Pin
Vasudevan Deepak Kumar14-Feb-08 3:32
Vasudevan Deepak Kumar14-Feb-08 3:32 
GeneralRe: Generating two level using asp:menu control Pin
dilipv14-Feb-08 20:03
dilipv14-Feb-08 20:03 
QuestionUnable to validate data Pin
Muhammad Gouda14-Feb-08 2:09
Muhammad Gouda14-Feb-08 2:09 
GeneralRe: Unable to validate data Pin
Sandeep Akhare14-Feb-08 3:18
Sandeep Akhare14-Feb-08 3:18 
GeneralRe: Unable to validate data Pin
Muhammad Gouda14-Feb-08 5:52
Muhammad Gouda14-Feb-08 5:52 
GeneralRe: Unable to validate data Pin
amargujrathi200614-Feb-08 4:35
amargujrathi200614-Feb-08 4:35 
GeneralRe: Unable to validate data Pin
Muhammad Gouda14-Feb-08 6:02
Muhammad Gouda14-Feb-08 6:02 
GeneralRe: Unable to validate data Pin
Venkatesh Mookkan14-Feb-08 15:51
Venkatesh Mookkan14-Feb-08 15:51 
QuestionAJAX 'Eating' controls after repeater controls Pin
Paul Brower14-Feb-08 1:39
Paul Brower14-Feb-08 1:39 
GeneralRe: AJAX 'Eating' controls after repeater controls Pin
Steve Westbrook14-Feb-08 2:34
Steve Westbrook14-Feb-08 2:34 
GeneralRe: AJAX 'Eating' controls after repeater controls Pin
Sandeep Akhare14-Feb-08 3:10
Sandeep Akhare14-Feb-08 3:10 
GeneralRe: AJAX 'Eating' controls after repeater controls: Found Problem Pin
Paul Brower14-Feb-08 4:15
Paul Brower14-Feb-08 4:15 
Questionhow to create a directory in my local physical directory using asp.net ?? Pin
Shaik Haneef14-Feb-08 1:12
Shaik Haneef14-Feb-08 1:12 
AnswerRe: how to create a directory in my local physical directory using asp.net ?? Pin
Christian Graus14-Feb-08 9:25
protectorChristian Graus14-Feb-08 9:25 

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.