Accessing page objects from code...

  • Thread starter Thread starter Steve Schroeder
  • Start date Start date
S

Steve Schroeder

See: http://support.microsoft.com/default.aspx?scid=kb;en-us;317719

I can convert the sample code to my needs for the most part, where I'm fuzzy
on is:

window.parent.frames("bottom").document.forms(0).children("DataGrid1").outer
html

Now, if I'm working inside a code-behind form, how might I make the same
reference, using VB.Net as opposed to the example given, which is in
VBScript.

Is it just me, or is the example code given by MS sloppy?

Thanks,

Steve
 
Hi Steve,

It's just you. That's not a server-side script; it's a client-side script.
Why MS chose to use client-side VBScript for it is beyond me, since VBScript
isn't supported by most browsers. On the other hand, it may require IE (I
didn't look it over THAT carefully). At the very least, it requires Excel on
the client to view the spreadsheet. Still, MS tends to use JavaScript for
client-side scripting.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 
Thanks...yeah, I'm trying to aviod the client-side script route, which leads
to the more important question, how do I make this (the sample code) work
for me, in a code-behind web form...

Appreciate the feedback, thanks.
 
I think you need to re-read Kevin's post.

You can't manipulate an instance of Excel running on the client from the
server. That just can't be done. You have to use client side script to do
this.
 
Got it...thanks! :)

Marina said:
I think you need to re-read Kevin's post.

You can't manipulate an instance of Excel running on the client from the
server. That just can't be done. You have to use client side script to do
this.
 
Back
Top