This is a migrated thread and some comments may be shown as answers.

Confused between differences in ASP.NET tags

2 Answers 60 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Winney
Top achievements
Rank 1
Winney asked on 19 Apr 2013, 01:30 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 20 Apr 2013, 02:55 PM
Hello,

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


Thanks,
Jayesh Goyani
0
Winney
Top achievements
Rank 1
answered on 22 Apr 2013, 03:00 PM
Makes sense, thanks!
Tags
General Discussions
Asked by
Winney
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Winney
Top achievements
Rank 1
Share this question
or