J
Jim Hammond
The script function in the code below works fine when it is JavaScript, but
when I try to use C#, the function doesn't get executed.
<body MS_POSITIONING="GridLayout">
<form id="Form1" name="Form1" method="post"
encType="multipart/form-data" runat="server" VIEWASTEXT>
<asp:button id="Button3" runat="server" Text="TAKE PHOTO"></asp:button>
</form>
<script language="C#">
void TakePicture()
{
}
</script>
</body>
I don't know if this is relevant, but I enable the button to call the
JavaScript function TakePicture() with the following C# code in the web
form:
private void Page_Load(object sender, System.EventArgs e)
{
if (!IsPostBack)
Button3.Attributes.Add("onclick", "TakePicture()");
}
when I try to use C#, the function doesn't get executed.
<body MS_POSITIONING="GridLayout">
<form id="Form1" name="Form1" method="post"
encType="multipart/form-data" runat="server" VIEWASTEXT>
<asp:button id="Button3" runat="server" Text="TAKE PHOTO"></asp:button>
</form>
<script language="C#">
void TakePicture()
{
}
</script>
</body>
I don't know if this is relevant, but I enable the button to call the
JavaScript function TakePicture() with the following C# code in the web
form:
private void Page_Load(object sender, System.EventArgs e)
{
if (!IsPostBack)
Button3.Attributes.Add("onclick", "TakePicture()");
}