Multiple ASP Modules Not Working On Web Page

I currently have designed a web page and inserted some ASP modules into it. But, if I insert more than one ASP module I receive an "Internal Server Error". If I delete the second ASP module the page works perfectly. So, my questions is this. Can you only insert one ASP module per web page? Where is the problem. Code:

View Replies


ADVERTISEMENT

Public Modules

Im coming from a visual basic 6 background.

I am making an ASP script with vbscript language.

anyways, in vb6, you can create a 'module' and put "public" functions and variables there.

how do I do that in ASP? i have a couple of functions that will be basically used on all pages (a function to prevent SQL injection).

So how do I create a page with all the public functions and use them on other pages?

View Replies View Related

Select Multiple Option Not Working

I have a form search page with many field options but this one field I would like to select multiple options.

I have this on the search screen for my multiple field where I pull the list of options from my database: Code:

View Replies View Related

ASP Page Not Working

The page code can be viewed at http://www.onthescene.co.uk/loginpagecode.htm
the error messages on both firefox and IE6 don't tell me anything other than its an 'internal server error'. Ive spoke to my web host and they say they can't help as they dont give programming support.

View Replies View Related

Vitual Include Not Working -- On Only One Page!

On the rest of the site, virtual includes work, but on one particular page, non-virtual includes work, but virtual ones do not... even though the include statements are copy and pasted from working pages, or are part of non-virtual includes that are included.*

I assume there is something in the page's code that is prohibiting virtual includes? Code:

View Replies View Related

Page 2 - Submit Button Not Working (strange)

Anyone have any thoughts regarding the output document?

View Replies View Related

Multiple Query On One Page

I have created a database request page (wahooo - new to asp and it works)
and everything is great. Now I'm creating a second page and want to know if
I'm able to make two different queries on one page. I want to be able to
create one query that uses a Request.QueryString from a URL and then use one
of the returned values from that query to create another query on the same
page. I hope that make sense. Here is the database connection code:

View Replies View Related

Multiple Page Report

i was wondering how to go about making a multiple page reports. i am really clue less.

View Replies View Related

Multiple Connections On One Page?

If you are going to be making multiple calls to the same database from a single page, should you connect/close, connect/close, connect/close....or just connect once at the beginning of the page and close at the end?

View Replies View Related

Multiple Page Survey

i'm thinking about making a muti page survey and was looking for some input on the best way to go about it. example

i want 3 questions on the first page, the user answers then hits next the next questions load and so on. what would be the best way of programming this?

View Replies View Related

Multiple Page Values

i want to submit 30 field(textbox,combo etc.) data into database.if i take all 30 fields on same asp page or form,the page will not look good, so i want to break that into 3 pages,each page will having only 10 fields.when all required fields on first page will be filled by the user then he will click on next button,so he will see next page , i.e. page no. 2,same for page 3.

if he want to come on previous page for editing some info,it should be possible.on 3rd page there is submit button,when he clicks on submit all the info will stored into table. can anyone tell me is it possible using ASP 3.0? if it is possible then tell me how to do this?

View Replies View Related

Multiple Graphics....One Page

Im basically making a site that will have a homepage with links I will add everyday to graphics and movies on my server. When you click the link it will open a new page similiar to the homepage with the graphic/movie in the middle of hte page.

I know there's an easy way to do this so i can just have it call a database or something like that. Basically I want to just have to add a link to the home page describing what it is, then and add the link to the file to the database and have the coding do everything for me. I think this is asp.

Can someone clue me in. All the sites i've built up until now have hundreds of pages all consisting of the same thing and it's such a pain to keep duplicating code. I'm not looking to get too advanced. If I don't have to use an access database, i don't want to.

View Replies View Related

Inserting Into Multiple Tables From ASP Page.

I've been building an ASP app that sits on top of a relational database (MS Access). The problem is that the data from some web forms need to be stored in different tables. Currently I am using multiple SQL Insert statements.

The problem with this approach is that it is possible that several inserts would succeed and then one would fail. This would ruin my database. Is there some way to synchronize the Insert commands or to "flush" the commands at the same time? I need the Insert statements to either all succeed or all fail.

View Replies View Related

Multiple Select Options At The Same Page

