ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
   
 
Categories  >>  Code Snippets  >>  Programming Code  >>  Dot Net Code  >>  C Sharp Code
 
 


 

 
 ASP.NET Code interview questions  ASP.NET Code Interview Questions
 VB.NET Code interview questions  VB.NET Code Interview Questions
 C Sharp Code interview questions  C Sharp Code Interview Questions
 ADO.NET Code interview questions  ADO.NET Code Interview Questions
Question
how can i split sting in textbox in windows application using 
c# .net
 Question Submitted By :: Sk.suman
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how can i split sting in textbox in windows application using c# .net
Answer
# 1
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 ?    6 Yes 9 No
Sasd
 
  Re: how can i split sting in textbox in windows application using c# .net
Answer
# 2
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 ?    2 Yes 0 No
Suresh
 
 
 

 
 
 
Other C Sharp Code Interview Questions
 
  Question Asked @ Answers
 
Write a program to input an integer and - display the reverse - display the sum of each digit - should include logic that considers the input number as any number of digits long Mind-Tree2
How to Create a Treeview Menu in ASP.NET with C#?  1
Write a program. there are 1..n numbers placed in an array in random fashion with one integer missing. find the missing number. Mind-Tree1
how can i split sting in textbox in windows application using c# .net  2
program for string reverse(eg:- i am boy -> boy am i) Mind-Tree8
program to reverse the order of words in a string. Mind-Tree2
how to change password in .net with c # with ado.net and also SQL server 2008 change password  1
How to use ASP.NET 2.0's TreeView to Display Hierarchical Data?  1
Coding for using Nullable Types in C#?  1
c# coding for a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors not using the Big-integer and Exponential Function's. TCS1
. Write a program to print the following outputs using for loops $ $ $ $ $ $ $ $ $ $ $ $ $ $ $  2
Coding for Manipulate XML File Data Using C#?  1
 
For more C Sharp Code Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com