Click here to Skip to main content
15,895,794 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how can i convert this url taken from the database using linq to String??

C#
var x in nowmov
playbtton.OnClientClick = setURL(x.Trailer_URL);


x.Trailer_URL is the url
Posted
Comments
Dr.Walt Fair, PE 22-Aug-11 12:20pm    
What is the value of x.Trailer_URL?

Uhh ... x.Trailer_URL.ToString?
 
Share this answer
 
Comments
aroshlakshan 22-Aug-11 11:48am    
it doesn't work man. already tried..
MSDN String.convert[^]

C#
string URL_String = String.convert(Trailer_URL);


Would this work for you?
 
Share this answer
 
What type of variable is x in your question? It should be a Uri[^] object, which includes a ToString() method.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900