I m trying to use multiple option menu using redirect function in ASP.

I managed to do a single option but I need to use multiple options can you please advise on how to do this, so both options apear in the same page. for instance, in the code below a user should be able to select uk and also selects between the other options; population, geography from the same page. Code:

View Replies View Related

Linking Multiple Css Files To A Master Page

We have a master page set up and it is tied to its css file through the standard method in the <head> tag. What I would like to do though is from another page inheriting the master page to add another link to a css file.

That way i can have the sites global file used to make the general apperance consistent, then make the internal content more flexible without destroying the current css file.

Is this a possible task? When i went into the main master page and tried to add a <asp:contentplaceholder id="additionCSS" runat="server" /> tag to the head. When this is done visual studio alerts me saying it doesn't recognize the tag 'asp'. Is there a way around this? We are only just rewriting the site to use master pages now so I'm still figuring it out.

View Replies View Related

TRIMMING MULTIPLE KEYWORDS On Search Page!

I am trying to make a search page. Once a serach word or words is put in I need it to serach multiple product tables and output the description of any prioduct if the search word is present in the description.

However, If i put in 2 keywords like "paper sticker" I get no results. How do you search multiple keywords? Code:

View Replies View Related

Having A Problem With Creating Multiple Page Results

I am attempting to only show 10 results per page in my results page. I keep on getting the following error. Wrong number of arguments or invalid property assignment: 'MoveFirst'
Does someone know where i am going wrong? Code:

View Replies View Related

Passing Multiple Selected Items To A Forms Page- How?

I have a query on a page that displays the results of a recordset. Each row has a check box that has the table ID associated with the row of data.

I am trying to figure out how do I send every row checked to another page and have that page know the ID's that were checked so the next page can query the table for those ID's and fill out a submission form. I know the form fields I can write so it dynamically names the value based on the script, that part is easy, but trying to figure out how to have the script accept multiple ID's so it can go through each and display the results is not.

Now this is simple if I am just sending one ID to the next page, I can just use a "Post" and append a ?id=xxx to the URL and then do a request.querystring for the ID. Where I am confused is trying to send multiple ID = 's to the next page so it reads more then one ID if more then one was checked on the previous page which 99% of the time it will be.

HERE IS MY MAIN QUESTION:

What should I look up to point me in the right direction to create a classic VBScript/ASP code to parse through the ID's that were checked on the previous page and have the next page query each ID for the data?

I can pretty much figure out how if I know what I am looking to do. I was just looking for some sort of direction that I can pursue to understand how do do this task. What is it I am trying to do? IS there a term or set of terms I need to consider looking up to get examples so I can tweak and write it from there?

View Replies View Related

How Do I Reload The Page To Show New Info With Multiple Submit Buttons

i am new to asp and web designing, and was wondering how to reload a page so that a different set of images appear, depending on which submit button is pressed. Code:

View Replies View Related

SQL Server - Update/Insert Multiple Cols Into Multiple Tables

Just as the title says I am trying to do something impossible with a single SQL statement. I am doing an ASP webpage for internal use at the company I work for.

I want to know if there is a way to insert/update data into multiple tables in 1 SQL statement.

If it requires functions | views or anything else that is fine but I don't want to have 3-4 different SQL statements to update 2-3 different columns in different tables.

View Replies View Related

Searching Multiple Memo Fields In Multiple Tables In Access

I have a search option on my website, which should perform a search on 4 fields, as follows:

tblNews
headline
content

tblDatabank
filename
description

It only needs to return matches which are an exact match of their search criteria. For instance, searching for "I am here" would return a record which contained "I am here", but not just "I" or "I am" etc.

I need to return all these records as part of one recordset preferably, as I want to be able to order them etc., though I imagine you may suggest I use an array somehow to merge two recordets etc., then reorder them?

View Replies View Related

How To Update Multiple Records With Different Multiple Value

i hav problem with updating the data. In the asp page i hav displayed records based on search criteria. in display mode im displaying the to be updated field in combo box for each similar contract_no. each contract_no will hav different no of rows and to be updated combo box.

based on the selected value in the combo boxes of different contract_nos i hav to update the combo value with old value. user select multiple combo values at a time I need anybody's help with detailed programming logic.

