URL Losing Port Number In Every Page Load

Mar 16, 2010

I'm currently taking care of a certain local website.

The default port has been changed, and can no longer be not included in the URL due to technical reasons, so now i'm using a certain port in the end of the IP at the URL, for example

100.100.100.100/website.aspx

no longer works (which accessed 80 by default)

100.100.100.100:81/website.aspx

with the port, works.

Works, though I can't click in any link or anything and the port vanishes (new page doesn't load). Then I keep the same URL and just include the port at the end of the IP and it works again, until I click in another link inside of it.

I have access to changing each link, but I guess that would not be the right approach.

How should I procceed ?

--[EDIT]--

All URL's are already relative, and the whole issue of this question is not applicable in IE, this only happens on other browsers.

/website.aspx

What I said about changing each link would be something like

:10/website.aspx

But I really don't know..

--[EDIT]--

As requested:

<asp:HyperLink runat="server" Text="link" NavigateUrl="~/folder/folder/page.aspx" />

View 3 Replies


Similar Messages:

Configuration :: Access The Webpage Without The Port Number?

Sep 27, 2010

on my vistual studio 2010 I can see my project by [URL]

but I can access my project on either localhost or Ip address without the port number , how can I access the web page without the port number?

View 9 Replies

WCF / ASMX :: Testing Web Service With No Port Number?

Jun 18, 2010

