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