skip to main | skip to sidebar

Smart Coder

Monday, September 20, 2010

/* Textbox to dorpdownlist*/

//string[] arr;
////arr = Convert.ToString(TextBox1.Text);
//arr = TextBox1.Text.Split(',');
string abc = TextBox1.Text;
foreach (char a in abc)
{
DropDownList1.Items.Add(a.ToString());
}
//for (int i = 0; i < arr.Length; i++)
//{
// DropDownList1.Items.Add(arr[i]);
//}

Posted by codeguru at 11:16 PM

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Total Pageviews

Blog Archive

  • ► 2011 (1)
    • ► January (1)
  • ▼ 2010 (32)
    • ► November (2)
    • ▼ September (30)
      • Important All Code
      • File Upload
      • Grid Check box
      • Grid View Check box with link button click
      • Session Check
      • Catching Html textbox value
      • Code Behind Binding of Dropdown
      • Calculation of date Of birth
      • Red Green Button in gridview (true, False)
      • Row as column
      • /* catching btn argument value */
      • /* Generating Random number using system function */
      • /* Textbox to dorpdownlist*/
      • Data base CASE
      • Query string
      • /****** Convert to Ms word and Excel in one click ...
      • /****** Eneble false a gridview image field ******...
      • /* call calculator from .net */
      • /* Generate Random Numer with a certain range */
      • /* String Format For datetime */
      • /* String Format for Int */
      • /* String Format for Double */
      • /* Sorting Arrays */
      • Take Sql Backup from code behind
      • Replace query in sqlserver
      • /****** Seperate with Comma in DB ************/
      • Imp Sqlquery /* SQL QUERY */
      • dynamic gridview and table
      • Last entered row in sqlserver
      • MixedTrick
Design by: FinalSense