i am using <asp:fileUpload>to upload the image, when i browse this it allow to save any file format, i want to save this only in png and jpg format. and also limit the size with 1MB.
please help me how i define the file format, so it shows in the dropdown list when i browse .
aspx:
 <ContentTemplate>         <div class="uploadFile_Popup" id="upBlobUpload" runat="server">             <div style="width: 100%; text-align:  Go to the complete details ...