error message on master page
-
In a vb.net 2010 web form application, I have the start of code for a master page listed below:
#Region "Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load"
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load\_master = CType(Page.Master, MasterPage) \_master.PageTitle = "Attendance"
In the master page, there is an area to display error messages. When I have decided to place an
error message in the master page, I have made a call to a (static) shared function from an ajax call
to obtain data from the sql server database. The ajax call is made from a javascript function.Thus can you tell me if there is away that I can access the error section of the of the master page?
Basically I need to have the master page with scope to access.
Thus can you tell me if this is possbile and/or show me the code on how to solve my problem? -
In a vb.net 2010 web form application, I have the start of code for a master page listed below:
#Region "Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load"
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load\_master = CType(Page.Master, MasterPage) \_master.PageTitle = "Attendance"
In the master page, there is an area to display error messages. When I have decided to place an
error message in the master page, I have made a call to a (static) shared function from an ajax call
to obtain data from the sql server database. The ajax call is made from a javascript function.Thus can you tell me if there is away that I can access the error section of the of the master page?
Basically I need to have the master page with scope to access.
Thus can you tell me if this is possbile and/or show me the code on how to solve my problem?One of us is confused here. I could of sworn that an AJAX call via JQuery using Webforms can only call a web service, and not just a shared function. So either your page load is calling a shared function and generating the HTML needed to display on the master page, or you have a JQuery function that loads on DOM ready that calls a Web Service, in which it changes the DOM elements to reflect the HTML. Either it done on the server side, and included in the HTTP request for the page. Or it done on the client side, and it's done after the page load.