Base Href

I'm using W2k Pro, ASP 3, IIS 5 & DWMX 6.1 and code in VBSCRIPT
I currently use the <BASE href=XXXX> in all my pages and just read
that this tag is no longer supported so will soon vanish
I have a couple of sites that I'm working on and to make all my links
work right etc I need to use the base href tag

http://localhost/site1/
http://localhost/site2/
http://localhost/site3/

where online the base href would be

http://www.site1.com/
http://www.site2.com/
http://www.site3.com/

all my links are like <img src=images/mylogo.gif> or <a
src=info/info.asp>Info</a>

Now my problem is how else would I design my sites if I cant use the
Base href tag so the site would work both on LOCAL & REMOTE servers as
needed in the above paths?I'm sure other people develop on a WIN 2k PRO system where you canonly have ONE site (c:inetputwwwrooot) Which was fine when I only
had one site... but when I needed a second I had to change my first to
use the Base href so I could check the sites out locally (offline)
before uploading them to a live server.

View Replies


ADVERTISEMENT

2 Base Using In ASP

I'm trying to build an application in ASP and using multiple database, but I've receiving some problem, have any idea or have any sample scripts to use multiple database?

View Replies View Related

Data Base First?

Do I create and name all pages with .asp or still in .html. when creating a drop down menu, assuming all the tags are in place, how do i test the site on the server?

so do i create the html pages first or the data base first or does it matter? where is the data base created in notepad or excel?

View Replies View Related

Knowledge Base Script..

Can anyone point me in the direction of a freely-available Knowledge Base/FAQ script, compatible with iis5 and ms sql.

View Replies View Related

SQL Connection With Data Base

I have been using php for a while now but have recently had to start using asp. I have purchased some hosting from webfusion.co.uk but have been having trouble connecting to the sql server, could someone possible help me here as I don't know what is the correct code to use to start with let alone know where I have gone wrong.

View Replies View Related

Access Data Base

This error occured with me when i want to open my access database:

----------------------------------
Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x888 Thread 0x1288 DBC 0x2e8f014 Jet'.

/AAA/Afghanistan.asp, line 374
----------------------------------

View Replies View Related

Adding Records To Data Base?

I have a data base that I wish to add a record to. I have many fields to ender, but I was testing my code with just one and it works just fine : Code:

View Replies View Related

How To Get The Function Value And Store In Data Base?

Im creating mcq questions using asp and have problems in storing the scores into my database..

View Replies View Related

Microsoft Knowledge Base Article

i wanted to get the 411 on this article. I want to create a small utility web site with a logon page and a form connected to an Access database. The article below explains exactly how but when I try this I can only see the code no actual logon page - nothing but code.

My system is asp allowed and asp.net extensions allowed. FP 2002 extensions allowed. All other extensions are prohibited. I am using w2k3 IIS 6.0 and running 3 html sites succesfully all with working forms. Is there something on the server/website itself I need to enable?Why do I only see code and not a logon page as described in the article?

View Replies View Related

Check Box Value Stored In Data Base

I have a few check boxs on a page. What I want to do is if a box is checks a value of Y is stored in the database. Could you please show me how to do this?

View Replies View Related

How Can Insert The Image In Access Data Base In ASP

how can i insert the images in any format in MS Access database using the ASP plz give me a simplest and easy code which i can use in ASP

View Replies View Related

Update Excel File Fromdata Base

I want to update Excel file when i update database.

View Replies View Related

Populate List Box Base On Combo Box Selection

how do i get a value from a combo box and populate a list box base on the selected value from a combo box? If possible can i get a sample coding.

View Replies View Related

Href In Asp

Have you ever been on ebay-You know when you are checking a persons feedback history, you see a href link to go and see that particular item.

I would like to do the same. If i have a table which i populate with information, if the user clicks on view, i would like to go and show that particular item on another page. Ebay has one unique key (item number), unfortunatley i have a composite key.

