Hi guys, I have the followin problem.
I need to execute from the .aspx file a code-behind function on onClick event.
When I run the project, the ASP sentence is beign execute before show the whole HTML or click the tag.
How can I avoid this? I really need to run this code-behind function after clicking the DIV dat.
I would appreciate any kind of help.
Thank you in advance.
I need to execute from the .aspx file a code-behind function on onClick event.
When I run the project, the ASP sentence is beign execute before show the whole HTML or click the tag.
How can I avoid this? I really need to run this code-behind function after clicking the DIV dat.
I would appreciate any kind of help.
Thank you in advance.
Code:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="_Default" %>
<%@ Import Namespace="System.IO" %>
<HTML>
<HEAD>
</HEAD>
<body>
<form id="Form1" runat="server">
<input type="hidden" id="perguntarAbrir" value="test"/>
<div id="ejemploHTML" onclick="<% preguntarAbrir("C:\\var\\ejemplo.pdf"); %>; ">HTML Link</div><br />
<br />
</form>
</body>
</HTML>
Comment