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. Why using DataBind ( )?!!!

Why using DataBind ( )?!!!

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

    I’m developing a Data-Bound Web Control and I read all articles about this subject but still I have this problem, I don’t know why do we need the DataBind ( ) function to bind the data to the control, why don’t we do it in the Render function or anywhere else, all what I got from articles that it give the user the ability to specify the time of binding the data to the control but why is that???

    M 1 Reply Last reply
    0
    • H Hercules01

      I’m developing a Data-Bound Web Control and I read all articles about this subject but still I have this problem, I don’t know why do we need the DataBind ( ) function to bind the data to the control, why don’t we do it in the Render function or anywhere else, all what I got from articles that it give the user the ability to specify the time of binding the data to the control but why is that???

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, Here are just my private thoughts on this issue. When you develop a data-bound control, your control inherits the Control either directly or indirectly, and your control needs to override the DataBind method to provide data-binding logic. When it is called on a server control, this method resolves all data-binding expressions in the server control and in any of its child controls. I'm not sure whether you have tried these links or not, but I think that might help you a bit anyway. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebUIControlClassDataBindTopic.asp[^] http://support.microsoft.com/kb/313481/EN-US[^]

      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