c# - ASP.NET: The server tag is not well formed -
I am trying to get GridView in
progressBar At a time now I have the following without misfortune success:
& lt; Asp: gridview id = "gvshow" runat = "server" automatically generated column = "incorrect" dataname = "progress" width = "100%" & gt; & Lt; Columns & gt; & Lt; ASP: Boundfield datedfield = "progress" header text = "progress" /> & Lt; Asp: TemplateField ShowHeader = "False" & gt; & Lt; ItemTemplate & gt; & Lt; ASP: Little ID = "LB Progress" runat = "server" text = " & gt; & Lt; / ASP: literal & gt; & Lt; / ItemTemplate & gt; & Lt; / ASP: TemplateField & gt; & Lt; / Column & gt; & Lt; / ASP: GridView & gt; resulting in parser error (server tag is not well formed.). If I work with any value without eval it works without any issue, I think I'm missing something here, but I'm not really getting it.
For any reason all your markup is in the form of textual control text so you have problems with quotes Is because you need double quote for text = "" and eval . Personally I have no reason to use it here literally, you can simply use markup, and the problem will be solved:
& gt; Itemized & gt; & Lt; Div class = 'progress' & gt; & Lt; Div class = 'progress-bar' role = 'progress bar' aria-valuenow = '& lt;% # Eval ("progress")%> Area-Valium = '0' Area-Valuemax = '100' style = 'width: 60%;' & Gt; & Lt; Span class = 'sr-only' & gt; 60% complete & lt; / Span & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / ItemTemplate & gt;
Comments
Post a Comment