Click here to Skip to main content
15,889,877 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
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 
Hi,

That I know.I think still you are not clear about my question,

u r telling to do it as static.But my qn is how to do it dynamic?

ie instead of

DataRow dr = dt.NewRow();
dr["Name"] = "Sreejith";
dr["Address1"] = "604 E 25th St";
dr["Address2"] = "Chennaie, WY 82001-3133";
dr["Phone"] = "Phone: (45) 67-6445";
dt.Rows.Add(dr)
dt.AcceptChanges();

i need to get all data from that string array.
DataRow dr = dt.NewRow();
string[] strData = strPasteData.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);



dr{"Name"]=strData[i].ToString();
dr["Address1"]=strData[i].ToString();
dr["Address2"] =strData[i].ToString();
dr["Phone"]=strData[i].ToString();




Sreejith604
E 25th StChennaie,
WY 82001-3133
Phone: (45) 67-64456

consider the above data as 1 single record

but the problem is user will paste about 10 record at a time in a multiline textbox.

Here "" is the delimiter.if user entered 10 record there will be 9 ("")empty string to separate different data.

Known is a drop, unknown is an ocean
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 
QuestionXML [modified] Pin
Farraj9-Apr-10 2:52
Farraj9-Apr-10 2:52 
AnswerRe: XML Pin
Brij9-Apr-10 3:15
mentorBrij9-Apr-10 3:15 

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.