473,395 Members | 1,527 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,395 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 1408
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: 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:
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
0
jinu1996
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...
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...

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.