I'm showing page contents text coming from database, normally the contents are plain text or in html formatting... it works fine.. but I want to add ASP code within page contents, as well... i did try but it dispalys ASP code as it is in the output...
is there any way to execute those asp code lines coming from database...?
I am extrememly new to C (only been playing with it for a few days), and will be am required to be using C and ASP.NET (also a language i have only been using for a couple of days) for work purposes in the next few months. I come from a mostly Java background where it was easy to write JAVA code, and provide web interfaces that made use of that code in JSP.
I would be greatful if anyone can tell me...
a) Is the same effect possible using ASP.net to access / execute etc C/C++ (not interested in c# code - all the explanations of this seem to cover c# only - or is there no difference? - Spot the newbie! lol) code (pretty sure that works - but be good to know incase there is another step in there).
b) Where can i learn more about it? Can you suggest any weblinks or books etc?
Incase it makes any difference - the sort of code i am interested in running would simply respond with results from databases, or extracted content of files etc (command line stuff) - and much of the code is already written in c / c++ so i am not keen on re-writting it specifically for asp.net (does that make sense? hope so!).
i have used content-disposition to force the user to download the file and after saving the file i want to execute some more code i.e i want to enter some records in the database and then redirect to another page but this is not happening. The execution remains on the same page only.
I haven't started to mess with this yet, but is it possible to store .ASP source script in a Database field, then use ADO to get the string from the field and then force the scripting host to interpret that string from the database and flush it into the buffer for output to the browser? I was thinking you'd have to use EVAL() on the string or something...Anyone done this yet? I was working with Vignette story Server a couple of years ago, and all of the TCL source script and html is stored completely in the database, only cached pages are in virtual directories.
I have a web form and some additional code i don't want my additional code to execute untill after they hit sumbit on the form. i want to keep all of this on one page. i've tried to just have the page submit to it's self but that doesn't stop my code from executing on load.if anyone could give me some direction on how i should do this it would be great.
The following code has run-time error on "divide by 0" error. I expect "do the work<br>" will not print in the browser, since it happen after the code that cause the error. However, this is the output: any ideas why?? Or this is the nature of ASP scripting language that is being executed in sequential order? Code:
I'm working on a application where I've created a couple of Sub routines I call them from my ASP page.
But I would love to put the hole HTML including my "call showOffers" in my database and when I get the result set do I want to execute the "call showOffer". Is this possible?
I have seen a code to populate a list box from a data base table. Earlier I gave my own values using HTML coding like :
<Option Value="P-159">P-159</Select>. It was working fine but not after using code to build a list box, it is not coming in form value as input and next redirecting page retutns with error:
two codes pages are attached : profile page and search page. Profile page sends input to search page and search pages returns the output.
i created a global.asa file with notepad and put it in the root directory
<SCRIPT LANGUAGE="VBScript" RUNAT="Server"> Sub Session_onStart() session("mary") = "mary" End Sub
</SCRIPT> now in my asp code i put <%=session("mary")%>
and restarted my machine, and check the value of mary and there was none whats wrong here? I didnt put a reference in my asp page to the global.asa file. I assume asp looks for it itself ?
I put the same code into a simple test document to verify, except for mine has Response.Write. All my numbers came out negative. If I reverse their positions, I get positive numbers. Is the example above wrong or is there something going on with my PC?
I can't figure out why all of a sudden my variable s1 doesnt have a value once I hit the submit button. Here's my long extensive code. The important bits are the part where I response.write the s1 and s2 and s3 values, they show up on the first page but when I hit the submit button for some reason, they have no value anymore.
A few days ago all my Request.ServerVariables began coming up empty. I was using Request.ServerVariables("AUTH_USER") for basic authentication but now its useless. Our server administrator tells me he installed some "patches" last week but doesn't think he caused the problem. All I can say is that before the patch they worked fine. Anyone have any ideas on where to look for a solution?
I run a site and one of our services is a "free online quote" .I've made the whole form, including the .asp backbone to send it off (the file itself is .asp, but im pretty sure the language is in VB). It was working fine, but now the forms will come back blank most of the time. I know they cannot be submitted blank, because I have required feilds there.
The weird thing is, it was working flawlessly, then it started to crap out once or twice, now it rarely submits a real one.It might not be my coding, but I am really lost at this point.I'm using godaddy for a host btw.
This is my first asp form so please be gentle with me It's a publications ordering form. I've got the form and the asp code setup, when the form is sent the name of the publication comes through but not the amount ordered - i'm sure i've made a simple mistake somewhere - can anyone spot why the order amount isn't coming through. Code:
We have some ASP code in a database, say something like Code:
<%=session("strFirstName")%>
If we ever call that, instead of resolving to the value of the session variable "strFirstName", it shows the whole line of text "<%=session("strFirstName")%>".
The question is, how can we get code like that in the database to generate on the page along with the rest of the ASP code
Does anybody have code to add a "Database Last Updated...." line on your webpages that are generated from an MDB? There is simple ASP and javascript for 'page last updated', but the code that I have found just detects the time when the page was generated, which is every time the page loads since it is querying the database.
Im looking for code that queries when the database was last updated, then displays that info on the page.
i just wanna a simple code for ADD, Find, EDIT, REMOVE asp code to manage a simple database contains only products name and its details and picture to be viewed in web site. is there any?
I have a two pages. The first is a data entry screen (which saves the form data to a DB) and the second page displays the text that was inputted on the previous page( pulled from DB). Is there a way to insert <%=date()%> into one of the text areas and have it be processed on the second page when that text is pulled from the database?
I downloaded an online quiz application from the Internet. The application works fine but and after I answer questions, it does not produce any results and display it on the screen. It gives an error message saying the database is read only.
I think there is a problem with reading the database to retrieve the correct answers. It is an MS Access database. But I don't know what it is and how to solve it.
How to create a database paging with the code i have. im trying to do database record paging, im not quite sure how i had tried couple of open source code but cant not get it to work with my code:
Can anyone help me find a code for Database Paging? I have seen some of it but its very hard for me to read, its too advance. Need to have a code with beginner to intermediate level.
i have built an interface for template making. i am using a simple form with a text area and submit button to save the code, i want to show in a template page, into the database. I also use the same textare to view any code saved to the database for a specific page.
THE PROBLEM - i have to save a
response.write("<textarea..............></textarea>") the minute i paste it into the textarea it saves it fine but shows it wrong as if once it reads the </textarea> in my saved code the main page 'closes' the main textarea . i.e. the rest of my saved code is shown as part of the page - and its not pretty!