Click here to Skip to main content
15,902,891 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: "Cannot apply indexing with [] to an expression of type 'System.Web.UI.WebControls.ListViewItem'" Pin
Manas Bhardwaj29-Aug-08 20:37
professionalManas Bhardwaj29-Aug-08 20:37 
QuestionWeird Issue Pin
kenexcelon29-Aug-08 17:51
kenexcelon29-Aug-08 17:51 
QuestionNeed Javascript logic for going to home page if history not present Pin
meeram39529-Aug-08 16:34
meeram39529-Aug-08 16:34 
AnswerRe: Need Javascript logic for going to home page if history not present Pin
Manas Bhardwaj29-Aug-08 20:43
professionalManas Bhardwaj29-Aug-08 20:43 
QuestionDynamically adding a control to a content page Pin
Cyberpulse29-Aug-08 14:41
Cyberpulse29-Aug-08 14:41 
QuestionReflection - GetValue question Pin
peacefulmember29-Aug-08 9:31
peacefulmember29-Aug-08 9:31 
QuestionConfigurarion error: Pin
salmonraju29-Aug-08 8:55
salmonraju29-Aug-08 8:55 
QuestionFile system object Pin
soorma29-Aug-08 6:22
soorma29-Aug-08 6:22 
I have a text file and i want to Split the file into mulitple files based off the city and then create new files with the city name.
I am able to read the file and also chnaged the semi colon to a comma in the file. How do i split into multiple files based on city and then create new ones based upon city names
This is how the text file looks like(just a junk data)

FirstName;LastName;DOB;City;State;Zip
Suzy;Adams;05/15/1977;Salt Lake City;UT;84054
Brady;Broom;03/16/1978;Provo;UT;84054
Andrew;Packard;02/06/1980;Salt Lake City;UT;84034
Ralph;Vunderly;01/15/1983;Provo;UT;84023


Thi si my code looks like

Imports System
Imports System.IO
Imports System.Collections
Partial Class _Default
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim objReader As New StreamReader("c:\test.txt")
Dim sLine As String = ""
Dim arrText As New ArrayList()

Do
sLine = objReader.ReadLine()
If Not sLine Is Nothing Then
sLine = Replace(sLine, ";", ",")
arrText.Add(sLine)

End If
Loop Until sLine Is Nothing
objReader.Close()

For Each sLine In arrText
' Console.WriteLine(sLine)
' MsgBox(sLine)
'Response.Write(sLine)
Dim furst As String = arrText(0)
Response.Write(furst)


Next
'Response.Write(sLine)
Response.Write(furst)
Console.ReadLine()
End Sub

End Class
AnswerRe: File system object Pin
Expert Coming29-Aug-08 8:07
Expert Coming29-Aug-08 8:07 
Questionprobleam concatenate string in asp.net Pin
Rinki Mukheraji29-Aug-08 3:28
Rinki Mukheraji29-Aug-08 3:28 
AnswerRe: probleam concatenate string in asp.net Pin
Abhijit Jana29-Aug-08 3:31
professionalAbhijit Jana29-Aug-08 3:31 
GeneralRe: probleam concatenate string in asp.net Pin
Rinki Mukheraji29-Aug-08 3:37
Rinki Mukheraji29-Aug-08 3:37 
GeneralRe: probleam concatenate string in asp.net Pin
Abhijit Jana29-Aug-08 3:50
professionalAbhijit Jana29-Aug-08 3:50 
GeneralRe: probleam concatenate string in asp.net Pin
Rinki Mukheraji29-Aug-08 3:41
Rinki Mukheraji29-Aug-08 3:41 
GeneralRe: probleam concatenate string in asp.net Pin
Abhijit Jana29-Aug-08 3:55
professionalAbhijit Jana29-Aug-08 3:55 
AnswerRe: probleam concatenate string in asp.net Pin
Manas Bhardwaj29-Aug-08 3:44
professionalManas Bhardwaj29-Aug-08 3:44 
GeneralRe: probleam concatenate string in asp.net Pin
Rinki Mukheraji29-Aug-08 3:48
Rinki Mukheraji29-Aug-08 3:48 
AnswerRe: probleam concatenate string in asp.net Pin
Abhishek Sur29-Aug-08 3:46
professionalAbhishek Sur29-Aug-08 3:46 
GeneralRe: probleam concatenate string in asp.net Pin
Rinki Mukheraji29-Aug-08 3:51
Rinki Mukheraji29-Aug-08 3:51 
GeneralRe: probleam concatenate string in asp.net Pin
Abhijit Jana29-Aug-08 3:52
professionalAbhijit Jana29-Aug-08 3:52 
GeneralRe: probleam concatenate string in asp.net Pin
Rinki Mukheraji29-Aug-08 3:57
Rinki Mukheraji29-Aug-08 3:57 
GeneralRe: probleam concatenate string in asp.net Pin
Abhijit Jana29-Aug-08 4:00
professionalAbhijit Jana29-Aug-08 4:00 
GeneralRe: probleam concatenate string in asp.net Pin
Abhijit Jana29-Aug-08 4:02
professionalAbhijit Jana29-Aug-08 4:02 
AnswerRe: Your Answer Pin
Abhijit Jana29-Aug-08 4:03
professionalAbhijit Jana29-Aug-08 4:03 
GeneralRe: Your Answer Pin
Rinki Mukheraji29-Aug-08 18:28
Rinki Mukheraji29-Aug-08 18:28 

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.