Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 24th, 2006, 04:20 AM
Authorized User
 
Join Date: Aug 2006
Location: Mumbai, Maharastra, India.
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default calling javascript as well as codebehind code

hi friends

i have one datagrid in which i have one linkbutton
on click event of this link button i want to show one pop up
in pop up i am showing one image
this image will be change as per link buttons text
for that i write one public method
in which i am changing the image which is in server as per linkbuttons text

now i want to show this image is in another popup form /window
for that i write one javascript

how can i call this javascript from the public method which i have written for changing images

or any other method by wchich i can show popup window

please remember i want ot run codebehind as well as javascript
from datagrids linkbutton click event

thanks

have a nice day

 
Old November 25th, 2006, 01:19 PM
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hai manisha,
The answer is pretty simple.
Use
linkbtn.attributes.add("onclick","ChangeImage();") ;
In the server side event where u want and write the logic in the html as
<head>
<script language="javascript">
function ChangeImage()
{
  //Logic here
}
</script>
</head>
I think it is clear for u.If u have any doubt just ping me
i will help u
Have a nice day
Bye
:)




Similar Threads
Thread Thread Starter Forum Replies Last Post
calling javascript as well as codebehind code k.manisha C# 1 November 27th, 2006 08:47 AM
calling javascript as well as codebehind code k.manisha ASP.NET 1.x and 2.0 Application Design 0 November 24th, 2006 04:28 AM
javascript as well as codebehind code k.manisha .NET Framework 1.x 0 November 24th, 2006 04:23 AM
calling a codebehind function on onblur event vishnupriya.kamalakaram ASP.NET 1.0 and 1.1 Basics 2 July 7th, 2006 08:25 AM
Calling codebehind C# function from aspx page ravindrasingh77 BOOK: ASP.NET Website Programming Problem-Design-Solution 2 March 16th, 2005 12:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.