I want to add an expression to an ASP.NET Page Control like 'datas are shown which between 10 to 20 '

StackOverflow https://stackoverflow.com/questions/21780636

문제

I have an ASP.NET Page Control in GridView. it works normally but I want to add in bottom of the page an expression which gives knowlegde about which datas are shown. I added the page codes in gridview tags : this works normally but I want to add expression. How can I add a dynamic expression using C# server side codes??

올바른 솔루션이 없습니다

다른 팁

It would be helpful if you give some code sample showing what you are doing, and what you are expect.

You can find usefull information here: Embedded Code Blocks in ASP.NET Web Pages

Use for Example

<div>
    From <%# DateTime.Now.ToString() %> to <%# DateTime.Now.AddDays(1).ToString() %>
</div>

Or try such way : http://www.w3schools.com/ASPnet/showfile_c.asp?filename=try_webpages_cs_001

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top