Indresh says:
Please use below code.
string testurl = Page.Request.Url.OriginalString.Substring(0, Page.Request.Url.OriginalString.LastIndexOf( "/" ));
_cmd.Parameters.AddWithValue( "@Description" ,CKdes.Text.Replace( "src=" + '"' , "src= " + '" ' + testurl))
|
ok I worte your code but it put this code in database:
<img alt="" src="http://mysite.com:80/Admin/ckfinder/userfiles/images/1(2).png" style="float:right; height:216px; width:150px" />
becuse page that I insert data is in admin folder so it put http://mysite.com:80/admin/ckfinder/usersfile/images
but I want it just add http://mysite.com before /ckfinder/usersfile/images
like: http://mysite.com /ckfinder/usersfile/images
Best regards
neda