convert guid tostring in javascript .net
How do I convert guid to string in javascript. I am getting guid from the querystring, and m not able to process it as is. I have tried the following ways to do it but it doesnt seem to work.
var guid = {<%=Request.QueryString["Guid"]%>}.toString();
var guid = <%=Request.QueryString["Guid"]%>.toString();
var guid = (string)<%=Request.开发者_如何学GoQueryString["Guid"]%>;
var guid = (string){<%=Request.QueryString["Guid"]%>};
Any suggestions?
Try quoting the string, this should work...
var guid = '<%=Request.QueryString["Guid"]%>';
Have you tried just:
var guid = {<%=Request.QueryString["Guid"]%>}
精彩评论