datagrid columnlink
-
am having the problem when retreving data from database. i hav a value in database "page'3.aspx". single quotes is there. i retrieve it and displays it in a datagrid as a link.The link displays like page'3.asp but the problem is when im passing dat value as a querystring it i snot taking dat singlequote [<%# DataBinder.Eval(Container.DataItem,"Art_Nr") %>](Add_or_Edit_Article.aspx?ArtNr=<%# DataBinder.EvalContainer.DataItem, "Art_Nr") %>)
-
am having the problem when retreving data from database. i hav a value in database "page'3.aspx". single quotes is there. i retrieve it and displays it in a datagrid as a link.The link displays like page'3.asp but the problem is when im passing dat value as a querystring it i snot taking dat singlequote [<%# DataBinder.Eval(Container.DataItem,"Art_Nr") %>](Add_or_Edit_Article.aspx?ArtNr=<%# DataBinder.EvalContainer.DataItem, "Art_Nr") %>)
oh ho... the problem is that, this code <%# DataBinder.Eval(Container.DataItem,"Art_Nr") %> will act as a c# code and the output of that code will taken as a string so that in a string if we want to add single quotes we should use escape charecter. i think u got the problem -- modified at 6:31 Thursday 9th August, 2007
Sarith...