dc

dc

  • NA
  • 663
  • 0

javascript alert message

Sep 17 2016 6:38 PM
In a vb.net 2010 web form application, I want to add an alert message. However I think the level where the javascript alert message can be accessed at is at the wrong level. <div></div><div>Thus can you show me what I can do to get the javascript alert message at the level I need it to be at? </div><div></div><div>Thus can you tell me what level the javascript alert message can be accessed from the code listed below? </div><div></div><div>Here is the code I am referring to:</div><div></div><div>In a vb.net 2010 web form application, I have the following code:<br />&lt;%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="default.aspx.vb" Inherits="attendanceletters_default" %&gt;<br />&lt;%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %&gt;<br />&lt;asp:Content ID="Content1" ContentPlaceHolderID="MPHead" Runat="Server"&gt;<br /> &lt;script src="../scripts/jquery-1.3.2.js" type="text/javascript"&gt;&lt;/script&gt;<br /> &lt;script src="../scripts/jquery-ui-1.7.2.custom.min.js" type="text/javascript"&gt;&lt;/script&gt; <br /> &lt;%If (False) Then%&gt;<br /> &lt;script src="../scripts/jquery-1.3.2.js" type="text/javascript"&gt;&lt;/script&gt;<br /> &lt;% End If%&gt; <br /> &lt;script src="../scripts/site.js" type="text/javascript"&gt;&lt;/script&gt;<br /> &lt;script src="../scripts/json2.js" type="text/javascript"&gt;&lt;/script&gt; <br /> function GetStudentLetterTemplate(schoolyear, schoolnum, milestone, studentlink, language, semester) {<br />alert('schoolyear: ' + schoolyear + 'schoolnum: ' + schoolnum + 'milestone: ' + milestone + 'studentlink: ' + studentlink + 'language: ' + language + 'semester: ' + semester);<br /> if (milestone == '999') {<br /> alert('You have selected student(s) having more than one CAIP entry for the current school year');<br /> return;<br /> }<br />}</div>

Answers (4)