Formating % On An Page

I have an ASP page taking data from a table. I would like that the data is shown as a % (like 51.456897%) All it shows with my code below is 0.51456897.

Can someone tell me how to change the code so that my % is shown? ....

View Replies


ADVERTISEMENT

Formating URL's

I would like to format URLS that are being retreived from a database. Here is an example:

bodytext="this is some text http://www.sitepoint.com/ this is some more text"
response.write(bodytext)

how could I change the URL (http://www.sitepoint.com/) to a link? So instead of http://www.sitepoint.com/, it would be <a href="http://www.sitepoint.com/">http://www.sitepoint.com/</a>. There are going to be an infinate amount of URL's (the user can type in any one) and it is just not the URL by itself.

View Replies View Related

Formating Year

I want to be able to format a year as mm/dd/yy

formatdatetime does not work because the year is yyyy. How do I format a 2 digit year such as 04 for 2004?

View Replies View Related

Formating Text

When i send a text string to my database linebreaks are stored, but when i call it from asp to the page all linebreaks are lost.
this will reformat text to look different than i was initially typed, how can i make the text shown on webpage in orginal formating.
hope im clear on this or ask and i will elaborate.

View Replies View Related

Date Formating

does anyone know if there is a function to format date?When my date is extracted from database, it is in decimal format (ie.38233.72078), is there a way to convert this number to date formate using asp?

View Replies View Related

Formating Strings

I have a list of dates in a sql database that are input as varchar like this 042999

How do I insert / in between the date/month and year

so this 042999 will appear like this 04/29/99

View Replies View Related

Variable Formating

Having a pretty annoying format 'error'

The below code works fine,

strMessage = "Logged in as: " & Session("UserName") & ""

but it displays as:

Logged in as:
'Username'

Were as i want it to be:

Logged in as: 'Username'

Any ideas how to make it go to one line?

View Replies View Related

Keeping Formating

I posted before about replacing special characters (esp. '). However, I am wondering how formatting can be kept when entering it into a textbox to store in a database?

When text with seperate paragraphs is entered, it comes out as one big paragraph later on.Is there anyway to address this? When I was doing my searching - somethign about chr(10) kept coming up, but I am not sure what this is.

View Replies View Related

Imported Time Formating

I am importing a time into a sql datetime field from a text datafile using vbscript in an asp file. The time coming in will look like 8:00 or 3:30 or some other similar thing.

Because it is doesn't have am or pm associated with it, I have to force the issue or sql will assume am all of the time, and I am sure that no judge in our county is going to hear a case in the middle of the night!

So I have to add 12 hours to anthing that could be an afternoon time before I add it to the database to keep it from looking stupid in the display screens.

View Replies View Related

Formating A Number With Own Function

if we use formatnumber library function in asp it will format the no as per the number format defined in the locale of the server. For example:

some number format look like this 34,135,200 (comma seperated)
some looks like this 34 135 200(blank spaces seperated)

so does anybody have a vbscript function which do this job.

View Replies View Related

Response.write Formating

I have the following variable being displayed but i would like it displayed in the default font and text size 2 how is it done?

<% response.write(sUserId) %>

View Replies View Related

Date Function Formating

Is there a way to output a date in latin american format?

You know the day first, the month second and the year last.

View Replies View Related

Number Formating Decimal Places Not To Remove Zero 0 At The End

I have a report that will format a number to the last 2 decimal places. However it will trim off the 0 at the end. Example.

98.90 is formated to 98.9

how can i tell the format number function to not trim the 0 but still have the last 2 digits.

View Replies View Related

ASP - Date Formating MySql Insert/update

I am storing dates in a mySql database in the format yyyy-mm-dd. Now, I have set up so that this field is insert by a form.

It isn't very user friendly to have to type yyyy-mm-dd, how can I set up so that the user can enter format dd/mm/yyyy and it will automatically insert into the database as yyyy-mm-dd? I am using Dreamweaver MX 2004 and ASP.

View Replies View Related

Number Formating :: Adding Zeros In The Beginning

I have a querystring that passes through the value 001 for example, the form on the receiving page need to display that number but with 1 added to it. i have

dim strnum
strnum = request.querystring("value")
strnum = strnum + 1

when displayed <%=strnum%> shows 2 instead of 002, and the zero's are very important, is there any number formating trick i dont know or another way of doing this?i thought about coding the first two zero's in before i call the strnum but this would mess things up when i get to 010 etc.

View Replies View Related

ASP Read The Execl Cell's Data, Web Page Created From Excel2000 -- Save As Web Page

I created a web page from Excel2000, using "Save as web page..."...Publish
function. then, I moved htm file to my IIS web server. Then I added a form control, and submit button.

How can get the data on the excel file using ASP from server side?
For example, the value of Cell(1,2), Cell(2,3)....

View Replies View Related

Display Aspx Page Or Reporting Services Page In User Control

What I want to be able to do is create a user control that will display an
entire page page within it. Does anyone know how to do this or better yet
have any same code?

View Replies View Related

How To Transfer A Data Display On 1st Page To 2nd Page Upon Clicking On The Link

I like to know how to write this specifc function on ASP where the user eg: display a set of records on the webpage. Example the data are ID, Name and address.

Lets say i display the data on the webpage and i set the Name as the <a href>. So when i click on the name, it will move to another page with the id of the specific name. Code:

View Replies View Related

An ActiveX Control On This Page Might Be Unsafe To Interact With Other Parts Of The Page ...

I have an ActiveX control in my ASP page that has not been signed yet, so currently just for testing I set the Security for Intranet to "Low". When I run the ASP page on my machine (the IIS is in my machine), I have no problem, except the page prompted me with "An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?"

But, when I run the ASP page on another machine (even though the other machine is also a development machine that already has the ActiveX control and I set the Security for Intranet to "Low"), it did not prompt me the above message, and I got an error when accesing any method of the AX control (e.g Object doesn't support this property or method 'myAXControl.method').

Is this because I have to create a CAB file and mark the AX control as safe for scripting ?To create a CAB file for this AX control, do I need to create my own VB AX
Control project that contains this control and then create a cab file for this VB project ?

View Replies View Related

On Session_OnStart() Getting Fired When Going From Page To Page At The Same Level As The Global.asa

This is a standard ASP application that has several pages at the root
withthe global.asa. I set a session variable session("accountid") =
"123456" within an asp page and then response.redirect to the next page and
immediately response.write session("accountid") and I get back nothing.

But if I set a session variable session("accountid") = "123456" within an
asp page and response.redirect to a page in a sub directory and immediately
response.write session("accountid") I get back 123456 on the screen.

View Replies View Related

Including Inverted Commas To Specify Page Elements While Page Is In ASP

I am having a problem with a site that I am developing - my aim is for it to validate as XHTML Strict however, I am running into a couple of problems validating it; in my Response.Write ASP script, I am not including " 's to define page element tags as they keep throwing up errors in the page. Code:

View Replies View Related

Blank Page Running ASP Page On Windows Vista

I've a strange problem with Windows Vista, running an ASP page on local
machine (http://localhost/test.asp), the page does not give me any error but
the asp code is not executed (simple code : <% response.write("hello") %),
it show me a blank page, I think I've put all the setttings correctly, but
maybe I must do something obvious to fix that.

View Replies View Related

Differentiate Page Requested Versus Page Refresh

I encounter a page reload situation in ASP. It is I need a way to differentiate whether the current page - "Application_Result.asp" got reloaded itself when user click on the browserRefresh button or is requested by the previous page "Application_Form.asp".

I tried using
<%if Request.ServerVariables("REQUEST_METHOD") = "POST" then%>
<!--it is requested from "Application_Form.asp, do something-->
<%else%>
<!--Application_Result.asp refreshed itself(such as user clicks on the
browser Refresh button, do something else-->
<%end if%>

However, in both cases, the IF statement above all evaluated as true. how to differentiate this two different behavior (Page Refresh versus Page requested by another Page) ?

View Replies View Related

Page Can't Directly To Login Page After Session Expired

I have page for user to update his/her details. What i want is after idle for more than 20 mins, the page will redirect to login page automatically. So that the user knows that his/her session already expired and need to login again.

But it doesn't working. This is because if he/she update the details (after idle more than 20 mins), and click the Submit button, it will go to login page and all the data will be lost. Code:

View Replies View Related

Can An ASP Page Read A Cookie Written By A PHP Page?

I am working with a developer, on two portions to a site, he is working in PHP and my work is done in ASP.

Is it possible for my pages to request data from a cookie that was written by his pages that are PHP but residing on the same server? Just want to make sure before I spend too much time planning out the development on my end.

View Replies View Related

Passing Information Back To ASP Page From Another Page

I have an application which allow users to search our database. Quite a lot
of search fields pull data from other tables. I don't want to populate the
dropdowns (total 14 of them) from the database everytime as it slow the page
load.

Instead I would like to have a link next to the text field which a
user and click and the choices can be displayed and whatever the user click
in the pop up I want to transfer it to the text box and close the popup.

For example there is a Textbox called country. The user can either type in
the country name or click on the link which will pull all the countries from
table in the database and which ever country user selects, the textbox is
popluated with the country name and the pop up closes automatically. Code:

View Replies View Related

Attempting To Write Create An ASP Page FROM An ASP Page.

I'm trying to write an asp page line by line, as one would create a
text file, only my file will end in .asp.

One line simply writes a close ASP code tag, or

FILECONTENTS=FILECONTENTS & "%>"

When this line processed, an error occurs saying that the string was
never terminated because the asp page attempting to write this line of
code to a NEW asp page reads that close ASP tag (%>), as an actual
close asp tag for itself, instead of a STRING value.

How do I write this %> symbol to a new asp file, while still
maintaining its purpose to close a group of asp code in the newly
created page?

View Replies View Related

Refresh Parent Page From Child Page

This is my coding:

window.opener.location.reload(); window.close();

I don't want the IE to pop up the alert msg to false retry or cancel to reload the page.

I have tried:

1. window.opener.location = window.opener.location
2. window.opener.history.go(0)

But as i carry some data from previous previous page, when i use (window.opener.location = window.opener.location), it can't capture my data as it just load the page. It will pop up error as no data captured :

Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: ""]'

Any suggestion?

View Replies View Related

Passing Recordset From An ASP Page To Another HTML Page ?

I am looking for a way to pass an ADO recordset that has been retrieved in
an ASP page to another HTML-page. Is there someone who can provide me with a
small sample or a link to see how this is done?

View Replies View Related

Page Header Or Footer Longer Than A Page

i am facing a problem with CrystalReports for visual basic.Net 2003. I have passed almost through all the problems but still i get a message when i view some reports "Page header or footer longer then a page".

I am using ASP.net with VB and the developing muchien is running windows XP.
the program works correctly to my computer but when i transfer it to the server machine i get the error .

The server machine is running windows 2000 server. It has the service pack on it and framework 1.1 with all the updates. Does anyone have a clwe?

View Replies View Related

Page Execution :: Page Interpreted By Web Server?

Is ASP page compiled or interpreted by the web Server and what about the internet explorer how it deal with HTML and other realted pages?

View Replies View Related

Navigate From A Regular Page To A Secured Page

What is the best way to lead customer from a regular page to a secured page?

Regularly, we use absolute path. say first ,a customer is on this regular page for general information: http://xxxdomain.com/index.html, then customer decides to buy something from our site. Then our program will provide an absolute path like this: https://xxxdomain.com/buy.asp.

Recently I am doing migration and feel that the absolute path is not convenient for program migration and domain merge. So I am wodering if there is any other way to do it? any suggestions and comments?

View Replies View Related

How To Chain Page To Page With RecordSet Data

I have a form.htm page where the user enters an ID to retrieve addresses. Then PAGE1.ASP displays the addresses. From here the user selects an address and submits. Then PAGE3.ASP brings back further information. My question is how do I use one field from the address information on PAGE2.ASP to display on PAGE3.ASP? I know how to do it with textboxs and such but cant get RS data to hope page to page. I get no errors or anthing.

On PAGE2.ASP I have :
<input type="hidden" name="CLIENTHIDDEN" value="<%=RS1("CICL_LNG_NM") %>"></td>

On PAGE3.ASP I have:
clientname = request.form("CLIENTHIDDEN")

and to display:
<td class=rt width="110" height="1">Business Name:</td><td width="849" class=rt height="1"><% =clientname%></td>

View Replies View Related







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