VS 2005 - Finding IP Address Of The Person Who Is Viewing Pages

Feb 1, 2011

I want ip address of the person who is viewing my pages. I am using following code. But i am getting :::1

currently using code :-

string strHostName = System.Net.Dns.GetHostName();
string ip = System.Net.Dns.GetHostAddresses(strHostName).GetValue(0).ToString();

what is wrong or what i need to change?

View 6 Replies


Similar Messages:

VS 2005 Finding Alternative To Declare Output Cache In All 200 Pages

Jan 20, 2010

I create a menu control in a user contol, named as RightUserrControl.ascx.

and i kept this RightUserrControl.ascx in nearly in 200 pages.

every thing is working fine , but when ever i am going to any page the page loading is very slow, nearly each page is taking 1 minute to load.

set caching for the user control, if this is the case , do i need to declare output cache in all 200 pages or is there any alternative way to resolve this issue.

View 8 Replies

WCF / ASMX :: Share Address In LAN To Other Person

Feb 27, 2011

I wrote small wcf service. Its working fine. I have one doubt if i want to share the address in lan to other person so he can consume the service of mine he can build the application. how can he access the service in local lan.

View 1 Replies

Web Forms :: How To Find IP Address Of A Person Who Has Logged In

May 14, 2013

How can we find the ip address of a person who has logged in?

View 1 Replies

Javascript - Finding Users IP Address And MAC Address From Web Browser

Sep 2, 2010

Is it possible to find out the clients IP and possibly MAC address from non IE browsers (i.e. without using ActiveX)? If so, how?

View 1 Replies

Configuration :: Finding Best Practice For Making Sure That Slow Pages Don't Affect Other Pages?

Aug 31, 2010

Page B - loads slowly and needs to do some CPU-intensive operations on the web server.

I noticed that when someone is loading Page B, then Page A also loads slowly. This is even worse if multiple users are loading Page B at the same time. Page A won't finish loading until Page B is done.

Is there a best practice for making sure that Page A can still load quickly? Maybe a config setting or IIS setting that I need to change from its default? With 2 users loading Page B at the same time, the web server CPU usage only gets to 30% so I suspect it might be something I can tweak with the settings.

View 1 Replies

Installation :: Finding IP Address Of PC?

Mar 23, 2010

i have created a website (its my academical activity).

1. So my mentor asked me to store the site in one system and open it from other under LAN Connection. Is that possible deploying with trial version of VS

2. Other is how to find out my PCs IP Address so that i can call my site from other system using Number Addressing (IP Address)

View 3 Replies

Finding The IP Address Of System On Page?

Aug 31, 2010

I need my system IP address. I've used Request.ServerVariables["remote_addr"] but it is being provided IP address of my network(intranet) not my local system ip.

Actually I've set session state off and want to identify the user request. So i want to fetch the system IP not router/network IP.

View 3 Replies

Email Application / Finding Smtp Address And Port Number

Sep 1, 2010

I want to send email to others. how can i find out my smtp address and port no. I am developing small application. I want to send mail to users.

View 2 Replies

VS 2005 SMTP Mail - Cannot Use Specific IP Address

Feb 5, 2012

I have used this code, which has worked perfect:

Code:
Dim mail As New MailMessage()
mail.From = New MailAddress("x@y.dk")
mail.To.Add("y@x.dk")
mail.To.Add("xyz@xxx.dk")

[code]....

until my provider changed in his server settings. He now tells me that I cannot use specific IP adress. How do I access a specific host instead? He told me that this is the right host: pubsmtp.directit.dk

View 7 Replies

VS 2005 Finding Code For Timer Control?

Jul 21, 2010

anyone have a sample code for timer control ? i have been looking for timer control by Google. i dont have proper workable timer control for asp.net.

View 10 Replies

VS 2005 Finding Class In Vb.net To Insert The Record

Feb 23, 2010

i have following class in Vb.net to insert the record

Code:

[code]....

View 2 Replies

Finding Duration Of A Video Using Directshowlib-2005

Sep 1, 2010

