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

ASP.NET

 
AnswerRe: If else condition fails, in VB.net Pin
sudevsu7-Jan-15 10:05
sudevsu7-Jan-15 10:05 
GeneralRe: If else condition fails, in VB.net Pin
Vimalsoft(Pty) Ltd12-Jan-15 0:29
professionalVimalsoft(Pty) Ltd12-Jan-15 0:29 
GeneralRe: If else condition fails, in VB.net Pin
sudevsu12-Jan-15 2:38
sudevsu12-Jan-15 2:38 
GeneralRe: If else condition fails, in VB.net Pin
Vimalsoft(Pty) Ltd12-Jan-15 3:42
professionalVimalsoft(Pty) Ltd12-Jan-15 3:42 
GeneralRe: If else condition fails, in VB.net Pin
sudevsu12-Jan-15 4:32
sudevsu12-Jan-15 4:32 
GeneralRe: If else condition fails, in VB.net Pin
Vimalsoft(Pty) Ltd12-Jan-15 5:12
professionalVimalsoft(Pty) Ltd12-Jan-15 5:12 
AnswerRe: If else condition fails, in VB.net Pin
ZurdoDev7-Jan-15 9:11
professionalZurdoDev7-Jan-15 9:11 
QuestionError on clicking Linkbutton of Gridview Pin
sudevsu7-Jan-15 6:47
sudevsu7-Jan-15 6:47 
How to solve this error
Error:
Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.

My ASPX:
XML
<asp:UpdatePanel ID="Upnl1" runat="server">
<Triggers>
 <asp:PostBackTrigger ControlID="btnAddLineItems" />
</Triggers>
 <ContentTemplate>
    <div>
    </div>
    <asp:panel>
    <table>
        txt1
        txt2
        ddl1
        ddl2
        File upload
        Button Add new Items
    </table>
    </asp:panel>

    <asp:updatepanel>
        <ContentTemplate>
        <Gridview>
        <Boundfield 1=txt1>
        <Boundfield 2=txt2>
        <Boundfield 3=ddl1>
        <Boundfield 4=ddl3>
        <Templatefield Link button="Download">
        </Gridview>
        </ContentTemplate>
    <asp:updatepanel>

 </ContentTemplate>
</asp:UpdatePanel>


LinkbuttonClick Event:
VB
Dim filePath As String = CType(sender, LinkButton).CommandArgument
       Response.ContentType = ContentType
       Response.AppendHeader("Content-Disposition", ("attachment; filename=" + Path.GetFileName(filePath)))
       Response.WriteFile(filePath)
       Response.End()

Your help is much appreciated.
Thanks
Happy Coding!

AnswerRe: Error on clicking Linkbutton of Gridview Pin
sudevsu7-Jan-15 7:15
sudevsu7-Jan-15 7:15 
AnswerRe: Error on clicking Linkbutton of Gridview Pin
Atish K. Singh26-Jan-15 21:58
professionalAtish K. Singh26-Jan-15 21:58 
QuestionSimple Table Reservation Pin
Vmortis7-Jan-15 2:26
Vmortis7-Jan-15 2:26 
AnswerRe: Simple Table Reservation Pin
sudevsu7-Jan-15 6:50
sudevsu7-Jan-15 6:50 
GeneralRe: Simple Table Reservation Pin
Vmortis12-Jan-15 6:14
Vmortis12-Jan-15 6:14 
GeneralRe: Simple Table Reservation Pin
Richard Deeming12-Jan-15 7:04
mveRichard Deeming12-Jan-15 7:04 
GeneralRe: Simple Table Reservation Pin
Vmortis12-Jan-15 8:07
Vmortis12-Jan-15 8:07 
GeneralRe: Simple Table Reservation Pin
Richard Deeming12-Jan-15 8:55
mveRichard Deeming12-Jan-15 8:55 
QuestionCan i use this scheduler for my app? Pin
Namith Krishnan E6-Jan-15 17:59
professionalNamith Krishnan E6-Jan-15 17:59 
AnswerRe: Can i use this scheduler for my app? Pin
Anurag Gandhi10-Jan-15 1:55
professionalAnurag Gandhi10-Jan-15 1:55 
QuestionCan anyone look at Quick questions. I don't want to Repost the question. Pin
sudevsu6-Jan-15 9:12
sudevsu6-Jan-15 9:12 
AnswerRe: Can anyone look at Quick questions. I don't want to Repost the question. Pin
ZurdoDev6-Jan-15 10:44
professionalZurdoDev6-Jan-15 10:44 
AnswerRe: Can anyone look at Quick questions. I don't want to Repost the question. Pin
Richard MacCutchan7-Jan-15 0:48
mveRichard MacCutchan7-Jan-15 0:48 
GeneralRe: Can anyone look at Quick questions. I don't want to Repost the question. Pin
sudevsu7-Jan-15 2:29
sudevsu7-Jan-15 2:29 
QuestionDate picker & text box Pin
Member 113538205-Jan-15 7:39
Member 113538205-Jan-15 7:39 
AnswerRe: Date picker & text box Pin
ZurdoDev5-Jan-15 8:23
professionalZurdoDev5-Jan-15 8:23 
AnswerRe: Date picker & text box Pin
Swinkaran5-Jan-15 10:38
professionalSwinkaran5-Jan-15 10:38 

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.