View Replies View Related

ASP Not Working Ok In PWS

I just installed PWS on 2 machines (XP & 98).

The problem is that I can run the ASP files in the wwwroot folder when I use http://localhost from my browser or RUN (and that's for the default.asp). But the asp files do not work when I call them from a hyperlink in an HTML file.

View Replies View Related

CDO Is Not Working

After I moved the site to new server the mailing method stoped working , the cdo pull the email from sql database on the same server .. although it says sent to # recipients.
I send a webpage (newsletter) exisit on the server "I use full url" also the registration page gives when registration the error: CDO.Message.1 error '80040218'

Unknown Error

/extra/news/reg3.asp, line 251

line 251 is objSendMail.CreateMHTMLBody "http://www.example.com/newsletter.html"
I saw description of the error it sayes that I have to use full url ...but I am using it ...
any Idea ...

View Replies View Related

Asp Working Or Not

I have a sever 2003 machine of which I am trying to host a webisite on. The webpages I uploaded has lots of .asp files that could not be open. I'd contact the website disgner and complains about it and an he blaims it on my server not supporting asp technology.
My question today, is there a way to test what the problem really is?

View Replies View Related

FSO Not Working

In my serverside script I have gone down to the bare bones and the following doesn't seem to work:

dim fs
dim fst
dim LineOut
set fs = Server.CreateObject"Scripting.FileSystemObject")
set fst = fs.CreateTextFile("C:TEMPhome.tmp",True)

lineout = "MAFFIdentifier" & vbtab & "Title" & vbtab & "Initials"
fst.writeline(lineout)
lineout = " ==================================================
========"
fst.writeline(LineOut)

fst.close
set fs = nothing

The server gets to the end since I place a response.write in to test.

If I cut and past this into VB declare the variables as objects and lineout as string and remove the "Server." from the line when setting fs, then it works fine in VB.

View Replies View Related

Not Working In PWS

The problem is that I can run the ASP files in the wwwroot folder when I use http://localhost from my browser or RUN (and that's for the default.asp). But the asp files do not work when I call them from a hyperlink in an HTML file.If I do that, all I see are the contents of the asp file.

View Replies View Related

Getting Working

Just set up Dedicated Server Hosting with GoDaddy. I put a very simple ASP page in the home web directory and try to load it and get a very generic error. A simple HTML file works fine. Obviously it's a permissions issue or maybe some service is not running.

View Replies View Related

Sql Not Working In Asp

i got an sql sentence that is executed in toad without problem; returns 1 but when i run the sql in asp i get returned 0. Code:

SELECT COUNT(*) as st
FROM sest_sklepi
WHERE rok<(SELECT TO_CHAR(SYSDATE, 'DD.MM.YYYY') as b FROM dual)

View Replies View Related

ASP Not Working

New to IIS, Why will IIS 5.0 not server up my ASP web pages? I cannot even get to the help because it is an ASP Page. I get an error in IE that states "HTTP 500 Internal server error". I have looked in the configuration and cannot find anything related to ASP. What can I do to serve up ASP web pages?

View Replies View Related

Why Isn't My PWS Working

I'm having difficulties making PWS work. I have WIN98SE. It was working for a while but now it says:

Quote: Problem:
An unexpected error occured.

Solution:
Please restart the Publishing Wizard.

View Replies View Related

Working With Url

Im finishing up a content management system for a client. It works fine except the way they have the pages set its nessessary for someone to open each page made and change it to the new directory.

the script copys a folder from lets say

http://fake/templets

To

http://fake/user
so now we end up with something like
http://fake/user/smith

On the pages in smith is there a way to make the look at their url and strip off all but the /smith part?

Or maby someone could tell me what im trying to do is called and ill be able to do a better search online.

View Replies View Related

<>0 Is Not Working

Here are the scripts. interest is 0, but, it will not execute then clause. Why?

interest = round(rs("CURR_WORKING_INTEREST"))
response.write interest
if sizeworkint < 3 OR interest<>0 then CURR_WORKING_INTEREST2 =
left(rs("CURR_WORKING_INTEREST"),2) + ".000000" end if ..

View Replies View Related







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