468,768 Members | 1,690 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,768 developers. It's quick & easy.

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 5529
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by keys4worship | last post: by
1 post views Thread by Terry Olsen | last post: by
5 posts views Thread by Stan Sainte-Rose | last post: by
reply views Thread by BooGhost | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.