Steps to Trace mobile number 1. Add script to Head in Design Page <script src="http://dotnettricks-abdul.in/Contents/TraceMobile.js" type="text/javascript"></script>…
Collection of Regular expression to validate various file formats :-
1.Regular expression to validate file formats for .mp3 or .MP3
Ex:
string str= /^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))+(.mp3|.MP3|.mpeg|.MPEG|.m3u|.M3U)$/;
2.Regular expression to validate file formats for .doc or .docx
Ex:
string str= /^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))+(.doc|.docx|.DOC|.DOCX)$/;
3.Regular expression to validate file formats for .txt or .TXT
Ex:
string str= /^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))+(.txt|.TXT)$/;
4.Regular expression to validate file formats for .jpeg or .JPEG or .gif or .GIF or .png or .PNG
Ex.
Method for uploading and extracting a zip.
Note:-
1.Please provide the path for saving the zip,dont copy the same text as it given below.
2.Please do not change any syntax of method you have to only change the destination folder path .
public void Upload_And_Extract_ZIP()
{
if (FileUploadControlID.HasFile)
{
string filename = Path.GetFileName(FileUploadControlID.FileName);
string ext = Path.GetExtension(FileUploadControlID.FileName);
string Destination_Folder_Path = “Enter the full folder path where you want to save the zip”;