Click here to Skip to main content
16,016,962 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: What is the best approach to generate random Password for user in asp.net 2.0 Pin
knbinoj5819-Dec-08 23:29
knbinoj5819-Dec-08 23:29 
AnswerRe: What is the best approach to generate random Password for user in asp.net 2.0 Pin
Aman Bhullar21-Dec-08 20:41
Aman Bhullar21-Dec-08 20:41 
GeneralRe: What is the best approach to generate random Password for user in asp.net 2.0 Pin
Rameez Raja21-Dec-08 20:56
Rameez Raja21-Dec-08 20:56 
GeneralRe: What is the best approach to generate random Password for user in asp.net 2.0 Pin
Aman Bhullar22-Dec-08 5:23
Aman Bhullar22-Dec-08 5:23 
Questiondate.parse problem Pin
todd.0101110119-Dec-08 14:19
todd.0101110119-Dec-08 14:19 
AnswerRe: date.parse problem Pin
Christian Graus19-Dec-08 15:27
protectorChristian Graus19-Dec-08 15:27 
GeneralRe: date.parse problem Pin
todd.0101110120-Dec-08 2:52
todd.0101110120-Dec-08 2:52 
QuestionHow to read everyother line from a CSV file Pin
Tina P19-Dec-08 10:55
Tina P19-Dec-08 10:55 
Hello,

I am reading a CSV file into the memory using a streamreader object. I was wondering if there's a way to skip every other line.

ABCD........ (read it)
EFGH........ (skip it)

Here's how I'm reading the csv file:

Command.Parameters.Add("@FirstName", SqlDbType.Nvarchar);
               Command.Parameters.Add("@LocationCode", SqlDbType.Float);\
               Command.Parameters.Add("@Zip", SqlDbType.Float);


                   for (int i = 0; i < 11; i ++)
                        {
                            while ((line = sr.ReadLine()) != null)
                            {
                                string[] col = line.Split(',');
                                cmd.Parameters["@FirstName"].Value = col[i];
                                cmd.Parameters["@LocationCode"].Value = col[i + 1];
                                .
                                .
                                cmd.Parameters["@Zip"].Value = col[i + 10];

                                cmd.ExecuteNonQuery();
                            }
                        }
Thanks

Tina
AnswerRe: How to read everyother line from a CSV file Pin
Blue_Boy19-Dec-08 11:50
Blue_Boy19-Dec-08 11:50 
GeneralRe: How to read everyother line from a CSV file Pin
Tina P22-Dec-08 5:58
Tina P22-Dec-08 5:58 
AnswerRe: How to read everyother line from a CSV file Pin
Christian Graus19-Dec-08 13:45
protectorChristian Graus19-Dec-08 13:45 
GeneralRe: How to read everyother line from a CSV file Pin
Tina P22-Dec-08 6:04
Tina P22-Dec-08 6:04 
GeneralRe: How to read everyother line from a CSV file Pin
Christian Graus22-Dec-08 10:46
protectorChristian Graus22-Dec-08 10:46 
GeneralRe: How to read everyother line from a CSV file Pin
Tina P22-Dec-08 12:20
Tina P22-Dec-08 12:20 
GeneralRe: How to read everyother line from a CSV file Pin
Christian Graus22-Dec-08 14:00
protectorChristian Graus22-Dec-08 14:00 
GeneralRe: How to read everyother line from a CSV file Pin
Tina P25-Dec-08 16:47
Tina P25-Dec-08 16:47 
QuestionWindows Authentication Pin
Jacob D Dixon19-Dec-08 9:51
Jacob D Dixon19-Dec-08 9:51 
QuestionAdding Controls to a updatepanel dynamically Pin
Alomgir Miah A19-Dec-08 9:49
Alomgir Miah A19-Dec-08 9:49 
AnswerRe: Adding Controls to a updatepanel dynamically Pin
Christian Graus19-Dec-08 10:46
protectorChristian Graus19-Dec-08 10:46 
GeneralRe: Adding Controls to a updatepanel dynamically Pin
Alomgir Miah A19-Dec-08 14:28
Alomgir Miah A19-Dec-08 14:28 
GeneralRe: Adding Controls to a updatepanel dynamically Pin
Christian Graus19-Dec-08 16:37
protectorChristian Graus19-Dec-08 16:37 
GeneralRe: Adding Controls to a updatepanel dynamically Pin
Alomgir Miah A19-Dec-08 18:07
Alomgir Miah A19-Dec-08 18:07 
GeneralRe: Adding Controls to a updatepanel dynamically Pin
Christian Graus19-Dec-08 18:23
protectorChristian Graus19-Dec-08 18:23 
GeneralRe: Adding Controls to a updatepanel dynamically Pin
Alomgir Miah A19-Dec-08 18:45
Alomgir Miah A19-Dec-08 18:45 
GeneralRe: Adding Controls to a updatepanel dynamically Pin
Christian Graus19-Dec-08 18:56
protectorChristian Graus19-Dec-08 18:56 

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.