How can i do this by adding a href in an asp table and also by having the ability to go directly to the full information about that specific item?

I have done something similar in vb but i used a mshflexgrid but i don't think thats a possibility in asp.

View Replies View Related

If Then With HREF?

I have a master table of records from a recordset on which thereis a link to a detail page as follows: Code:

<td width="10%" align="left" class="langdetail"><a href="Advanced_Search_detail_template1.asp?<%= Server.HTMLEncode(MM_keepBoth) & MM_joinChar(MM_keepBoth) & "TeacherID=" & rsViewMusic.Fields.Item("TeacherID").Value %>"><%=(rsViewMusic.Fields.Item("LastName").Value)%></a> </td>

Is it possible to have to include an if then statement to have 2 different detail pages according to an access level (a field in the recordset)?

View Replies View Related

HREF

I saw an url like this

<a
href="{nocache:426d6de96f848e23f89ef8d2a557145f#0}&p=http://www.isbuluyorum.
com>CLICK</a>

What is the purpose of using href="{nocache:1321sdsa . Does anyone have idea about it ?

View Replies View Related

A Href

Can anyone tell me the proper syntax for this statement:

Response.Write "<a href=""Showevent.asp?eventid=<%= objrs.Fields("eventdate").Value %>""">(objRS("eventcaption"))</a>

View Replies View Related

Href (link)

I would like to have a link that when clicked, sends info to an ASP page to process, but does not submit the entire page. This way, the user will
click on a link and will not be taken to another page, but precessing will occur.
This is mainly for a 'Rating' Application.
Amazon.com does this and I want to know how they do it. Here is the link to the amazon page (you may need to be logged in)
http://www.amazon.com/exec/obidos/t...5480771-6490552.

View Replies View Related

Href Problem

when i click the a link i want to see a thing which is like save as target
...

it can be a word doc or xls or whatever. i want to make it dowloadable when
a user click a link.. Code:

View Replies View Related

Putting A # In A Href With The ?

If you have a href such as this,

href="somepage.asp?home=alpha&street=beta, how would you include a reference to a bookmark on that page, such as <li id="bookmark">Some List Item</li>

View Replies View Related

Using If Then Statements In Href Tag

Is it possible to use If Then statements in an a href tag? What I am trying to do is I am using a server side include page of navigation inside of a content management system. I have limitations on what I can manipulate and change. So just using style sheets won't do me the trick. I want to have a navigation link change a different color when you are on that section. I have the menu expanding also using if then statements. When a variable is passed somewhere else on the page as true, the menu expands. I figured I could use this in the same way to make the link change colors. I want to do something like:

<A href="#" <% If Variable_name then%> id="link <% end if %>>Link Here </a>

Is that possible? I know that i can do an If then statement and have 2 different links, one with the id and one without, but I wanted to see if I could simplify it at all. I'm not the best with ASP so there might even be better ways then that...I was just using from the little that I knew.

View Replies View Related

Using Variable Name In Href

How can i use the variable name instead of a hardcoded value when writing a hyperlink.

strBody = strBody & "<a href="default.htnk">Login</a>"

I would like to use a variable name instead of directly writing default.html like below

strPageName = "default.html"

strBody = strBody & "<a href="<%=strPageName%>">Login</a>"

how this can be done.

View Replies View Related

Href + Outlook

Is it possible to create a link to open outlook (Client side) to open a particular folder
here is the code i am trying to use unsuccessfully :

<a href="outlook://Public%20Folders/All%20Public%20Folders/P/W/C/Conf
%20Room/~S%20C%20R">Conference Room 1</a>

