I am converting an ASP application to an ASP.Net application. In order to serve up data easier, I wrote a class that renders a paged datagrid based on a sql statement and a couple of column definitions.
In order to bind the data to the column I specify the html formatting, and in some cases, code which may change the display based on the data values for that row.
I was hoping to use the JScript eval function to replace the VBScript eval function, but found that I can't. Based on the ability to reference things like vbNewline or Split from VB, I was expecting to be able to reference the eval function from JS but I would apparently have to rewrite the whole thing in JScript to do that.
Does anyone have any suggestions on the databinding/eval problem?
But more importantly (because I don't understand and I hate not understanding)...
[tt]
I can do this (from C#):
result = Microsoft.VisualBasic.Conversion.Fix(12.5)
I was expecting to be able to do this (or something like it):
result = Microsoft.JScript.IDontKnow.eval(exp)
[/tt]
Why is it that I can reference the VB functions, but not the JScript functions?
In order to bind the data to the column I specify the html formatting, and in some cases, code which may change the display based on the data values for that row.
I was hoping to use the JScript eval function to replace the VBScript eval function, but found that I can't. Based on the ability to reference things like vbNewline or Split from VB, I was expecting to be able to reference the eval function from JS but I would apparently have to rewrite the whole thing in JScript to do that.
Does anyone have any suggestions on the databinding/eval problem?
But more importantly (because I don't understand and I hate not understanding)...
[tt]
I can do this (from C#):
result = Microsoft.VisualBasic.Conversion.Fix(12.5)
I was expecting to be able to do this (or something like it):
result = Microsoft.JScript.IDontKnow.eval(exp)
[/tt]
Why is it that I can reference the VB functions, but not the JScript functions?