473,396 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

possible to store server side scripts on sql server?

HI,

i intend to save some asp scripts on the server.

eg: i store this script on the server

<%="hello"%>

i save this under table "table1" , column name "title"

then i proceed to write out the server script:

set rs = conn.execute("select title from table1")
response.write rs("title")

but the results doesnt execute the stored asp script.

am i doing the wrong way?

i intend to store some asp server scripts on the server...

thanks

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Dec 29 '06 #1
6 1981
"User" <user@emailwrote in message
news:11*************@sp6iad.superfeed.net...
HI,

i intend to save some asp scripts on the server.

eg: i store this script on the server

<%="hello"%>

i save this under table "table1" , column name "title"

then i proceed to write out the server script:

set rs = conn.execute("select title from table1")
response.write rs("title")

but the results doesnt execute the stored asp script.

am i doing the wrong way?

i intend to store some asp server scripts on the server...
You're just returning the string of ASP code.

Try using Eval() to apply it -- untested.
Dec 29 '06 #2
On Fri, 29 Dec 2006 12:29:01 -0600, McKirahan <Ne**@McKirahan.comwrote:
"User" <user@emailwrote in message
news:11*************@sp6iad.superfeed.net...
>HI,

i intend to save some asp scripts on the server.

eg: i store this script on the server

<%="hello"%>

You're just returning the string of ASP code.

Try using Eval() to apply it -- untested.
That has a lot of limitations. Foremost, it's highly insecure, but it also
defeats IIS's script context caching (so every statement will have to be
recompiled with every page load), prevents you from keeping your code
under revision control, and makes it impossible to use templates (i.e.,
you would need to use Response.Write "hello" rather than <%= "hello" %>).

A better design might be to store an identifier in the table, and then use
GetRef() to resolve it to a function, e.g:

<% Set rs = conn.Execute("SELECT title FROM table1")
Set f = GetRef(rs("title"))
f()
%>

<% Function SayHello() %>
hello
<% End Function %>

--
Justin Piper
Bizco Technologies
http://www.bizco.com/
Dec 29 '06 #3
Thanks !

Got it!

I've used Execute() instead.

Without the eval() tip, i wouldnt have found execute()

=)

"McKirahan" <Ne**@McKirahan.comwrote in message
news:Fe******************************@comcast.com. ..
"User" <user@emailwrote in message
news:11*************@sp6iad.superfeed.net...
>HI,

i intend to save some asp scripts on the server.

eg: i store this script on the server

<%="hello"%>

i save this under table "table1" , column name "title"

then i proceed to write out the server script:

set rs = conn.execute("select title from table1")
response.write rs("title")

but the results doesnt execute the stored asp script.

am i doing the wrong way?

i intend to store some asp server scripts on the server...

You're just returning the string of ASP code.

Try using Eval() to apply it -- untested.



Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Dec 30 '06 #4
You should read this:
http://blogs.msdn.com/ericlippert/ar.../01/53329.aspx

User wrote:
Thanks !

Got it!

I've used Execute() instead.

Without the eval() tip, i wouldnt have found execute()

=)

"McKirahan" <Ne**@McKirahan.comwrote in message
news:Fe******************************@comcast.com. ..
>"User" <user@emailwrote in message
news:11*************@sp6iad.superfeed.net...
>>HI,

i intend to save some asp scripts on the server.

eg: i store this script on the server

<%="hello"%>

i save this under table "table1" , column name "title"

then i proceed to write out the server script:

set rs = conn.execute("select title from table1")
response.write rs("title")

but the results doesnt execute the stored asp script.

am i doing the wrong way?

i intend to store some asp server scripts on the server...

You're just returning the string of ASP code.

Try using Eval() to apply it -- untested.


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Dec 30 '06 #5
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomwrote in message
news:OU**************@TK2MSFTNGP03.phx.gbl...
You should read this:
http://blogs.msdn.com/ericlippert/ar.../01/53329.aspx
That's for JScript not VBScript; though even that article states:
"There are a few scenarios in which eval is invaluable.".

[snip]
"McKirahan" <Ne**@McKirahan.comwrote in message
news:Fe******************************@comcast.com. ..
[snip]
Try using Eval() to apply it -- untested.


Dec 30 '06 #6
McKirahan wrote:
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomwrote in message
news:OU**************@TK2MSFTNGP03.phx.gbl...
>You should read this:
http://blogs.msdn.com/ericlippert/ar.../01/53329.aspx

That's for JScript not VBScript; though even that article states:
The same reasoning applies to Execute. A new compiler is spawned consuming
resources and impairing performance.
Part two of the series
(http://blogs.msdn.com/ericlippert/ar.../04/53335.aspx) describes
the security hole opened by the use of these methods.
"There are a few scenarios in which eval is invaluable.".
And this is not one of the situations he describes.
Justin described a perfectly workable alternative to Execute, but as usual,
the alternatives look a little harder and the Execute/Eval crutch is picked
up.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Dec 30 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
by: Lovely Angel | last post by:
Dear Friends Hope you doing great. I have recently shifted to a webhost which is Using Windows 2003 and IIS 6. Now my application was working fine earlier but now I am facing this problem ...
6
by: S P Arif Sahari Wibowo | last post by:
Hi! I am thinking to have a client-side script doing processing on file downloading, basically the script will process a downloaded file from the server before it received by the user. For...
2
by: Bhupesh Naik | last post by:
This is a query regarding my problem to make a spell and grammar check possible in text area of a web page. We have aspx pages which are used to construct letters. The browser based screens...
4
by: earwicker | last post by:
I recently deployed a web application which contains a user registration form with the usual fields: name, address, email, password, etc. Each of the TextBoxes uses a validation control to verify...
4
by: Prodip Saha | last post by:
Dear ASP.NET Gurus, I have a TextBox control with AutoPostBack set to true to execute the server scripts. I also, added some client script for validation.What I want is--execute the client script...
5
by: Mong | last post by:
Hi, I have a webform with various asp controls on it such as textboxes and dropdownlists. I'm fairly new to asp.net coming from VB6 and am wondering when it's best to use client side events and...
21
by: Ben | last post by:
Hello I have frames set up in an asp.net application and need one frame to refresh another. Seeing as events need to be registered at the time the page is sent from the server, I was wondering...
11
by: rgintexas | last post by:
i'm trying to get server side vbscript to execute in firefox: </script> <script type="text/VBScript" src="VBFile.vbs"> </script> is there any way i can use javascript to call the vbs file, or...
5
by: Ankur | last post by:
Hi Folks, I am new for this group. I want to clarify one thing what's a basic difference between Client Side Java Script and Server Side Java Script. how we can differentiate it. Why we called...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.