My asp.net(c#) method looks as follows:

[Code]....

I got the duration with the above method. But my problem is i can't delete the physical file
after my operation. I used

File.Delete(FilePath);

While performing this action i got an exception as follows:

"The process cannot access the file because it is being used by another process."

My Os is windows 7(IIS 7)

View 1 Replies

Security :: Finding Tutorials For Registering And Sending An Activation Link To The User's Email Address

Feb 9, 2010

I program in vb

I was wondering if someone can direct me to a good quality tutorial on the process of registering and sending an activation link to the user's email address. I can't seem to find any useful tutorials online!

View 5 Replies

VS 2005 Finding Code For Converting Image To Text

Oct 22, 2010

i have images, i need a code that convert the images in to editable word.for example .gif image .can nay one give me sample code.

View 11 Replies

Visual Studio :: Finding Silverlight Version For VWD 2005 Express Edition?

Mar 10, 2010

I want to know which Silverlight Version will work with Microsoft Visual Web developer 2005 Express Edition?

Also, Where can I get that version AND Toolkit?

How to integrate that version with ASP.NET?

View 2 Replies

Restricting Certain Pages -- Redirect On Every Page? Or On Master Page By Viewing Current Page In Url?

Feb 6, 2011

Per different user mode, some pages should not be accessible by users unless they have a valid session key.In your opinions -- would it be better to have a list of acceptable pages in the master page, and check if the current page is valid for the current user? Or handle this on every child page?I'm thinking master page, just want to hear what your input would be.

View 2 Replies

Web Forms :: Finding The Controls In Content Pages?

Feb 21, 2011

i have page which is derived from nested master page. Below is the hierarchy

Master.Master
Master2Column.master
Bronze.aspx

The aspx page is derived from master2column and which in turn is derived from master.master.

Now i need to find a control in bronze.aspx page from master.master.cs page. This is where i am getting lost.

My master.master has the contentplaceholder1. Below is my master2column

[Code]....

And the maincontent is in bronze.aspx page. Now i need to find a label called lblTo.

I tried this one

[Code]....

and few other options too. But still i am getting "Object reference not set to an instance of an object".

View 2 Replies

Finding Free Website For Uploading Testing Pages?

Feb 3, 2010

what free website can i upload my asp.net pages for testing?

View 4 Replies

Compiler - Automating Finding Compile Errors In Pages?

Jan 20, 2011

I have an ASP.NET website where the pages call a few components in DLLs. I need to change the signature of a method in the component, and short of doing a text search, don't know if this will break any pages or not. IMO, this is the weakness of web programming -- you don't get the benefit of a compiler telling you about syntax errors.

But it doesn't need to be so. Does anyone know if there is a way to run a spider over a website watching for compile errors, or perhaps some tool that would compile all the .aspx files in a folder structure looking for compile errors?

This is merely for syntax checking -- not to actually pre-compile the website.

EDIT It looks like aspnet_compiler is being recommended. I don't use Visual Studio projects for the website -- it's grown over time with my own templating system (back before Master Pages were available). So something that would run aspnet_compiler over all the files in a folder might work...

View 3 Replies

Web Forms :: Finding Control Id And Setting Properties In Other Pages?

Oct 23, 2010

im using a webusercontrol (hide.ascx) it has 2 buttons btn_hide,btn_expand

and in my other forms of all like(products.aspx)customers.aspx,orders.aspx

im using a panel conrol(pnl_products) where in im placing all the input controls.

i want to find the panel control in hide.ascx page and to set that

panel.visble=true/false property in this page.

View 2 Replies

Forms Data Controls :: Finding Pages In A Paged GridView

May 27, 2010

I have a gridview that is a directory of people with about 50 pages

How would I make another gridview that had first row with 26 columns, 1 for each letter of the

alphabet and second row with the first page that has last names that start with that letter.

View 6 Replies

VS 2005 Tab Pages On Asp Web Go Invisible

May 30, 2010

i am using AJAX control "Tab Container" for creating tab pages on asp .net page. i applied the following code in the code behind file but in design mode the tabs become visible and work fine, when i run this page tabs become unavailable.

Code:

<%@ Page Language="VB" MasterPageFile="~/PPF/PPFMasterPage.master" AutoEventWireup="false" CodeFile="FinancialStatement.aspx.vb" Inherits="FinancialStatement" title="Untitled Page" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="1">
<cc1:TabPanel ID="TbPanel1" runat="server" TabIndex="1">
<HeaderTemplate >
Tab 1
</HeaderTemplate>
<ContentTemplate>
content 1
</ContentTemplate>
</cc1:TabPanel>
<cc1:TabPanel ID="TabPanel2" runat="server" TabIndex="2">
<HeaderTemplate >
Tab 2
</HeaderTemplate>
<ContentTemplate>
Content 2
</ContentTemplate>
</cc1:TabPanel>
</cc1:TabContainer>
</asp:Content>

View 5 Replies

VS 2005 - Combining Wordpress And Pages

Nov 24, 2013

I am thinking of designing a home page with Wordpress with links to ASP.NET pages. Is there potentially any conflict running this on a Windows server?

View 7 Replies

Winforms - Finding Control That Will Accept An Email Address And Password/verify With A Password Strength Indicator

Jun 7, 2010

I need a control that will accept an email address and password/verify with a password strength indicator.

Has anyone seen a similar type control?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved