473,385 Members | 1,772 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.

Accessing page objects from code...

See: http://support.microsoft.com/default...b;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).c hildren("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
Nov 19 '05 #1
4 1176
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.

"Steve Schroeder" <ss********@merchant-gould.com> wrote in message
news:eJ**************@TK2MSFTNGP12.phx.gbl...
See: http://support.microsoft.com/default...b;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).c hildren("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

Nov 19 '05 #2
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.

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uE**************@tk2msftngp13.phx.gbl...
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.

"Steve Schroeder" <ss********@merchant-gould.com> wrote in message
news:eJ**************@TK2MSFTNGP12.phx.gbl...
See: http://support.microsoft.com/default...b;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).c hildren("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


Nov 19 '05 #3
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.

"Steve Schroeder" <ss********@merchant-gould.com> wrote in message
news:uS**************@TK2MSFTNGP09.phx.gbl...
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.

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uE**************@tk2msftngp13.phx.gbl...
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.

"Steve Schroeder" <ss********@merchant-gould.com> wrote in message
news:eJ**************@TK2MSFTNGP12.phx.gbl...
> See: http://support.microsoft.com/default...b;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).c hildren("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
>
>



Nov 19 '05 #4
Got it...thanks! :)

"Marina" <so*****@nospam.com> wrote in message
news:O5**************@TK2MSFTNGP12.phx.gbl...
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.

"Steve Schroeder" <ss********@merchant-gould.com> wrote in message
news:uS**************@TK2MSFTNGP09.phx.gbl...
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.

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uE**************@tk2msftngp13.phx.gbl...
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.

"Steve Schroeder" <ss********@merchant-gould.com> wrote in message
news:eJ**************@TK2MSFTNGP12.phx.gbl...
> See: http://support.microsoft.com/default...b;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).c hildren("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
>
>



Nov 19 '05 #5

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

Similar topics

1
by: jgamble | last post by:
Hi, Here's a question for you all. Under "classic" ASP any ASP page could have any number of #Include files. Using #Include files I could have functions which were common to my whole site and...
1
by: Johan Riis Johansen | last post by:
Hi Folks! A few tips or pointers on this one would be appriciated. Presently I'm working on a webproject, and I've decided to create a class that acts as template for all pages on the site....
3
by: Alex | last post by:
I'm having a problem porting an ASP solution to ASPX. In the ASP solution I'm accessing a DCOM server, create sub DCOM objects and call functions from VB script on the ASP pages. The DCOM object...
0
by: Joergen Bech | last post by:
Fairly new to ASP.NET 1.1. Getting the error below when running application on a web server outside of my control, but only the first time I run it: 1. After a long period of inactivity (or...
0
by: sonu | last post by:
I have following client side code which i have used in my asp.net project SummaryFeatured Resources from the IBM Business Values Solution Center WHITEPAPER : CRM Done Right Improve the...
0
by: Tobester | last post by:
Hi I am having problems accessing a vb6 dll from ASP.Net. The vb6 dll is registered. I have then created an interop file using tlbimp. The interop has been added to the GAC. I can run the...
1
by: adamredwards | last post by:
I have a page with some form elements that are dynamically generated. They are inserted into the dom by first cloning a node, changing the values like name, and then inserted with insertBefore(). ...
4
by: tshad | last post by:
Is there a way for a User Control to access an object (such as label or textbox) on the .aspx page that calls it? For example: x.aspx ************************************** .... Sub...
3
by: kosmodisk | last post by:
Hi, I'm having problem accessing javascript-created elements from opened window. This occurs only when I'm including another files in opened window, javascript or css. When I comment out...
2
by: William van Zwanenberg | last post by:
Hi there, I wonder if you guys can help. I'm currently experiencing some coding problems what with trying to use PHP and javascript in tandem. What I'm ultimately trying to achieve is use...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.