Confused between differences in ASP.NET tags

3 posts, 1 answers
  1. Winney
    Winney avatar
    2 posts
    Member since:
    Apr 2013

    Posted 18 Apr 2013 Link to this post

    I've been unable to find an answer to what I would think should be a simple syntax question, but what's the difference between the following tags:  <%# .... %>  and <%= ..... %>?

    My hunch is that the only difference is after which page function the data is retrieved; however, I'm not about this.
  2. Answer
    Jayesh Goyani
    Jayesh Goyani avatar
    2733 posts
    Member since:
    May 2010

    Posted 20 Apr 2013 Link to this post

    Hello,

     <%# .... %>   : Access CleintID/UniqueID/Eval/Bind
     <%= ..... %> : Access Property (which was defined by us in backend)


    Thanks,
    Jayesh Goyani
  3. Winney
    Winney avatar
    2 posts
    Member since:
    Apr 2013

    Posted 22 Apr 2013 Link to this post

    Makes sense, thanks!
Back to Top