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

ASP.NET

 
GeneralRe: asp:TextBox weirdness Pin
#realJSOP19-Jan-08 2:13
mve#realJSOP19-Jan-08 2:13 
GeneralRe: asp:TextBox weirdness Pin
Abhijit Jana19-Jan-08 2:23
professionalAbhijit Jana19-Jan-08 2:23 
GeneralRe: asp:TextBox weirdness Pin
Michael Sync21-Jan-08 4:58
Michael Sync21-Jan-08 4:58 
GeneralRe: asp:TextBox weirdness Pin
#realJSOP19-Jan-08 2:15
mve#realJSOP19-Jan-08 2:15 
GeneralRe: asp:TextBox weirdness Pin
Abhijit Jana19-Jan-08 2:21
professionalAbhijit Jana19-Jan-08 2:21 
GeneralRe: asp:TextBox weirdness Pin
#realJSOP19-Jan-08 3:01
mve#realJSOP19-Jan-08 3:01 
GeneralRe: asp:TextBox weirdness Pin
Vasudevan Deepak Kumar19-Jan-08 19:12
Vasudevan Deepak Kumar19-Jan-08 19:12 
QuestionHow can this be possible? - Part 3 Pin
v1i9n6o7d19-Jan-08 0:39
v1i9n6o7d19-Jan-08 0:39 
Read through the scenario.

client A wants to read files from another client B present in the same network. But this reading should be done through a ASP.NET web application . In other words a client should be able to read a text file present on another client in the same network.

This scenario would be applicable in an intranet application. The thing to note is that the path of client B would be present in the server. The client A would pick the path from the server and navigate automatically to client B, hunt down the necessary folder and read the text files and store the necessary data in a database.

Here is the code on which I am working

protected void Button1_Click(object sender, EventArgs e)<br />
{<br />
DataTable dt = new DataTable();<br />
<br />
<br />
StreamReader sr = new StreamReader(@"\\Pc4\C$\NDP\Test1.csv");<br />
string line;<br />
while((line = sr.ReadLine()) != null)<br />
{<br />
Label1.Text += line;<br />
<br />
<br />
}<br />
<br />
}


The client A when he executes this code is intending to access another client B (Here it is PC4 in the same domain).
The code resides on server in Win 2K3 box.

I have identity impersonate="true" in web.config. In the Directory security I have Anonymous Access and Windows Authentication turned on.

So the basic flow is
Client A User requests through browser an aspx file residing on the server. On the form provided by the aspx file he clicks on the button to open a file in a location specified in the above mentioned code. This location is present on a machine (named PC4) which belongs in the same domain as client A. The NDP folder mentioned in the path is also shared and contains access permissions for user account who is making request as client A.
When I click on the button, it gives me a HTTP 404 error - stating File or Directory not found.
In the address bar I get to see
http://192.168.0.1/abtsweb/Genericerrorpage.htm?aspxerrorpath=/abtsweb/readingtextfile.aspx

Now what should be done in this case.
AnswerRe: How can this be possible? - Part 3 Pin
mohankatari21-Jan-08 0:25
mohankatari21-Jan-08 0:25 
GeneralRe: How can this be possible? - Part 3 Pin
v1i9n6o7d22-Jan-08 2:08
v1i9n6o7d22-Jan-08 2:08 
Generalpost back url Pin
sirisha guttikonda19-Jan-08 0:31
sirisha guttikonda19-Jan-08 0:31 
GeneralDuplicate Post -&gt; Please Ignore Pin
Abhijit Jana19-Jan-08 0:39
professionalAbhijit Jana19-Jan-08 0:39 
Generalpost back url Pin
sirisha guttikonda19-Jan-08 0:30
sirisha guttikonda19-Jan-08 0:30 
GeneralRe: post back url Pin
Abhijit Jana19-Jan-08 0:39
professionalAbhijit Jana19-Jan-08 0:39 
GeneralRe: post back url Pin
krishnaveer19-Jan-08 0:42
krishnaveer19-Jan-08 0:42 
GeneralRe: post back url Pin
sirisha guttikonda19-Jan-08 0:49
sirisha guttikonda19-Jan-08 0:49 
GeneralMenu control problem Pin
~V~19-Jan-08 0:10
~V~19-Jan-08 0:10 
QuestionHow to use Xquery in asp.net application Pin
VanithaVasu18-Jan-08 23:32
VanithaVasu18-Jan-08 23:32 
GeneralErro related to iis Pin
shabi uz zaman18-Jan-08 23:13
shabi uz zaman18-Jan-08 23:13 
GeneralRe: Erro related to iis Pin
pmarfleet18-Jan-08 23:40
pmarfleet18-Jan-08 23:40 
Generalnot getting +ve value in ExecuteNonQuery() Pin
Cuckoo18-Jan-08 23:06
Cuckoo18-Jan-08 23:06 
GeneralRe: not getting +ve value in ExecuteNonQuery() Pin
krishnaveer18-Jan-08 23:22
krishnaveer18-Jan-08 23:22 
GeneralRe: not getting +ve value in ExecuteNonQuery() Pin
Cuckoo18-Jan-08 23:32
Cuckoo18-Jan-08 23:32 
GeneralRe: not getting +ve value in ExecuteNonQuery() Pin
Cuckoo18-Jan-08 23:35
Cuckoo18-Jan-08 23:35 
GeneralRe: not getting +ve value in ExecuteNonQuery() Pin
krishnaveer19-Jan-08 0:05
krishnaveer19-Jan-08 0:05 

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.