Click here to Skip to main content
15,922,584 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
kindly suggest me ,

text box named roll no , i want you assign input like (111,222,333)

when i click on submit button , i have to get details of all three roll no.

and even i want to assign the the parameter in stored procedure.

how will i do this one . give me some idea .
thanks in advance.
Updated 23-May-12 21:20pm

Separating the inputs, is easy:
string[] rolls = myTextBox.Text.Split(',');
"rolls" then contains an array of strings: "111", "222", "333"

After that, I have no idea what you are talking about...
Share this answer
You can split textbox text by ',' and fetch record for each rollno.
or you can use by sql directly
select *from Student where rollno in ("+textbox1.Text+");

and bind datalist with data fetched froma above query
Share this answer
string[] abc =string_name.Split(',');

and use each element(abc[0],abc[1],abc[2]) of string array in the store procedure.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900