Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. error message on master page

error message on master page

Scheduled Pinned Locked Moved ASP.NET
databasehelpcsharpjavascript
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    classy_dog
    wrote on last edited by
    #1

    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?

    J 1 Reply Last reply
    0
    • C classy_dog

      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?

      J Offline
      J Offline
      jkirkerx
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups