2
Answers

"str1" + "str2" + "str3" + var1 +"str4"+var2 : Is proper c# string concatination

Photo of pavithran

pavithran

20y
3.3k
1
Hi, "str1" + "str2" + "str3" + var1 +"str4"+var2 : Is proper c# string concatination is there any other better mechanism to concatinate strings in c#. Thanks in advance, pavithran

Answers (2)

0
Photo of Suthish Nair
NA 31.7k 4.6m 13y
Hope your thread resolved here.. http://www.c-sharpcorner.com/Forums/Thread/127863/how-to-delete-image-according-to-intial-string-of-the-im.aspx
0
Photo of Suthish Nair
NA 31.7k 4.6m 13y
 
 Session.Abandon method destroys all the objects stored in a Session object and releases their  resources. You need write separate logic to delete the physical files.
0
Photo of sagar Bhosale
NA 167 147.2k 13y
sir in this Session.Abandon(); is neccessary for delete images or file
0
Photo of Suthish Nair
NA 31.7k 4.6m 13y

System
.IO.Path.GetTempFileName()
will give you the temp folder with files.

You needs to do
if (File.Exists(sFileNamePath)) { File.Delete(sFileNamePath); }


0
Photo of sagar Bhosale
NA 167 147.2k 13y
Thanks Sir , but i want to do this in global.asax . sir is the above code is correct  anything missing from above code how to delete images from temp folder  when user is logout 
0
Photo of Suthish Nair
NA 31.7k 4.6m 13y

 try this link..