473,385 Members | 2,029 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,385 software developers and data experts.

runtime script execution

I want to be able to embed/evaluate script blocks inside a string. For
example:

"This is a <#iif(PassedInValues("x")=1, "good", "bad")#> question.
<#iif(PassInValues("x")=1, "Thanks for asking it.", "Why did you ask
it?")#>"

Each block (between <# #>) needs to be evaluated. The script would need
access to a key/value list during execution. So each block would be
evaluated (passed in the key/value list to use) and replaced with it's
result. In the above scenerio, if PassedInValues("x") = 1, then the string
would end up like:

"This is a good question. Thanks for asking it."

Any help would be greatly appreciated.

Thanks in advance,

Jack
Nov 20 '05 #1
1 1405
Hi,

http://www.codeproject.com/dotnet/Do...rget=scripting

Ken
------------------
"Jack" <jl****@strategic-systems.com> wrote in message
news:u3**************@TK2MSFTNGP11.phx.gbl...
I want to be able to embed/evaluate script blocks inside a string. For
example:

"This is a <#iif(PassedInValues("x")=1, "good", "bad")#> question.
<#iif(PassInValues("x")=1, "Thanks for asking it.", "Why did you ask
it?")#>"

Each block (between <# #>) needs to be evaluated. The script would need
access to a key/value list during execution. So each block would be
evaluated (passed in the key/value list to use) and replaced with it's
result. In the above scenerio, if PassedInValues("x") = 1, then the string would end up like:

"This is a good question. Thanks for asking it."

Any help would be greatly appreciated.

Thanks in advance,

Jack

Nov 20 '05 #2

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

Similar topics

5
by: Boris Nikolaevich | last post by:
This is backwards of what I usually want--normally if you have a long-running ASP script, it's a good idea to check to see whether the client is still connected so you can cancel execution. ...
3
by: wukie | last post by:
What are some sound solutions to capture the query runtime via a script/proc? The info returned from Statistics time is hard to process. The goal is to run a statement(s) and capture and track the...
4
by: Geoff Cox | last post by:
Hello, One person to date has received a runtime error message saying "parent.frameleft.location is not an object" with the following code. The code is used to select 2 frames at the same...
5
by: Praveen | last post by:
I have script files embedded as resources in my dll. During runtime, I would like to write it out into the app dir (or a app sub-dir) and send the appropriate virtual path to the client. This makes...
0
by: Jack | last post by:
I want to be able to embed/evaluate script blocks inside a string. For example: "This is a <#iif(PassedInValues("x")=1, "good", "bad")#> question. <#iif(PassInValues("x")=1, "Thanks for asking...
3
by: iam980 | last post by:
Hello All. We have tested following SQL script from query analyzer: -- Script begin DECLARE @I int; SET @I = 1; WHILE @I < 10000000 BEGIN SET @I = @I + 1; END -- Script end
2
by: vgokulraj | last post by:
hi, in the following code i have a problem. While I try execute with big query? 1. Runtime run = Runtim.getRuntim(); 2. Process p =run.exex("c:\\script.bat"); script.bat contains mysql...
17
by: blufox | last post by:
Hi All, Can i change the execution path of methods in my process at runtime? e.g a()->b()->c()->d()->e() Now, i want execution to be altered at runtime as -
21
by: sheldonlg | last post by:
I have googled for '"Internet Explorer" "Unknown runtime error"' and not found anything useful. I have the following (for simplicity of presentation here): <div><table><tr><th...
5
by: Guillermo Antonio Amaral Bastidas | last post by:
Hi everybody, I have a quick and probably dumb question, keep in mind I just dumped my old love FastCGI + Perl for it's younger hotter friend PHP5. If the user calls a time consuming script...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...

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.