Click here to Skip to main content
15,917,618 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: update panel issue Pin
Not Active10-Apr-10 2:11
mentorNot Active10-Apr-10 2:11 
Questionget bind Data only in postback Pin
Abdul Rahman Hamidy9-Apr-10 23:07
Abdul Rahman Hamidy9-Apr-10 23:07 
AnswerRe: get bind Data only in postback Pin
Brij9-Apr-10 23:23
mentorBrij9-Apr-10 23:23 
GeneralRe: get bind Data only in postback Pin
Abdul Rahman Hamidy9-Apr-10 23:26
Abdul Rahman Hamidy9-Apr-10 23:26 
GeneralRe: get bind Data only in postback Pin
nish11112-Apr-10 1:08
nish11112-Apr-10 1:08 
QuestionBinding Gridview with data from String array Pin
SreejithKumar M9-Apr-10 20:06
SreejithKumar M9-Apr-10 20:06 
AnswerRe: Binding Gridview with data from String array Pin
Brij9-Apr-10 20:55
mentorBrij9-Apr-10 20:55 
GeneralRe: Binding Gridview with data from String array Pin
SreejithKumar M9-Apr-10 21:14
SreejithKumar M9-Apr-10 21:14 
No, My question is how can we get that data from string array.

i ll explain it briefly.

there is a multiline textbox where user can copypaste some data like this

Sreejith
604 E 25th St
Chennaie, WY 82001-3133
Phone: (45) 67-64456



Rajesh
1609 E 19th St
Chennaie, WY 82001-4990
Phone: (453) 564-95654



Ramesh
1002 Rumsey Ave
Codys, WY 82414-3533
Phone: (307) 587-3008


this details may vary according to user input.

i am assigning this values in a string array.

string[] strData = strPasteData.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);

while running if i insert a breakpint here and checking for data i am vieing data like this

str[0]="Sreejith"
str[1]="604 E 25th St"
str[2]="Cheyenne, WY 82001-3133"
str[3]="Phone: (45) 67-64456"
str[4]=""
str[5]="Rajesh"
str[6]="1609 E 19th St"
str[7]="Chennaie, WY 82001-4990"
str[8]="Phone: (453) 564-95654"
str[9]=""
str[10]="Ramesh"
str[11]="1002 Rumsey Ave"
.
.
.
.



but my question is how can we this dynamic data into into gridview

ie in my gridviw there are 4 columns

Name
Address
Address2
Phone

I ve to assign values from string array to corresponding fields

In first row i need

Sreejith,604 E 25th St,Chennaie, WY 82001-3133,Phone: (45) 67-64456

2nd row

Rajesh,1609 E 19th St,Chennaie, WY 82001-4990,Phone: (453) 564-95654

this is my requirement

Known is a drop, unknown is an ocean
GeneralRe: Binding Gridview with data from String array Pin
Brij9-Apr-10 22:41
mentorBrij9-Apr-10 22:41 
GeneralRe: Binding Gridview with data from String array Pin
SreejithKumar M9-Apr-10 23:03
SreejithKumar M9-Apr-10 23:03 
GeneralRe: Binding Gridview with data from String array Pin
Brij9-Apr-10 23:13
mentorBrij9-Apr-10 23:13 
AnswerRe: Binding Gridview with data from String array Pin
Abhijit Jana9-Apr-10 22:23
professionalAbhijit Jana9-Apr-10 22:23 
GeneralRe: Binding Gridview with data from String array Pin
SreejithKumar M9-Apr-10 23:04
SreejithKumar M9-Apr-10 23:04 
QuestionManaging session Pin
krishnaveer9-Apr-10 19:56
krishnaveer9-Apr-10 19:56 
AnswerRe: Managing session Pin
sriharsha_129-Apr-10 20:46
sriharsha_129-Apr-10 20:46 
GeneralRe: Managing session Pin
Not Active10-Apr-10 0:58
mentorNot Active10-Apr-10 0:58 
AnswerRe: Managing session Pin
Brij9-Apr-10 20:51
mentorBrij9-Apr-10 20:51 
QuestionModalPopupExtender not posting second time Pin
vlehotay9-Apr-10 16:30
vlehotay9-Apr-10 16:30 
AnswerRe: ModalPopupExtender not posting second time Pin
vasumagadi20-Jun-11 4:30
vasumagadi20-Jun-11 4:30 
GeneralRe: ModalPopupExtender not posting second time Pin
vlehotay22-Jul-11 7:40
vlehotay22-Jul-11 7:40 
QuestionHow can we create ISAM FILES? Pin
Satish - Developer9-Apr-10 8:28
Satish - Developer9-Apr-10 8:28 
AnswerRe: How can we create ISAM FILES? Pin
Abhijit Jana9-Apr-10 8:57
professionalAbhijit Jana9-Apr-10 8:57 
QuestionCreate Sheduling For Send SMS Pin
lrsalunkhe9-Apr-10 3:48
lrsalunkhe9-Apr-10 3:48 
AnswerRe: Create Sheduling For Send SMS Pin
Abhijit Jana9-Apr-10 3:58
professionalAbhijit Jana9-Apr-10 3:58 
AnswerRe: Create Sheduling For Send SMS Pin
Sandesh M Patil9-Apr-10 4:19
Sandesh M Patil9-Apr-10 4:19 

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.