473,396 Members | 1,836 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,396 software developers and data experts.

Postback from VBScript

Hi

I have an asp.net page with embedded vbscript that interacts with Microsoft
Word.
The script is activated by a client side button (onClick()...).

When the script has finished I want to notify the server so that some
cleaning up can be done. I can't find a way to do a postback from vbscript. I
have added another button and run it's click method but it didn't post back
(I don't know how to get the event chain working). I tried calling a
javascript routine to do a __postback("","") etc.

Any help - I'm stuck on this one.

David
Nov 19 '05 #1
3 3748
The quick and dirty method would be to convert the __dopostback to vbscript.
change any [] to () - remove the ; and put a vbscript style function
declaration and replace { } with appropriate vb tags.
there is nothing in the postback event that is javascript specific that i am
aware of.

"David" <Da***@community.nospam> wrote in message
news:3C**********************************@microsof t.com...
Hi

I have an asp.net page with embedded vbscript that interacts with
Microsoft
Word.
The script is activated by a client side button (onClick()...).

When the script has finished I want to notify the server so that some
cleaning up can be done. I can't find a way to do a postback from
vbscript. I
have added another button and run it's click method but it didn't post
back
(I don't know how to get the event chain working). I tried calling a
javascript routine to do a __postback("","") etc.

Any help - I'm stuck on this one.

David

Nov 19 '05 #2
Hi Thanks for reply.
It got me thinking.

What I have actually done is simply
document.all("MyHiddenField").value = "Finished"
document.myForm.submit()

Then the aspx simply loks in the posted back value of MyHiddenField to
decide whether to do the cleanup. I tried to set a Target and Value for the
submit but any Target other than "" caused a second instance of my page to be
created(!).
Any Value seemed to be completely ignored.
Anyway, got a result.

Thanks again.

David

"re****@community.nospam" wrote:
The quick and dirty method would be to convert the __dopostback to vbscript.
change any [] to () - remove the ; and put a vbscript style function
declaration and replace { } with appropriate vb tags.
there is nothing in the postback event that is javascript specific that i am
aware of.

"David" <Da***@community.nospam> wrote in message
news:3C**********************************@microsof t.com...
Hi

I have an asp.net page with embedded vbscript that interacts with
Microsoft
Word.
The script is activated by a client side button (onClick()...).

When the script has finished I want to notify the server so that some
cleaning up can be done. I can't find a way to do a postback from
vbscript. I
have added another button and run it's click method but it didn't post
back
(I don't know how to get the event chain working). I tried calling a
javascript routine to do a __postback("","") etc.

Any help - I'm stuck on this one.

David


Nov 19 '05 #3
Yep. That is basically what the do_postback does except it provides a
more standardized method of doing it.

Nov 19 '05 #4

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

Similar topics

29
by: Christopher Brandsdal | last post by:
If I have a .ASP page that runs JScript code - is it possible to include an ..ASP page that runs VBscript???
0
by: Kurt | last post by:
Hi all I have a server side textbox on my page that has an OnBlur event that calls a vbscript function which validates the textbox (checks for a valid date) when the user leaves the control. If...
4
by: dave_wurtz | last post by:
All, First a little information... I have a class library that was developed for a GUI application that I am trying to get to work on my ASP.NET application. The library essentially is used to...
1
by: Johan | last post by:
I'm running a timer as a VBScript on a VB.NET webpage. The problem is that at postback the script seems to start all over again and the timer is reset. Is there a way to prevent this? <SCRIPT...
10
by: Geoff | last post by:
Is there any way to change the enabled property of a dropdownlist without a postback, depending on the selection in another dropdownlist? Select Case ddlReport.SelectedValue Case "Profit" ...
4
by: Gregory Gadow | last post by:
If there is a more appropriate forum, please let me know and I will post there. Our field reps can go on to our website and select from several sets of data to create the address we then provide...
4
by: Jim Reynolds | last post by:
Hi, I am trying to implement a postback from a control with a textbox and anchor to perform a search. I cannot use link button due to javascript being turned off. Is there a way of implementing...
5
by: Bjorn Sagbakken | last post by:
Hello I have just migrated from VS 2003 to VS 2005, and .NET framework 1.1 to 2.0 I am at the end of debugging and fixing stuff. Now there is one error I just cannot find a solution to: On...
2
by: krishnan112 | last post by:
HI i was wondering if anyone knows how to grab the ID of a control (button in my case), on a asp.net form that triggers a postback. (in vb script) thanks very much in advance krishnan
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
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
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.