开发者

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"]%>}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