c# - Remove specific string from given URL -
I have a URL example image1-resize.jpg , and I delete the
I am trying to do this:
and save
image1.jpg to the new variable
I How can i
str1 + = " gt; & lt; a href = '# pic' + counter +" '& gt; & Lt; Img src = 'admin / temp / hotelimg / "+ temp_url. ToString () +"' / / gt; & Lt; / A & gt; & Lt; / Li & gt; "; string; stt = temp_url.replace (" - size "," "); str2 + =" & lt; Div id = 'pic' + counter + "'& gt; & lt; img src =' admin / temp / hotelimg /" + stt.ToString () + "'width =' 550 'height =' 370 '/> ; & Lt; / div & gt; ";
This should be your job:
temp_url .replace ("- resize", ""); Note: Always search here before putting a question always, because sometimes it is really easy and requires little research on it.
Comments
Post a Comment