Click here to Skip to main content
15,885,435 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: SiteMap SubNodes are not shown in menu control. Pin
Asif Rehman3-Nov-10 4:15
Asif Rehman3-Nov-10 4:15 
QuestionNeed help in Window service timer sheduling Pin
anandr2104843-Nov-10 1:06
anandr2104843-Nov-10 1:06 
AnswerRe: Need help in Window service timer sheduling Pin
David Mujica3-Nov-10 3:34
David Mujica3-Nov-10 3:34 
GeneralRe: Need help in Window service timer sheduling Pin
anandr21048410-Nov-10 18:38
anandr21048410-Nov-10 18:38 
Questionweb.config Pin
Any_India2-Nov-10 20:37
Any_India2-Nov-10 20:37 
AnswerRe: web.config Pin
<<Tash18>>2-Nov-10 21:23
<<Tash18>>2-Nov-10 21:23 
Questiondownload link for mobile Pin
behzadcp2-Nov-10 20:32
professionalbehzadcp2-Nov-10 20:32 
AnswerRe: download link for mobile Pin
behzadcp2-Nov-10 22:14
professionalbehzadcp2-Nov-10 22:14 
my code is
<br />
{<br />
 string filepath = Server.MapPath("test.bhd");<br />
<br />
        FileInfo file = new FileInfo(filepath);<br />
<br />
        if (file.Exists)<br />
        {<br />
            Response.ClearContent();<br />
<br />
            Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);<br />
<br />
            Response.AddHeader("Content-Length", file.Length.ToString());<br />
<br />
            Response.ContentType = ReturnExtension(file.Extension.ToLower());<br />
<br />
            Response.TransmitFile(file.FullName);<br />
<br />
            Response.End();<br />
        }<br />
}<br />
 private string ReturnExtension(string fileExtension)<br />
    {<br />
        switch (fileExtension)<br />
        {<br />
            case ".htm":<br />
            case ".html":<br />
            case ".log":<br />
                return "text/HTML";<br />
            case ".txt":<br />
                return "text/plain";<br />
            case ".doc":<br />
                return "application/ms-word";<br />
            case ".tiff":<br />
            case ".tif":<br />
                return "image/tiff";<br />
            case ".asf":<br />
                return "video/x-ms-asf";<br />
            case ".avi":<br />
                return "video/avi";<br />
            case ".zip":<br />
                return "application/zip";<br />
            case ".xls":<br />
            case ".csv":<br />
                return "application/vnd.ms-excel";<br />
            case ".gif":<br />
                return "image/gif";<br />
            case ".jpg":<br />
            case "jpeg":<br />
                return "image/jpeg";<br />
            case ".bmp":<br />
                return "image/bmp";<br />
            case ".wav":<br />
                return "audio/wav";<br />
            case ".mp3":<br />
                return "audio/mpeg3";<br />
            case ".mpg":<br />
            case "mpeg":<br />
                return "video/mpeg";<br />
            case ".rtf":<br />
                return "application/rtf";<br />
            case ".asp":<br />
                return "text/asp";<br />
            case ".pdf":<br />
                return "application/pdf";<br />
            case ".fdf":<br />
                return "application/vnd.fdf";<br />
            case ".ppt":<br />
                return "application/mspowerpoint";<br />
            case ".dwg":<br />
                return "image/vnd.dwg";<br />
            case ".msg":<br />
                return "application/msoutlook";<br />
            case ".xml":<br />
            case ".sdxl":<br />
                return "application/xml";<br />
            case ".xdp":<br />
                return "application/vnd.adobe.xdp+xml";<br />
            default:<br />
                return "application/octet-stream";<br />
        }<br />
    }<br />

QuestionJavascript confirm box with c# Pin
<<Tash18>>2-Nov-10 19:40
<<Tash18>>2-Nov-10 19:40 
QuestionHow to trace which hidden control's validator is failing? Pin
Rafferty Uy2-Nov-10 15:44
Rafferty Uy2-Nov-10 15:44 
AnswerRe: How to trace which hidden control's validator is failing? Pin
Brij2-Nov-10 18:29
mentorBrij2-Nov-10 18:29 
GeneralRe: How to trace which hidden control's validator is failing? Pin
Rafferty Uy2-Nov-10 20:54
Rafferty Uy2-Nov-10 20:54 
QuestionExporting Datasets Into Multiple Sheets In Excel Pin
raghvendrapanda2-Nov-10 0:50
raghvendrapanda2-Nov-10 0:50 
AnswerRe: Exporting Datasets Into Multiple Sheets In Excel Pin
thatraja2-Nov-10 2:08
professionalthatraja2-Nov-10 2:08 
GeneralRe: Exporting Datasets Into Multiple Sheets In Excel Pin
raghvendrapanda4-Nov-10 3:59
raghvendrapanda4-Nov-10 3:59 
Questionhow to create a dynamic session Pin
vishnukamath1-Nov-10 23:48
vishnukamath1-Nov-10 23:48 
AnswerRe: how to create a dynamic session Pin
NeverHeardOfMe2-Nov-10 0:07
NeverHeardOfMe2-Nov-10 0:07 
GeneralRe: how to create a dynamic session Pin
vishnukamath2-Nov-10 21:44
vishnukamath2-Nov-10 21:44 
AnswerRe: how to create a dynamic session Pin
Brij2-Nov-10 0:12
mentorBrij2-Nov-10 0:12 
AnswerRe: how to create a dynamic session Pin
Sujith C Jose2-Nov-10 0:55
Sujith C Jose2-Nov-10 0:55 
QuestionUFrame Pin
Jassim Rahma1-Nov-10 21:41
Jassim Rahma1-Nov-10 21:41 
AnswerRe: UFrame Pin
thatraja1-Nov-10 21:47
professionalthatraja1-Nov-10 21:47 
Questionproblem in timer Pin
Jassim Rahma1-Nov-10 21:06
Jassim Rahma1-Nov-10 21:06 
AnswerRe: problem in timer Pin
thatraja1-Nov-10 21:22
professionalthatraja1-Nov-10 21:22 
QuestionShowing error message Pin
future38391-Nov-10 15:43
future38391-Nov-10 15:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.