Basically what i want to happen is that when a user clicks on the web link that it opens the meeting room which is in a public folder in outlook application (not the web interface outlook.

View Replies View Related

Href Statement

My href statement as follows isn't working and in fact prohibits the rest of the asp on the page from working. Code:

View Replies View Related

Storing Href In Cookie

I am new to web design and ASP, I am developing a site which has a logon script, what I want to do is return a user to the location they were at after login. Some of the pages will have query-string information in the address bar so need capture that as well.

<script language="JavaScript">
x = window.location.href
document.cookie=x
</script>

Appears to do what I want as I can pick up the href out of the cookie after login and return user to page, prob is I don't seem to be able to include it in my server side scripting which is doing the login it falls over at the script tag.....

View Replies View Related

Disabling The Image On A Href In Asp

I have the following href in my asp code. I would like to disable the image
so the user cant click on the javascript for this image.

....
<input type=text name=thedate size=10><a
href=""javascript:show_calendar('dataform.Line" & lineno &
"6',null,null,'YYYY/MM/DD');"" onmouseover=""window.status='Date
Picker';return true;"" onmouseout=""window.status='';return true;""><img
src='../Production/show-calendar.gif' width='24' height='22' border='0'></a>

Is this possible?

View Replies View Related

Javascript Href Link

I am using Javascript with ASP and am having a problem with a javascript link in that it does not function when clicked. The page is generated correctly without any visible or runtime errors.

A bit of background as to what I'm trying to achieve: i am dynamically creating multiple forms which store details of a products into hidden fields, the information is retrieved from a database recordset. Each product is created in a unique form, this is achieved using a counter variable. I am trying to use javascript to submit the current form - i.e. a hyperlink - which unfortunately doesn't have any effect when clicked. I am thinking I might need to refer to the form differently but am unsure how to.

Below is a sniplet of the source code ....

View Replies View Related

Document.location.href

I want to redirect to other page using document.location.href on Button click and pass ID to that page e.g;

<input type="submit" value="Submit" ONCLICK="document.location.href='mergestatus.asp?projectid= <%=selRs("projectid")%>'">

Please help.I am not able to pass projectid to 'mergestatus.asp'

View Replies View Related

A Href Mailto From String

I have an asp page that is pulling data from a access database. The data will always be a complete email address. I am trying to make the email address on the page a simple hyperlink that opens the default email program upon click. I cannot make it work for the life of me!

<TD align=left><FONT face=Gautami size=2><%=addrRS.Fields("E_Mail")%></font></TD>

View Replies View Related

How To Execute OnClick With An <a Href

I have a session variable who change the selected language (French or English) and i try to change this variable when someone click on my anchor. Code:

View Replies View Related

Formulating A HREF Link

I am trying to get a printer.asp page linked back to a main report page. However, in the final url, the grantid is missing which should not be, if the href statement is correct.

I checked the correct value of grantid via response.write and I can see the correct value. However, the href statement cannot pick the value properly. Code:

View Replies View Related

Problem Changing The Cookie Via A Href

I am currently setting a cookie that has a variable which is based on the user's bandwidth (High or Low is set by a javascript detection script). However, I'd like to also give the user the option of manually choosing their bandwidth variable (High or Low).

The problem I'm having is being able to change or write the dynamically set cookie to the user's manual preference.

instead of doing this which sets the cookie and redirects the user when the page loads....

View Replies View Related

UPDATE Mysql Record From Within <A HREF...>

I have a .asp page that displays an HTML page: view_msg.asp

There is a link (anchor tag) on that page that when clicked, sends the user to another page. I would like to also execute a MySQL query when that link is clicked. The DB is already open and connected to the page. The current current tag looks like this:

<a href="view_messages.asp"><IMG SRC="example.gif"></a>

and the MySql command I want to send is:
UPDATE Messages SET `fromDisplay`="N" WHERE idMessage=" & idMsg "

In english: When someone clicks on the link I want to execute a MySQL command to set the field value to N... how do I do that?

I know this is a very rookie question - but I don't know enough about asp to know how to execute the command here the way I want. Do I have to turn the image/button into a <FORM> 'submit' button</FORM> and use a redirect? Or, would I use an ONLCKICK. What would the correct syntax be?

View Replies View Related







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