Click to See Complete Forum and Search --> : Javascript and ASP.NET problem


TrustFly
02-18-2004, 01:19 AM
Basically i having a problem with an image in ASP.net linking it to ASP.net codes..

my situation now is ....i have an image "change date"
i wanna this image link to ASP.net calender, where it will DISPLAY the calender when i CLICK on the image.

So is there any WAys of linking it together or more easier ways to it? or even is it possible to link them together..???

PLS reply me ASAP, i on project basis now...kinda rush here..
hope some 1 could reply me asap...i will be thankful...

buntine
02-19-2004, 01:45 AM
ASP.net is a server-side technology.. You cannot directly link an .NET application to an image.

The best you can do is use HTML's anchor element <a></a>.

Ribeyed
02-19-2004, 03:02 AM
ASP.net is a server-side technology..


I would check this again butine because that is not the case. ASP.NET works in a runtime enviroment therefore is both server and client side.

buntine
02-19-2004, 03:10 AM
True... Thanks for the correction.

TrustFly
02-19-2004, 03:49 AM
Yup you are right ribeyed. ASP.NET works in a runtime enviroment therefore is both server and client side. But is more advantage towards the server side..

Can anyone help me out?
When the user clicks on the image, the calander control is displayed. I have thought of it of using the “on click” event so that no JavaScript is required. However in ASP.NET does not support the “on click” event for image. Thus I’m thinking of using JavaScript. The JavaScript is at the client side to display the calander control when the user clicks on it. As for calander control feature is done at the server side. Can this logic work?

Thankz...

PeOfEo
02-19-2004, 06:12 PM
Originally posted by Ribeyed
I would check this again butine because that is not the case. ASP.NET works in a runtime enviroment therefore is both server and client side. but realying on the java script output from asp.net is a terrible idea. The required feild validators and mageing for example are hidious.