Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how can i split sting in textbox in windows application using
c# .net

Answers were Sorted based on User's Feedback



how can i split sting in textbox in windows application using c# .net..

Answer / suresh

DropDown spliting numbers1-100,101-200,...901-1000

ddlnumbers.Items.Clear();
string s=ddlselct.SelectedItem.ToString();
string[] value = s.Split('-');

var v1 =Convert.ToInt32(value[0]);
var v2 =Convert.ToInt32(value[1]);

for (int i = v1; i <= v2; i++)
{
ddlnumbers.Items.Add(i.ToString());
}

Is This Answer Correct ?    4 Yes 0 No

how can i split sting in textbox in windows application using c# .net..

Answer / sasd

string s = in_txt.Text;
string[] a;
// Split string on spaces.
// ... This will separate all the words.
//
string[] words = s.Split(' ');
foreach(string word in words)
{
for (int i = 0; i <= 3; i++)
{
a[i] = word;
}

Is This Answer Correct ?    11 Yes 15 No

Post New Answer

More C Sharp Code Interview Questions

How to export 2 datatables of a single dataset to 2 different worksheets of a single MSExcel file ?

0 Answers   Eastcom Systems,


Write a program. there are 1..n numbers placed in an array in random fashion with one integer missing. find the missing number.

1 Answers   Infosys, Mind Tree,


Give the code for Handling Mouse Events?

0 Answers  


How to use ASP.NET 2.0's TreeView to Display Hierarchical Data?

1 Answers  


program for addition of fraction(M/N + P/Q = Y/Z)

1 Answers   Mind Tree,


. Write a program to print the following outputs using for loops $ $ $ $ $ $ $ $ $ $ $ $ $ $ $

3 Answers  


Event Handling in C# Triggering a Button

1 Answers  


Code for IP Address Comparison and Conversion in C#?

0 Answers  


Coding for Manipulate XML File Data Using C#?

1 Answers  


write a Program to copy the string using switch case.

0 Answers   Mind Tree, Wipro,


Code for Working with Files under a Directory?

1 Answers  


program to reverse the order of digits in a given number of any length.

1 Answers   Mind Tree,


Categories
  • ASP.NET Code Interview Questions ASP.NET Code (46)
  • VB.NET Code Interview Questions VB.NET Code (9)
  • C Sharp Code Interview Questions C Sharp Code (51)
  • ADO.NET Code Interview Questions ADO.NET Code (8)