C# - Ways To Detect Computer Other Than Ip Address
Feb 28, 2011
What are the ways to detect a computer other than ip address. I saw some bux website where they do not store ip addresses but detects computers. How this is possible? Do this a program, or any other? Is this in anyway related to cookies, or mayby something else? A web application automatically detects computers using something other than an IP address. What could it be?
I have an ASP.NET page where at the top of the page is a search box. There are 2 text boxes - one is an autocomplete extender for the Name on a database, and one is just inputting the ID.The page features DetailsViews and GridViews primarily, and even when no account has been searched for, these display blank data which is not ideal. I sort of fixed this by using if (IsPostBack), encasing the elements in a placeholder and setting it to visible only if the page ispostback. But this doesn't cover if the user types in an incorrect ID.
Also, some accounts have huge amounts of data inside the GridView's. I had an issue where because I have no way of detecting when a data source's rows has changed, I end up binding whenever the page loads (Page_Load method). I've come to realise this is simply very bad - there are lots of times when the user can click various things in the page and have the page postback, and it takes an eternity to load each time I click something for accounts with lots of data.Anyway, my question is essentially two-fold but I have a feeling the solution will be similar:1: How can I detect when there are no accounts returned when searching, and disable the Grids/Detailsviews and show an error message?2: How can I figure out when the user searches for another account and only rebind the grids after that has happened?
I have an issue getting computer name where the person is loged-in in the application. The problem isnt to get the PC Name, but to save it in the DB (SQL).
i have a asp.net web with vb code and sql database. i am willing to store the details of the users as ip,computer name and time of using the web is it possible.
I 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.
I have managed to expose the MEX endpoint of my WCF service and I can access it with the address like [URL] (example) and get the WDSL. So no problem there.
However, my WCF test page shows the address wrongly by using the server's name instead of the DNS name. And if I click on the link on the test page it won't work (can't get WSDL).
The WCF test page looks like this:
MyService Service
You have created a service.
To test this service, you will need to create a client and use it to call the service.
[URL]
The WCF service is hosted in IIS6. I would like to have a test page with the correct WSDL address so users can see the WSDL quickly in the browser just by clicking on the WSDL address.
In short: How can I change the MyServerName to inter.mycompany.com on the WCF test page? Can this be specified somewhere in the Web.config?
I am trying to pull entries from a database based on the current users IP Address. Here is what I have so far:
[Code]....
I am receiving the following error: Cannot find either column "Request" or the user-defined function or aggregate "Request.UserHostAddress.ToString", or the name is ambiguous.
Is it possible to do this? Should I try to access this information another way?
Just for curiosity, i want to know i how many ways we can write the parameters in a querystring. I have encountered the following
& (is common that we use in our most of the application) , (in some banking application) ; (bank.co.in/BANKAWAYTRAN;jsessionid, this is from my banks QS :-) )
I am using asp.net web application and right now I have like 3000 members on the site. My question is, what other means out there that I can program or query to see how the users on the site uses the system and how frequent they log back in or come back?
What are the available ways to pass a parameter to a UserControl ?I know the session option but actually I don't prefer it because it'll retain when any exception is occurred. I mean I prefer something like the QueryString (rely on the call or request).Note: My UserControl will be shown throught a modal popup using JQuery.
What are the ways to pass information to a html page which is invoked using Response.Redirect(path);his 'path' refers to a html file in a share path(does not belong to the same project where the asp page resides).for example in my web app project , upon a selectindexchange event (of a postback list) i hav to invoke a html page(from anywhere) which will display the current selected item.
I want to know what are various ways to consume a WCF service keeping in mind the value for InstanceContextMode? If I create a proxy object and consume it within using block, I am explicitly forcing system to create a new object each time. What are other approaches? Which one is the best approach? I have heard using block is not a great option.
I have been looking at ways of encrypting querystrings and I have found a few good examples.. but, I just want some clarification on what is most often referred to as the EncryptionKey and the characters that are in that key....Is there basically an unlimited number of alphanumeric combinations that could be used in the following code as the encryption key, is there anything that someone should be CAREFUL about including in that key?
using System.Security.Cryptography; private static string EncryptionKey = "!#$a54?3"; /// other examples: "r0b1nr0y" ///in a try-catch: key = System.Text.Encoding.UTF8.GetBytes(EncryptionKey.Substring(0, 8)); DESCryptoServiceProvider des = new DESCryptoServiceProvider(); inputByteArray = Convert.FromBase64String(Input);
o not know in which forum to post my query. If a user tries to contact through a Contact us form then how the administrator will come to know about it ? I mean what are the ways to inform the administrator that a user has contacted him ?
Is there a way to set up the calendar extender so that the calendar displays when the text box recieves focus AND when the when the element with the "PopupButtonID" is clicked? With my current settings it seems to be one or the other.
My new office project is based on an MVP design and is in VB.NET (.NET 3.5), using multiple libraries (like EntLib, internal corporate framework, etc.). The number of DLLs used as references is so huge (almost 50) that when I try to build/debug the application in VS2008, it takes almost 3-4 minutes to get the website running successfully.Wanted to know if there are any settings/areas which upon some modifications can help me reduce the build time? and what exactly can be the major reasons behind this long loading duration?
I'm new to ASP.NET and I am trying to create a website which requires a database.I created a localhost mdf database and I tried two ways of attaching the files but still received errors.(i) Connecting by Windows Authentication: filed with the operating system error 3 (The system cannot find the path specified (Error 5133)(ii) Connecting by SQL Authentication: CREATE FILE encountered operating system error 5 (Access is denied) while attempting to open or create the physical path file. (Error 5123)If you don't mind me bugging you for a while so that I can setup my database please add me on MSN timothyky@hotmail.com. I still have a couple questions in regards to the web.configuration afterwards.
I'm trying to show a demo of a Web site in progress in two ways, and having two different problems:
1. I created a test domain on GoDaddy. Tried to deploy there, but I need IIS 6 on it. Having trouble finding it. I started a web host on Aspspider.net, which has ASP.NET loaded on it. I have to wait until I can create a site. 2. I hoped to pass the deployment package to the client to load it onto his local machine. However, he got the following errors running the deploy.cmd file:
"Error: The metabase key '/lm/w3svc' could not be found.
Error: The metabase Admin Base Object could not be instantiated. Perhaps the 'ISS 6 Metabase Compatibility' feature is not installed.
Error: Class not registered"
Is there anything I can do about #2, or should I wait for #1 and hope I can deploy to the site when it's created?
I currently have a function that gets some data from the database and puts it into a dataset. The return type on my function is GenericCollection (Of CustomerDetails)
If I do this:
Dim dataset As DataSet = Read(strSQL.ToString) 'Gets Data from DB
What's the most efficient way to map the dataset results to an collection of objects. More importantly, since I'm using GenericCollection, is there a way to do this in which I can call a function from the ObjectType class (CustomerDetails) that would have a means to converting that specific object.
Or is there a way in which I can use a function that would handle all types?
Is there a way to do something like:
Return returnedResults.TransformDataSet(dataset)
In which returnedResults is an object collection Of CustomerDetails, or would it simply be easier to have TransformDataSet return an object collection Of CustomerDetails by itself?
I wrote(attempted) a sub to disable all linkbuttons in a column in my GV. It seems code #1 just disables the LB in 1 row only.
A popular example for various methods of using the animation extender is not working for me. In the example there are 4 methods detailed for invoking an animation:Markup (this works)Selectively playing the Animation Already defined in Markup for an AnimationExtender on the Page. (this works)However, I am most interested in using one of the other two methods, neither of which works for me:Call the Static PLAY Method of the Animation Framework to Animate the Control.andCreate an Instance of the Client-Side Animation Extenders to Animate the Control.Here is my code, as taken from the sample:
<%@ Page Language="C#" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-