471,354 Members | 1,015 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 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 5612
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

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.