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

ASP.NET

 
GeneralRe: showing crystal report with query string parameter Pin
sk_ko23-Nov-11 17:22
sk_ko23-Nov-11 17:22 
AnswerRe: showing crystal report with query string parameter Pin
thatraja23-Nov-11 19:20
professionalthatraja23-Nov-11 19:20 
GeneralRe: showing crystal report with query string parameter Pin
sk_ko24-Nov-11 14:56
sk_ko24-Nov-11 14:56 
AnswerRe: showing crystal report with query string parameter Pin
thatraja24-Nov-11 15:05
professionalthatraja24-Nov-11 15:05 
GeneralRe: showing crystal report with query string parameter Pin
sk_ko24-Nov-11 15:44
sk_ko24-Nov-11 15:44 
AnswerRe: showing crystal report with query string parameter Pin
thatraja24-Nov-11 18:19
professionalthatraja24-Nov-11 18:19 
QuestionHow to fill several comboboxes with for loop? Pin
symeramon23-Nov-11 4:01
symeramon23-Nov-11 4:01 
AnswerRe: How to fill several comboboxes with for loop? Pin
Satheesh154623-Nov-11 6:22
Satheesh154623-Nov-11 6:22 
Hi,

1.Create a dataset.
2. Populate the dropdown list through the dataset.

SqlConnection mycn;
SqlDataAdapter myda;
DataSet ds;
String strConn;
private void Page_Load(object sender, System.EventArgs e)
{
if (!IsPostBack)
{
strConn="Data Source=localhost;uid=sa;pwd=;Initial Catalog=northwind";
mycn = new SqlConnection(strConn);
myda = new SqlDataAdapter ("Select * FROM CategoryTable ", mycn);
ds = new DataSet();
myda.Fill (ds,"Table");
DropDownList1.DataSource =ds.Tables [0] ;
DropDownList1.DataTextField =ds.Tables[0].Columns["CategoryName"].ColumnName.ToString();
DropDownList1.DataValueField =ds.Tables[0].Columns["CategoryId"].ColumnName.ToString();
DropDownList1.DataBind () ;
for (int i =0;i < DropDownList1.Items.Count ;i++ )
{
DropDownList1.Items[i].Attributes.Add("style", "color:" + ds.Tables[0].Rows[i]"CategoryColor"].ToString () );
}
}
}
GeneralRe: How to fill several comboboxes with for loop? Pin
Richard MacCutchan23-Nov-11 10:55
mveRichard MacCutchan23-Nov-11 10:55 
QuestionServer Error in '/book' Application. Pin
keyur satyadev23-Nov-11 2:13
keyur satyadev23-Nov-11 2:13 
AnswerRe: Server Error in '/book' Application. Pin
thatraja23-Nov-11 17:09
professionalthatraja23-Nov-11 17:09 
Questionany one can tell query or SP how to insert image in sql server Pin
sheemap23-Nov-11 1:15
sheemap23-Nov-11 1:15 
AnswerRe: any one can tell query or SP how to insert image in sql server Pin
Simon_Whale23-Nov-11 3:12
Simon_Whale23-Nov-11 3:12 
AnswerRe: any one can tell query or SP how to insert image in sql server Pin
thatraja23-Nov-11 17:12
professionalthatraja23-Nov-11 17:12 
Questionhow to print the aspx page without scroll.. Pin
Gopinath007222-Nov-11 22:41
Gopinath007222-Nov-11 22:41 
Questioncheckbox databind Pin
sk_ko22-Nov-11 20:04
sk_ko22-Nov-11 20:04 
AnswerRe: checkbox databind Pin
thatraja24-Nov-11 19:12
professionalthatraja24-Nov-11 19:12 
Questiondetailsview with dropdown list Pin
sc steinhayse22-Nov-11 14:41
sc steinhayse22-Nov-11 14:41 
QuestionJava script for gridview Pin
byka21-Nov-11 4:56
byka21-Nov-11 4:56 
AnswerRe: Java script for gridview Pin
Morgs Morgan22-Nov-11 21:59
Morgs Morgan22-Nov-11 21:59 
AnswerRe: Java script for gridview Pin
thatraja24-Nov-11 18:59
professionalthatraja24-Nov-11 18:59 
QuestionNavigation Pin
jashimu21-Nov-11 4:18
jashimu21-Nov-11 4:18 
GeneralRe: Navigation Pin
thatraja24-Nov-11 19:04
professionalthatraja24-Nov-11 19:04 
Questiononline users Pin
samwood201121-Nov-11 1:10
samwood201121-Nov-11 1:10 
AnswerRe: online users Pin
thatraja24-Nov-11 19:03
professionalthatraja24-Nov-11 19:03 

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.