Posted on: 10/10/2013 4:43:55 AM | Views : 693

hello assume that i have the following string :

string myString="<div id='mydiv' style='background-image:url('http://myhost.coom/uploads/paper.gif');'>some text bla bla  .... </div>";
and my target is to extract the background image url from that string , by server side (C#.net)  , then add runat='server' to that div to be as follow :

"<div runat='server' id='mydiv' style='background-image:url('http://myhost.coom/uploads/paper.gif');'>some text bla bla  .... </div>";

please note : background-image may be set to null , so i want to check if its contain url.
thanks

Go to the complete details ...