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. DIV Formating

DIV Formating

Scheduled Pinned Locked Moved ASP.NET
helpsysadmintutorial
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.
  • S Offline
    S Offline
    Sasmi_Office
    wrote on last edited by
    #1

    Dear Friend, I have one control DIVSION (Server side) on more then 20 forms, i am using that control as Error Message or Successful message control all working fine but now i want that control work dynamic as if there is error message it should show message in red coloured and so on... I know i can manually go each and every control and set this but i want to handle it with some smart way by using base class of that form but don't know how to capture Error and Successful message, can any one help me regarding the same Thanks and Regards Sasmi

    A 1 Reply Last reply
    0
    • S Sasmi_Office

      Dear Friend, I have one control DIVSION (Server side) on more then 20 forms, i am using that control as Error Message or Successful message control all working fine but now i want that control work dynamic as if there is error message it should show message in red coloured and so on... I know i can manually go each and every control and set this but i want to handle it with some smart way by using base class of that form but don't know how to capture Error and Successful message, can any one help me regarding the same Thanks and Regards Sasmi

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      Create a method in the BaseClass which might find the control from the page and show the proper error message if found. Use this.FindControl("hypMainMenu"); :)

      Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


      My Latest Articles-->** Simplify Code Using NDepend
      Basics of Bing Search API using .NET
      Microsoft Bing MAP using Javascript

      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