Click here to Skip to main content
15,908,834 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionResize textboxes Pin
Zoltan Aszalos5-Oct-07 0:27
Zoltan Aszalos5-Oct-07 0:27 
AnswerRe: Resize textboxes Pin
Christian Graus5-Oct-07 0:36
protectorChristian Graus5-Oct-07 0:36 
QuestionSelect evet fires twice using ObjectDataSource GridView [modified] Pin
Nimua5-Oct-07 0:08
Nimua5-Oct-07 0:08 
QuestionIssue related with URL Pin
Malayil alex5-Oct-07 0:05
Malayil alex5-Oct-07 0:05 
AnswerRe: Issue related with URL Pin
Christian Graus5-Oct-07 0:07
protectorChristian Graus5-Oct-07 0:07 
AnswerRe: Issue related with URL Pin
N a v a n e e t h5-Oct-07 0:17
N a v a n e e t h5-Oct-07 0:17 
QuestionAccessing text file with URL Pin
Talal Sultan5-Oct-07 0:02
Talal Sultan5-Oct-07 0:02 
AnswerRe: Accessing text file with URL Pin
N a v a n e e t h5-Oct-07 0:22
N a v a n e e t h5-Oct-07 0:22 
Talal Sultan wrote:
I was wondering if there was a way to do the same but with text files instead of XML files.


Talal,

You can make use of WebClient class. This can be used to download data from remote URL. See the following snippet explains how you can read the text file from URL

System.Net.WebClient wc = new System.Net.WebClient();
byte[] b = wc.DownloadData("http://someserver.com/somefolder/myfile.txt");
string Text = System.Text.ASCIIEncoding.ASCII.GetString(b);

That's it, you will get text file content in Text variable. Now use some kind of regular expressions to parse it and read the necessary content.

Hope this helps


AnswerRe: Accessing text file with URL Pin
Talal Sultan5-Oct-07 0:47
Talal Sultan5-Oct-07 0:47 
GeneralRe: Accessing text file with URL Pin
N a v a n e e t h5-Oct-07 0:51
N a v a n e e t h5-Oct-07 0:51 
Questionvisible div Pin
venky4564-Oct-07 23:52
venky4564-Oct-07 23:52 
AnswerRe: visible div Pin
varshavmane5-Oct-07 0:14
varshavmane5-Oct-07 0:14 
GeneralRe: visible div Pin
venky4565-Oct-07 1:56
venky4565-Oct-07 1:56 
GeneralRe: visible div Pin
venky4565-Oct-07 1:57
venky4565-Oct-07 1:57 
AnswerRe: visible div Pin
Imran Khan Pathan5-Oct-07 0:27
Imran Khan Pathan5-Oct-07 0:27 
GeneralRe: visible div Pin
venky4565-Oct-07 1:55
venky4565-Oct-07 1:55 
QuestionHow to avoid button click event when the page refreshes? Pin
Madhuvan4-Oct-07 23:52
Madhuvan4-Oct-07 23:52 
AnswerRe: How to avoid button click event when the page refreshes? Pin
Christian Graus4-Oct-07 23:53
protectorChristian Graus4-Oct-07 23:53 
GeneralRe: How to avoid button click event when the page refreshes? Pin
Madhuvan5-Oct-07 0:41
Madhuvan5-Oct-07 0:41 
GeneralRe: How to avoid button click event when the page refreshes? Pin
Christian Graus5-Oct-07 0:51
protectorChristian Graus5-Oct-07 0:51 
AnswerRe: How to avoid button click event when the page refreshes? Pin
M_Menon5-Oct-07 0:12
M_Menon5-Oct-07 0:12 
GeneralRe: How to avoid button click event when the page refreshes? Pin
Christian Graus5-Oct-07 0:42
protectorChristian Graus5-Oct-07 0:42 
QuestionAmbiguous match found.? Pin
bug_aonz4-Oct-07 23:41
bug_aonz4-Oct-07 23:41 
AnswerRe: Ambiguous match found.? Pin
Christian Graus5-Oct-07 0:05
protectorChristian Graus5-Oct-07 0:05 
QuestionMSAcess database with password..., Pin
Member 38798814-Oct-07 22:59
Member 38798814-Oct-07 22:59 

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.