Click here to Skip to main content
15,918,485 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to insert " ' " in to MS SQL table using SqlDataSource.InsertCommand Pin
Fred_Smith21-Jul-07 11:11
Fred_Smith21-Jul-07 11:11 
GeneralRe: How to insert " ' " in to MS SQL table using SqlDataSource.InsertCommand Pin
hurrem21-Jul-07 19:27
hurrem21-Jul-07 19:27 
AnswerRe: How to insert " ' " in to MS SQL table using SqlDataSource.InsertCommand Pin
enjoycrack21-Jul-07 16:22
enjoycrack21-Jul-07 16:22 
GeneralRe: How to insert " ' " in to MS SQL table using SqlDataSource.InsertCommand Pin
Hesham Amin22-Jul-07 0:15
Hesham Amin22-Jul-07 0:15 
QuestionHow to send SMS to any mobile globally Pin
Software_Guy_12321-Jul-07 5:19
Software_Guy_12321-Jul-07 5:19 
AnswerRe: How to send SMS to any mobile globally Pin
Sathesh Sakthivel21-Jul-07 22:15
Sathesh Sakthivel21-Jul-07 22:15 
Questiontwo dimensional array in vb.net [modified] Pin
Sonia Gupta21-Jul-07 1:48
Sonia Gupta21-Jul-07 1:48 
AnswerRe: two dimensional array in vb.net Pin
Guffa21-Jul-07 5:22
Guffa21-Jul-07 5:22 
This looks rather like a VB question than an ASP.NET question, as it has nothing at all to do with web development.

It's expensive to resize arrays. As it's not possible to actually resize an array, a new array is created every time, and all the data is copied from the old array to the new array.

Use a List of arrays, or a List of custom objects, instead of a two dimensional array.

Example in C#:

public class DemoClass {

   private string _wef, _abc;

   public DemoClass(string wef, string abc) {
      _wef = wef;
      _abc = abc;
   }

   public string Wef { get { return _wef; } }
   public string Abc { get { return _abc; } }

}

// read the data

List<DemoClass> items = new List<DemoClass>;
while (objDR.Read()) {
  items.Add(new DemoClass(objDR.GetString("wef"), objDR.GetString("abc")));
}

// access the data

foreach (DemoClass d in list) {
  doSomethingWithTheData(d.Wef, d.Abc);
}


---
single minded; short sighted; long gone;

QuestionGridview Paging Pin
venkata lakshmi prasanna21-Jul-07 1:19
venkata lakshmi prasanna21-Jul-07 1:19 
AnswerRe: Gridview Paging Pin
Fred_Smith21-Jul-07 5:21
Fred_Smith21-Jul-07 5:21 
AnswerRe: Gridview Paging Pin
Sathesh Sakthivel21-Jul-07 22:13
Sathesh Sakthivel21-Jul-07 22:13 
Questiondisplayin image Pin
boyindie21-Jul-07 0:24
boyindie21-Jul-07 0:24 
AnswerRe: displayin image Pin
Fred_Smith21-Jul-07 4:41
Fred_Smith21-Jul-07 4:41 
Questionconnection code in app_cofig file using windows form Pin
$h@ma!|@20-Jul-07 23:40
$h@ma!|@20-Jul-07 23:40 
AnswerRe: connection code in app_cofig file using windows form Pin
Sonia Gupta20-Jul-07 23:58
Sonia Gupta20-Jul-07 23:58 
AnswerRe: connection code in app_cofig file using windows form Pin
Psycho-*Coder*-Extreme21-Jul-07 6:37
Psycho-*Coder*-Extreme21-Jul-07 6:37 
Questionvalidation checks in desktop application Pin
ooooooooppppppss20-Jul-07 23:27
ooooooooppppppss20-Jul-07 23:27 
AnswerRe: validation checks in desktop application Pin
Sonia Gupta20-Jul-07 23:40
Sonia Gupta20-Jul-07 23:40 
GeneralRe: validation checks in desktop application Pin
ooooooooppppppss20-Jul-07 23:50
ooooooooppppppss20-Jul-07 23:50 
GeneralRe: validation checks in desktop application Pin
Sonia Gupta21-Jul-07 0:05
Sonia Gupta21-Jul-07 0:05 
QuestionCreateUserWizard Inquiry Pin
Tethibogz20-Jul-07 22:08
Tethibogz20-Jul-07 22:08 
AnswerRe: CreateUserWizard Inquiry Pin
Sonia Gupta20-Jul-07 23:00
Sonia Gupta20-Jul-07 23:00 
GeneralRe: CreateUserWizard Inquiry Pin
Tethibogz21-Jul-07 9:34
Tethibogz21-Jul-07 9:34 
AnswerRe: CreateUserWizard Inquiry Pin
enjoycrack21-Jul-07 16:24
enjoycrack21-Jul-07 16:24 
QuestionDrag and Drop and upload images in IE Pin
Milind Panchal20-Jul-07 21:16
Milind Panchal20-Jul-07 21:16 

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.