C# - Write The Client Ip And Computer Name On Server?
Jan 15, 2011Is there any way to write the client IP and computer name on my server running ASP.NET?
View 4 RepliesIs there any way to write the client IP and computer name on my server running ASP.NET?
View 4 RepliesWhen am using below code it's working fine on my local host but when am host on server getting error.
Response.Write("sam "+System.Net.Dns.GetHostEntry(Request.ServerVariables["REMOTE_HOST"]).HostName);
Error:
The requested name is valid, but no data of the requested type was found.
I have written the following code that successful ftps a file to the proper location as long as the file exists on the server itself....
However, I need the code to pull the file contents from the client computer, not the server.
Here is the code:
[Code]....
When I deploy this application to my staging server and test it, it's looking for the files on the staging server...not my local computer.
here i have code for write cookies in computer but i dont know where is store in local pc , i know it write some where b'caz i can read this cookies also but where it save in local pchere is code
'Create a new cookie, passing the name into the constructor
Dim ContactId As New HttpCookie("ContactID")
Dim PWDID As New HttpCookie("PWDID")
[code]...
I need to get the top-level domain of a client computer accessing my website. How do I do this? (code snippets in VB would be preferred).
View 2 RepliesIm using forms authentication on a site. I have a requirement where I have to log the username of the user that is currently logged into the computer. It is not a public site. It is an intranet site at work. I have tried several different methods but they all return the username of the user that is logged into the site. The methods I have tried are below. Note: I would perfer to log the username without the domain.
[Code]....
how to make any text file on the client computer ?
can i get any C# asp.net sample code ?
I have web service on server! This service is calling from the clients applications!
Now how i can get user name and computer name of clients that using this service, for example if application from Clint1 calling this service i want to get computer name and user name of Clint1?
how to make any text file on the client computer ?can i get any C# asp.net sample code ?
View 4 RepliesIs it possible to read data from serial port of client system using asp.net web site. Here is my scenario
I will be having computers connected in LAN and a web application which resides on server. Each client computer will be connected to a external machine using serial port and is ready for reading data, external machine measures equipment details and sends through serial port.Now I need to read the same data using my web page, is it possible?
Like when we do video chatting our web page reads data from web cam and sends the stream to web page. this way how can I read data from client machine to web page.
The subject of this thread is my question and I am really very sorry, I cannot brief it. I have generated the pdf file which contains text taken as input by various web-form and have saved it in my local drive then sended it to some email addresses. Now I want to know that how can I save it in client computer and send it to some email addresses provided by Client on demand? I am failed to solve this problem as I don't know how to get INFORMATION OF CLIENT'S LOCAL DRIVE AS CLIENT MAY USES DIFFERENT OPERATING SYSTEM.
View 25 RepliesI have an asp.net (FW 3.5) web app that runs on an internal network. One specific page needs to "report" in to the web server that it is active and not locked up. I need to be able to run a script (or something) at the client to report the pc's computer name in that report. I cannot find a method that does this. I found several things that would report the WAN IP or host name, but this appears to all be for external facing sites.
View 1 RepliesIf I have a standard HTML textbox
[Code]....
but got a readonly error.
If I have a standard HTML textbox: I can retrieve the value using Request.Form. But how do I go about populating this textbox from the server-side? I tried Request.Form["txtTest"] = "blah"; but got a readonly error.
View 2 RepliesI have a mdf database in my computer. And I have sql management studio 2005 installed. I would like to mange the mdf database with this program and I do not know how.
View 3 RepliesI am running a website from IIS on one computer and I want to view the web page on another computer. the only way I can do this is by using the ipaddress of the computer with IIS on it but would rather have a url. How can I generate a url or use a domain name from [URL]. I signed up for an account on that website but dont know how to use it. I dont know how to configure it.
View 2 Replieswhat is wrong with this line of code?
uploadFile.PostedFile.SaveAs("\ddg3584GraphicsWater lilies.jpg")
how to deploy ASP.net Website having SQL Server on IIS server on Different Computer..
View 2 RepliesWhat is Web services? What is Web services? How can I Transfer the data from server to client and client to server using XML. Need one simple Example program(C# web Application) ...
View 1 RepliesI have a SQLServer database, Can I take a copy of this database with all tables and stored procedures and all data in tables ?
and if I can create this copy, how to add it to SQL Server in the new PC ?
let me knw abt the validations in asp.net...
View 7 RepliesI need to write condition on client side within GridView itemtemplate.
<% if(Eval("item").Contains("keyword"){%>
<img src='<# Eval("imagepath") %>' />
<%}
else if(Eval("item").Contains("keyword2")){
%>
I have a file on the server that users will have the possibility to download to thieir computer. For example the filepath could look like below. How would it be possible to save this to the desktop or C: etc.. ?
[Code]....
I'm developing a web application in asp.net using C# and need to access the command prompt of the server computer.
After accessing it I need to run a "ABC.bat" file in the server computer which is in folder "E:Test".
The absolute path of the server is "\MyServer"
PS: I need to run the ABC.bat file on the server machine as the bat file runs couple of more applications which are licensed to that server machine.
We have had complaints of users losing data that they entered in textboxes in our ASP.NET 2.0 web application. Users are authenticated using Web Single Sign On method. My boss would like to save the client data in a file on their local disk in case they lose connectivity. I know this is not allowed with the default security of ASP.NET.
Would it be possible to programmatically change the ACL permissions for the NETWORK SERVICE account to access the isolated storage folder on the logged in user's local disk? Is there a better way to achieve this goal of persisting user data to a file?