Click here to Skip to main content
15,908,775 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: POST To a different site in asp.net and vb.net Pin
M LN Rao26-Sep-06 2:12
M LN Rao26-Sep-06 2:12 
AnswerRe: POST To a different site in asp.net and vb.net Pin
dgonzale26-Sep-06 2:31
dgonzale26-Sep-06 2:31 
GeneralRe: POST To a different site in asp.net and vb.net Pin
M LN Rao26-Sep-06 2:33
M LN Rao26-Sep-06 2:33 
AnswerRe: POST To a different site in asp.net and vb.net Pin
dgonzale26-Sep-06 2:49
dgonzale26-Sep-06 2:49 
GeneralRe: POST To a different site in asp.net and vb.net Pin
jorsh26-Sep-06 7:35
jorsh26-Sep-06 7:35 
AnswerRe: POST To a different site in asp.net and vb.net Pin
dgonzale26-Sep-06 16:16
dgonzale26-Sep-06 16:16 
QuestionProblem in opening pdf file in asp.net Pin
mhussam26-Sep-06 1:59
mhussam26-Sep-06 1:59 
AnswerRe: Problem in opening pdf file in asp.net Pin
M LN Rao26-Sep-06 2:09
M LN Rao26-Sep-06 2:09 
What do you want to do exactly?
Whether you want to display the file or download.
If you want to display the .pdf on the client side and there is a probability that user may not install it on system. In that case add download acrobat-plug-in.

For downloading ..........

Dim dwnURL As String = CType(sender, LinkButton).CommandArgument<br />
        If dwnURL.Length > 0 Then<br />
            Dim filepath As String<br />
            filepath = System.Web.Hosting.HostingEnvironment.MapPath(dwnURL)<br />
            'Check whether the download file exists or not. if does not exists, send auto-generated email to the admin specificying<br />
            'the at which URL it occured and the file which is not found.<br />
            If Not System.IO.File.Exists(filepath) Then<br />
                Session("FNN_AbsolutePath") = filepath<br />
                Session("BackURL") = Request.UrlReferrer<br />
                Response.Redirect("~/BrokenLink.aspx")<br />
            End If<br />
            Dim onlyFileName As String = System.IO.Path.GetFileName(filepath)<br />
            ' Open File<br />
            If Not System.IO.File.Exists(filepath) Then<br />
                ' popFileNotFound.Link = "" ' ResolveUrl("~/admin/email.aspx")<br />
                'popNewMail.Title = GetGlobalResourceObject("mail", "newMail")<br />
                ' popNewMail.Message = String.Format(GetGlobalResourceObject("mail", "newMailMessage"), _newMailCount.ToString())<br />
                popFileNotFound.AutoShow = True<br />
                popFileNotFound.Visible = True<br />
                Exit Sub<br />
            End If<br />
            Dim fs As New IO.FileStream(filepath, IO.FileMode.Open)<br />
            Dim bytes(fs.Length) As Byte<br />
            fs.Read(bytes, 0, fs.Length)<br />
            fs.Close()<br />
            ' Send the file as Response<br />
            Response.AddHeader("Content-disposition", "attachment; filename=" & onlyFileName)<br />
            Response.ContentType = "application/octet-stream"<br />
            Response.BinaryWrite(bytes)<br />
            Response.End()<br />
        End If

GeneralRe: Problem in opening pdf file in asp.net Pin
mhussam29-Sep-06 21:21
mhussam29-Sep-06 21:21 
QuestionSetting Password History for Active directory via C# Pin
sheetswein26-Sep-06 1:53
sheetswein26-Sep-06 1:53 
AnswerRe: Setting Password History for Active directory via C# Pin
Farid_200626-Sep-06 2:02
Farid_200626-Sep-06 2:02 
Questionsite restriction to 4 computers Pin
_tasleem26-Sep-06 1:39
_tasleem26-Sep-06 1:39 
Questionvirtual stock game-need help Pin
zaptd26-Sep-06 1:34
zaptd26-Sep-06 1:34 
Questionhow can make my asp.net web page browser compitable Pin
Deepak the Cool26-Sep-06 1:28
Deepak the Cool26-Sep-06 1:28 
AnswerRe: how can make my asp.net web page browser compitable Pin
Exelioindia26-Sep-06 1:47
Exelioindia26-Sep-06 1:47 
AnswerRe: how can make my asp.net web page browser compitable Pin
Guffa26-Sep-06 3:01
Guffa26-Sep-06 3:01 
QuestionSql server installed or not Pin
amaneet26-Sep-06 0:16
amaneet26-Sep-06 0:16 
QuestionTime Display Pin
kirthikirthi25-Sep-06 23:53
kirthikirthi25-Sep-06 23:53 
AnswerRe: Time Display Pin
Exelioindia26-Sep-06 1:53
Exelioindia26-Sep-06 1:53 
GeneralRe: Time Display Pin
kirthikirthi26-Sep-06 18:54
kirthikirthi26-Sep-06 18:54 
GeneralRe: Time Display Pin
Exelioindia26-Sep-06 20:45
Exelioindia26-Sep-06 20:45 
GeneralRe: Time Display Pin
kirthikirthi27-Sep-06 18:34
kirthikirthi27-Sep-06 18:34 
AnswerRe: Time Display Pin
Exelioindia27-Sep-06 19:15
Exelioindia27-Sep-06 19:15 
GeneralRe: Time Display Pin
kirthikirthi27-Sep-06 21:57
kirthikirthi27-Sep-06 21:57 
Question'The server threw an exception Pin
vivekdeshpande25-Sep-06 23:48
vivekdeshpande25-Sep-06 23:48 

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.