Hi,
I'have been looking for a simple scripting (interpreted) language to be run
within my ASP.NET pages.Syntax is of minor importance.
Although I find many options, all of these seem to first compile the script
and then run it and this gives trouble on my shared hosting account on which
my ASP.NET 2 runs in medium trust mode.
Anyone any idea's ?
Thank you,
Wim 6 2158
I would ask about the original problem. By design .NET runs compiled code so
I doubt this is a language issue.
ASP.NET 2 also have a variety of deployment option (from putting
pre-compiled to DLLs to having the code deployed on the fly).
Also it could be just a particular operation that is forbidden by the ISP
(don't they have some kind of support ?)
I would definitely explain the original problem. You :may want also to test
the simplest possible web form to see if the problem could come from
somewhere else than you thought...
---
Patrice
"avh" <sorry@nospam a écrit dans le message de news: uk************* *@TK2MSFTNGP05. phx.gbl...
Hi,
I'have been looking for a simple scripting (interpreted) language to be
run within my ASP.NET pages.Syntax is of minor importance.
Although I find many options, all of these seem to first compile the
script and then run it and this gives trouble on my shared hosting account
on which my ASP.NET 2 runs in medium trust mode.
Anyone any idea's ?
Thank you,
Wim
"avh" <sorry@nospamwr ote in message
news:uk******** ******@TK2MSFTN GP05.phx.gbl...
I'have been looking for a simple scripting (interpreted) language to be
run within my ASP.NET pages.Syntax is of minor importance.
Although I find many options, all of these seem to first compile the
script and then run it and this gives trouble on my shared hosting account
on which my ASP.NET 2 runs in medium trust mode.
Anyone any idea's ?
It's a little difficult unless you explain what you're trying to do
exactly...
By "scripting" , do you mean VBScript...? If so, why on earth are you trying
to use that in ASP.NET...?
Please post some code...?
Hi Mark,
What I'm trying to do is the following:
I would like a way to dynamically validate the input of a form post by
running a dynamic script (interpreted) at the server side.
As stated: all code I found on the internet first compiles the code to IL nd
then I get all kinds of security exceptions due to the medium trust model.
Wim
"Mark Rae" <ma**@markNOSPA Mrae.comschreef in bericht
news:uG******** ******@TK2MSFTN GP06.phx.gbl...
"avh" <sorry@nospamwr ote in message
news:uk******** ******@TK2MSFTN GP05.phx.gbl...
>I'have been looking for a simple scripting (interpreted) language to be run within my ASP.NET pages.Syntax is of minor importance. Although I find many options, all of these seem to first compile the script and then run it and this gives trouble on my shared hosting account on which my ASP.NET 2 runs in medium trust mode.
Anyone any idea's ?
It's a little difficult unless you explain what you're trying to do
exactly...
By "scripting" , do you mean VBScript...? If so, why on earth are you
trying to use that in ASP.NET...?
Please post some code...?
"avh" <sorry@nospamwr ote in message
news:e0******** ******@TK2MSFTN GP04.phx.gbl...
What I'm trying to do is the following:
I would like a way to dynamically validate the input of a form post by
running a dynamic script (interpreted) at the server side.
Well, unless I'm way off here, you *appear* to have a fundamental
misunderstandin g about ASP.NET... ASP.NET is not ASP - that fact that you're
even referring to "scripting language" here implies (to me, at any rate)
that you haven't quite grasped that...
Server-side code (e.g. C#, VB.NET etc) is not interpreted - it is compiled
Client-side code (e.g. JavaScript, VBScript etc) is interpreted...
You can do client-side validation in e.g. javascript :
<script type="text/javascript">
function validateForm()
{
if (document.getEl ementById('<%=M yTextBox.Client ID%>').value.le ngth ==
0)
{
alert('MyTextBo x cannot be blank');
return false;
}
}
</script>
<asp:Button ID="MyButton" runat="server" OnClick="MyButt on_Click"
OnClientClick=" return validateForm(); " />
Or you can do server-side validation in e.g. C#:
protected void MyButton_Click( object sender, System.EventArg s e)
{
if (MyTextBox.Text .Length == 0)
{
ClientScript.Re gisterStartupSc ript(GetType(), "validation ",
"alert('MyTextB ox cannot be blank);", true);
return;
}
}
As stated: all code I found on the internet first compiles the code to IL
Yes, well it will do - that's how ASP.NET works...
Hi Mark,
You must have misunderstood me: I'm fully aware of what the differences are
between ASP and ASP.NET.
I know that ASP is server side SCRIPTING and that ASP.NET code (being it C#,
J#, VB.NET or whatever) is being compiled to IL before being executed
serverside...
What I am trying to do is to create an environment (ASP.NET application)
that allows a regular html form (no, not a webform) to be posted to a
ASP.NET page. One of the value/name pairs would contain some side of
scripting code that is being run by the asp.net page as soon as the html
form is posted.
Wim
"Mark Rae" <ma**@markNOSPA Mrae.comschreef in bericht
news:O1******** ******@TK2MSFTN GP06.phx.gbl...
"avh" <sorry@nospamwr ote in message
news:e0******** ******@TK2MSFTN GP04.phx.gbl...
>What I'm trying to do is the following: I would like a way to dynamically validate the input of a form post by running a dynamic script (interpreted) at the server side.
Well, unless I'm way off here, you *appear* to have a fundamental
misunderstandin g about ASP.NET... ASP.NET is not ASP - that fact that
you're even referring to "scripting language" here implies (to me, at any
rate) that you haven't quite grasped that...
Server-side code (e.g. C#, VB.NET etc) is not interpreted - it is compiled
Client-side code (e.g. JavaScript, VBScript etc) is interpreted...
You can do client-side validation in e.g. javascript:
<script type="text/javascript">
function validateForm()
{
if (document.getEl ementById('<%=M yTextBox.Client ID%>').value.le ngth ==
0)
{
alert('MyTextBo x cannot be blank');
return false;
}
}
</script>
<asp:Button ID="MyButton" runat="server" OnClick="MyButt on_Click"
OnClientClick=" return validateForm(); " />
Or you can do server-side validation in e.g. C#:
protected void MyButton_Click( object sender, System.EventArg s e)
{
if (MyTextBox.Text .Length == 0)
{
ClientScript.Re gisterStartupSc ript(GetType(), "validation ",
"alert('MyTextB ox cannot be blank);", true);
return;
}
}
>As stated: all code I found on the internet first compiles the code to IL
Yes, well it will do - that's how ASP.NET works...
What is not allowed by the host ?
Basically :
- either the limit is not the dynamic compilation and you could perhaps
workaround this problem (for example not saving the compiled assembly ?).
How do you compile ? You could also save the code to App_Code so that it is
compiled by the server when needed ?
- else you could change the host if they can't fit your need
- do your own scripting engine ?
- or you could change your own approach
I would likely choose 3 for now. IMO posting code from a form that will be
compiled server code is really something that should be avoided.
You may want to explain what you are trying to do in case someone could
suggest an alternate approach to dynamic code compilation for achieving what
you are trying to do...
Good luck.
--
Patrice
"wl" <sorry@nospam a écrit dans le message de news: uu************* *@TK2MSFTNGP05. phx.gbl...
Hi Mark,
You must have misunderstood me: I'm fully aware of what the differences
are between ASP and ASP.NET.
I know that ASP is server side SCRIPTING and that ASP.NET code (being it
C#, J#, VB.NET or whatever) is being compiled to IL before being executed
serverside...
What I am trying to do is to create an environment (ASP.NET application)
that allows a regular html form (no, not a webform) to be posted to a
ASP.NET page. One of the value/name pairs would contain some side of
scripting code that is being run by the asp.net page as soon as the html
form is posted.
Wim
"Mark Rae" <ma**@markNOSPA Mrae.comschreef in bericht
news:O1******** ******@TK2MSFTN GP06.phx.gbl...
>"avh" <sorry@nospamwr ote in message news:e0******* *******@TK2MSFT NGP04.phx.gbl.. .
>>What I'm trying to do is the following: I would like a way to dynamically validate the input of a form post by running a dynamic script (interpreted) at the server side.
Well, unless I'm way off here, you *appear* to have a fundamental misunderstandi ng about ASP.NET... ASP.NET is not ASP - that fact that you're even referring to "scripting language" here implies (to me, at any rate) that you haven't quite grasped that...
Server-side code (e.g. C#, VB.NET etc) is not interpreted - it is compiled
Client-side code (e.g. JavaScript, VBScript etc) is interpreted... You can do client-side validation in e.g. javascript:
<script type="text/javascript">
function validateForm() { if (document.getEl ementById('<%=M yTextBox.Client ID%>').value.le ngth == 0) { alert('MyTextBo x cannot be blank'); return false; } }
</script>
<asp:Button ID="MyButton" runat="server" OnClick="MyButt on_Click" OnClientClick= "return validateForm(); " />
Or you can do server-side validation in e.g. C#:
protected void MyButton_Click( object sender, System.EventArg s e) { if (MyTextBox.Text .Length == 0) { ClientScript.Re gisterStartupSc ript(GetType(), "validation ", "alert('MyText Box cannot be blank);", true); return; } }
>>As stated: all code I found on the internet first compiles the code to IL
Yes, well it will do - that's how ASP.NET works... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: The_Incubator |
last post by:
As the subject suggests, I am interested in using Python as a scripting
language for a game that is primarily implemented in C++, and I am also
interested in using generators in those scripts...
Initially I was justing looking at using Python for some event
scripting. So basically an event would trigger an object to run the
appropriate Python script, which would be run in it's entirety and
return control to the C++ code.
After looking...
|
by: Richard James |
last post by:
Are we looking at the scripting world through Python colored glasses?
Has Python development been sleeping while the world of scripting
languages has passed us Pythonista's by?
On Saturday Slashdot ran this article on the "best" scripting
languages.
http://developers.slashdot.org/developers/04/06/12/2125229.shtml?tid=126&tid=156
"Folks at the Scriptometer conducted a practical survey of which
scripting language is the best. While...
|
by: Quest Master |
last post by:
I am interested in developing an application where the user has an
ample amount of power to customize the application to their needs, and
I feel this would best be accomplished if a scripting language was
available. However, I want to code this application in Python, and I
have not yet heard of an implementation of another scripting language
into Python.
An example of what I mean is this (an implementation of Lua into Ruby
-- which I'd...
|
by: Vijai Kalyan |
last post by:
Hello All,
I have a few questions which you might seem irrelavant and/or foolish.
I am asking anyway so I can find out.
1. Is XSL as powerful as a programming language such as Java in its
abilities to transform XML? The W3C site has the following definition
on XSLT for example:
"XSLT is designed for use as part of XSL, which is a stylesheet
|
by: Bibby |
last post by:
Hi, I'm interested in getting started in the programming world. I've dabbled
in C, C++ and VB6. Which would be the best language to focus my attention to
regarding the following considerations:
Hireability
Portability
Flexibility
The likely candidates seem to be Java, VB.Net, C, C++, C#.
| |
by: Michael Andersson |
last post by:
Hi!
I'm writing a small game engine in c# and I'm in great
need of a scripting language. Does anyone know of such a
language?
Would it be possible to use the VSA in some way to do this?
Best regards,
/Michael
|
by: korund |
last post by:
Is there any difference to read & write to windows Registry with
VBScript or JavaScript?
Both scripting languages have similar syntax. What is preferable use
for this?
thanks.
|
by: Gene Jones |
last post by:
So I'm starting to do some things where I'm going to want to add
scripting in the application, and I can't find a scripting language to
plug in that I like. So far I've looked at LUA and L-Sharp, but
neither appeals to me. TCL would be okay, I guess, but still not
really ideal.
My Googling hasn't turned up anything, so I figured I'd ask here:
1) Is there some way to make C# an embedded scripting language? (I
doubt it, but it seems...
|
by: JosAH |
last post by:
Greetings,
Introduction
Java is not Javascript and most of the times when questions end up in the wrong
forum, they're moved to the other forum as soon as possible. Accidentally this
article talks about Javascript a bit but it belongs in the Java section.
Since version 1.6 of Java a script engine comes packaged with the core classes.
A script engine is an abstract little framework that offers support for other
|
by: Banfa |
last post by:
The project I work on has a bespoke hardware platform which is designed to go into a variety of different situations. However to keep things simple we really want the software for the platform to remain the same in all cases (as good practice suggests). One of our thoughts is that to provide the final customisation required for each application we could embed a scripting language into the platform to allow any additional business logic to be...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |