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

How to call VBScript function from DataGrid control in ASP.net?

We have DataGrid control and hyperlinkcolumn column type in ASP.NET
application.

We can successfully trigger javascript function on the hyperlinkcolumn
click by using:

<asp:HyperLinkColumn headertext="" text="Profile"
DataNavigateUrlFormatString="javascript:editaccoun t('{0}','history');"
DataNavigateUrlField="Account" />

But we cannot find the way to call
vbscript function.

Any advise, please!

Vadim

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #1
4 5683
Hi Vadim,

Is it the syntax you're having problems with? There's an article here on
that:

http://msdn.microsoft.com/library/de...javascript.asp

"Vadim Vulfov" <va****@intelsysinc.com> wrote in message
news:uH**************@TK2MSFTNGP09.phx.gbl...
We have DataGrid control and hyperlinkcolumn column type in ASP.NET
application.

We can successfully trigger javascript function on the hyperlinkcolumn
click by using:

<asp:HyperLinkColumn headertext="" text="Profile"
DataNavigateUrlFormatString="javascript:editaccoun t('{0}','history');"
DataNavigateUrlField="Account" />

But we cannot find the way to call
vbscript function.

Any advise, please!

Vadim

*** Sent via Developersdex http://www.developersdex.com ***

Nov 19 '05 #2
Thanks, but this is just general info.

What I need is the way to call vbscript
function from hyperlink column of datagrid
in asp.net

Vadim

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #3
> What I need is the way to call vbscript
function from hyperlink column of datagrid
in asp.net


Pass a querystring and grab that on postback?

-Darrel
Nov 19 '05 #4
if editaccount was a vbscript function that took 2 string args, you have the
syntax, or the javascript routine can call the vbscript routine.

-- bruce (sqlwork.com)

"Vadim Vulfov" <va****@intelsysinc.com> wrote in message
news:uH**************@TK2MSFTNGP09.phx.gbl...
We have DataGrid control and hyperlinkcolumn column type in ASP.NET
application.

We can successfully trigger javascript function on the hyperlinkcolumn
click by using:

<asp:HyperLinkColumn headertext="" text="Profile"
DataNavigateUrlFormatString="javascript:editaccoun t('{0}','history');"
DataNavigateUrlField="Account" />

But we cannot find the way to call
vbscript function.

Any advise, please!

Vadim

*** Sent via Developersdex http://www.developersdex.com ***

Nov 19 '05 #5

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

Similar topics

3
by: David Shorthouse | last post by:
Hey folks, Not an off-topic posting.....since I was shot-down in an earlier post...this one's legit. How do I go about calling a server-side vbscript within a client-side javascript function?...
3
by: JoeK | last post by:
Hey all, I am automating a web page from Visual Foxpro. I can control all the textboxes, radio buttons, and command buttons using syntax such as: ...
4
by: THY | last post by:
Hi, I need to know how can I call JavaScript or VBscript function from a sub ... so I can display a pop-up when a sub is executed ... thanks
0
by: keys4worship | last post by:
I have a datagrid that contains among other things an SSN and a button. I have added an onclick attribute to the button that works with vbscript to query information on 3270 Pcomm emulator. The...
1
by: Terry Olsen | last post by:
I pulled the following client-side script from an ASP page. <script language="vbscript"> function doNetOp() Dim WshShell, oExec, HostIP Set WshShell = CreateObject("WScript.Shell") Set oExec =...
1
by: keith.walter | last post by:
My first asp.net app is almost "done" and I am stuck. Here is my situation: I have a "mother" page add_customer.aspx and a"child" user control add_group.ascx. On the mother page is an "add...
5
by: Stan Sainte-Rose | last post by:
Hi, How can I call an event from an action. Example, I want to call the datagrid.Double.click event when a button is pressed. Stan.
19
by: thisis | last post by:
Hi All, i have this.asp page: <script type="text/vbscript"> Function myFunc(val1ok, val2ok) ' do something ok myFunc = " return something ok" End Function </script>
0
by: BooGhost | last post by:
Some background: 1. I've got a master page with an asp:Menu using an XML sitemap. 2. A page that uses the master page has an object tag (instancing an activex control) 3. This activex control...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

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.