The way I quickly test the asmx file is to "View in Browser" from Visual Studio (I'm using 2005, and have IIS 6). The address shows up like this:

"http://localhost:1399/MyWebService.asmx"

where 1399 is a generated random number and can change each time I test by this process.

The books I've been reading (as well as other sources in the internet) keep referring to testing web services by typing something like this in the browser:

"http://localhost/MyFolder/MyWebService.asmx"

where "MyWebService" is the name of the web service and "MyFolder" is where that webservice is.

This "http://localhost/" with no port number testing never worked for me. Some books mention random port numbers, but most do not even mention port numbers. [URL]

View 6 Replies

Datatable Field Validation - How To Validate Port Number

Jul 23, 2010

i have imported data from excel to datatable but i need to validate port no column which should

allow only numeric value and also i need to check the single quotes and need to replace to double quotes.

View 2 Replies

Web Forms :: How To Set Port Number When Using FtpWebRequest For Uploading Files To FTP

Jun 16, 2015

[URL]

Unfortunately I get an error while uploading:

Invalid URI: Invalid port specified. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.UriFormatException: Invalid URI: Invalid port specified.

FtpWebRequest request = (FtpWebRequest)WebRequest.Create(ftp + ftpFolder + fileName);My FTP-address is:ftp://ftp.mydomain.dk:4001

View 1 Replies

How To Send An Email Using Authenticate Smtp Server With Port Number

Jan 7, 2010

i want to send an email using authenticate smtp server with port number(For Example SMTP Server is :

192.168.0.8 and port : 587).

i got lots of example but failed to find smtp server with port number using authentication.

View 4 Replies

Configuration :: Debug The Website Always On A The Same Port Number On Local Machine In VS

Jan 1, 2011

I am developing a website in ASP.NET. I wanted to know how can I give a static path to my website on my local mahcine such that it will always be deployed on port number. For eg: in php, the path can always be http://localhost/websitename

but in ASP.NET, whenever, I debug the website for testing, it is always deployed to a new port number. This prevents me from testing my script which can only be given a static name in Greasemonkey.

View 3 Replies

C# - How To Get Full Host Name & Port Number In Application_Start Of Global.aspx

Nov 22, 2010

Uri uri = HttpContext.Current.Request.Url;
String host = uri.Scheme + Uri.SchemeDelimiter + uri.Host + ":" + uri.Port;

and it worked well on my local machine, but when being published to IIS7, there is an exception saying

System.Web.HttpException: Request is not available in this context

View 2 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

Configuration :: Change Default Setting In VS2008 So IIS Can Deploy App With Port Number?

Nov 18, 2010

In the past I deployed my apps using IIS running on IE6 and VS2008. When deploying using IIS a port number was attached to the localhost something like: [URL] then after deployment the website could be accessed from any other machine using the url. Recently VS2008, IIS and IE8 was installed. But now when I use IIS to deploy the app no port number is attached to the localhost which means that the app cannot be accessed
by another machine.

This is because of the default setting being installed. There is a way to go into properties and change the default settings to make IIS deploy the app with the port number. How you change the default setting to make IIS deploy the app with the port number attached again so the app can be accessed by another machine using the apps url?

View 1 Replies

Web Forms :: How To Find SMTP Host And Port Number For Sending Emails

May 16, 2012

I want to send email thought asp.net page for that I need to find SMTP Host and port number below is my code 

  Dim EMail As New MailMessage
        EMail.From = New MailAddress(Emailtaxebox.Text)
        EMail.[To].Add(New MailAddress("sa@gmail.com"))
        EMail.Subject = Firstnametextbox.Text + lastnametextbox.Text + "Registerd"
        EMail.Body = " This is content "
      EMail.IsBodyHtml = True

[code]....

how to find SMTP port and host name ? I used default one  its gives me error.No connection could be made because the target machine actively refused it.

View 1 Replies

DataSource Controls :: Visual Studio 2008 Data Connection Port Number?

Apr 7, 2010

How do I specify a port number for a Data Connection in the Server Explorer of Visual Studio 2008. It would use 1433 as a default but the administrators changed it for security purposes.

View 2 Replies

C# - How To Control A COM Port Parallel Port From Web Application

Jan 16, 2011

i can control a LPT port or COM port or any other hardware of server using ASP.Net with C#. I haven't found any clue in the internet.

I want to control a COM port Parallel port from web application.

View 2 Replies

Forms Data Controls :: Display The Current Page Number And The Total Page Number In The Report Footer?

Aug 10, 2010

I have a web user control with DataList control in it. In my .aspx page, I have a report header, an empty panel as a place holder, a report footer.In my .aspx.vb file, I'll loop through a list of departments. Within each department, I'll load a label to display the department name and the user control for the data, and add both the label and user control to the panel. So there are two variables:
the number of departments and the number of records in a user control.

Now I need to display the current page number and the total page number in the report footer. Is it doable? How? I'm thinking of this approach: declare a page variable count, count the number of department name labels and the number of records in a user control. When the total count reaches a number, such as 20, I'll break the page. This way, I can get the the page current number and the total number of pages. But how to add a page break to an asp.net page?

View 8 Replies

Access USB Port From Page (Server's USB)?

Dec 19, 2010

im creating a project.i developed a circuit for usb. i will connect this device to server's usb port. Can i access this device from a client?(not read/write file. i will send some commands to usb). Usb connection program is ready.How can i access from client? Which method will i use? web service,wcf or others.

View 4 Replies

C# - Webpage Interfacing With COM Port To Control Page?

Aug 6, 2010

I'm looking at creating a project that has a touch screen panel on a com port and a front facing website.

I want the touch screen panel to interface with the web page, it will have two buttons (left & right) and I want those actions to "do something" on the web page.

I'm trying to work out which programming/scripting language would be best to, I could use JS but I believe that'd mean polling a c/perl/php script that is listening on the COM port considering JS has no socket capabilities.

Would it be easier if I used ASP.NET/C# - would it cause me less headaches?

View 1 Replies

Why Is App Losing Page Variable Values

May 12, 2010

So to pretty much make this short and sweet, I have a page variable defined outside of all my methods and functions called buttonpressed. It is used to keep track of which button has been pressed on the app. For example, in the onclick event of my Edit button there is a line:

buttonpressed = "Edit"

I use this to decide what kind of query to perform to my database. My problem is whenever I hit my save button(which uses that buttonpressed value in an if statement to decide what query to perform), the variable value just magically disappears.

I tracked the value to make sure that it is being changed and store correctly based on my add, edit, and delete buttons. As soon as I hit my save button, the value of that variable goes blank.

View 2 Replies

Web Forms :: Losing Value When Page Gets Submitted Twice

Jan 24, 2011

On my page I have some text boxes that users can enter values in. The first time they submit the page it gets the values from the text box fine. But when the user goes back using their browser back button and changes a value and resubmits, it shows the value from the first time they submitted, not the new value they just entered.

View 6 Replies

Losing Most Of The Page Content On Second Postback?

Jul 5, 2010

I have a form with a update panel. This posts the form and validates it. Returning a errorMessage string of any invalid field such as "Field xyz is a required field, Field abc needs to be a quantity"

When I enter incorrect date it posts back fine and displays the text in a div at the bottom of the page which the update panel is aimed at to update. (and only this it should be changing)

This works but the second time I hit say (say i enter invalid data twice) the Complete form will disappear leaving me with just the banner of the site and the error message that is returned.

Ive tried commenting out the entire of the code post back so that the button doesn't actually do anything but it still has the same problem(of course this time it wouldnt have a error message created)

So i can only think it is something to do with the updatepanel itself and how it works but i have been staring at this for ages and have no more ideas!

View 2 Replies

C# - UrlMapping Giving 404 Page Not Found On IIS But Working Fine On Local Server Port?

Jan 19, 2010

Well I am having a problem when I have put my .NET 2.0 web site on IIS 6. I have used UrlMapping to redirect some old urls. It is working fine when I am using it on the VS local server port but when I deploy it to IIS 6, its giving a 404 Page not found error.

I've found that in a few forums they are talking about using Wildcard Mapping, but none of them provide me with a good explanation of how to achieve this. Added to this, what are the security risks of doing such a modification on IIS Level (if there are any?)

View 3 Replies

Web Forms :: How To Load From Secondary (Derived) Master Page Controls In Page Load

Feb 25, 2010

I hv Declared two Master page one Is Base and Derived.. Base Page Load is working but when i hv written load controls in Derived Page Load Using C# it's not working..

View 3 Replies

Web Forms :: Page Losing Reference To Dynamicallly Created Tablerows?

Jan 6, 2010

I'm new to the asp.net/vb.net world and have stumbled across a problem.I have a page that has a gridview. When the user clicks on a link in the grid a modal popup is shown (using the AJAX modalpopupextender).On this pop up is a treeview that the user can then select some child nodes.When they click a button a table is dynamically populated with the list from the selected treeview nodes.The user can then add detail in this table comments etc and then should be able to click on a save button. This will then fire the event to loop through the table and insert these records into a database.The problem is that when the Save button is clicked the page seems to have lost all reference to the fact that there are dynamically created rows in the table even though there are a number of rows that you can still see displayed on the page. Even the table.rows.count shows 1 at this point!

View 3 Replies

Web Forms :: Request.PathInfo Losing Master Page Content And CSS Link

Aug 26, 2010

I'm using Request.PathInfo to response.redirect as user to a different page ( based on the content after .aspx ). It redirect just fine however, once redirected, the page loses all content from the master page and the CSS link.

View 6 Replies

State Management :: Losing Session ("culture") From Page To Page?

Apr 8, 2010

i have created a multilanguage site that uses culture to change from one language to another.

the problem is that when i am going from one page to another the varriable session("myCulture") is empty.

View 3 Replies

AJAX :: Trying To Create A Progress Bar For Page Load As It Takes Long To Load?

Jul 7, 2010

I am trying to create a progress bar for page load as it takes long to load. I need help to resolve jscript error 'null' is null or not an object on line $get("btn").click();

[Code]....

View 3 Replies







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