Search This Blog
Friday, February 27, 2009
Open a PDF file using VB.NET in an UpdatePanel
After hours of trying n searching, i finally got it done by the following way:
Use a trigger for UpdatePanel on the button
Register your client side script in the button click even
Sample Code:
(ASCX)
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<triggers>
<asp:postbacktrigger controlid="btnSubmit" />
</triggers>
<ContentTemplate>
(ASCX.CS)
Dim strscriptMF As String
strscriptMF = "<script language=javascript>window.open('" & pdfPathMF & "')</script>"
Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "strScriptMF", strscriptMF)
Reference:
http://forums.asp.net/p/1082431/1605489.aspx#1605489
Use a trigger for UpdatePanel on the button
Register your client side script in the button click even
Sample Code:
(ASCX)
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<triggers>
<asp:postbacktrigger controlid="btnSubmit" />
</triggers>
<ContentTemplate>
(ASCX.CS)
Dim strscriptMF As String
strscriptMF = "<script language=javascript>window.open('" & pdfPathMF & "')</script>"
Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "strScriptMF", strscriptMF)
Reference:
http://forums.asp.net/p/1082431/1605489.aspx#1605489
Thursday, February 26, 2009
Method 'System.Object CompareObjectEqual(System.Object, System.Object, Boolean)' has no supported translation to SQL.
Make sure you are converting the objects used in the line as per required and also make sure that the object names are not repeating.
Wednesday, February 25, 2009
Scaling your Remote Desktop Screen
I wanted to avoid the scroll bars when I connected to a remote PC and modified the window size according to my requirements. Here z how to do that
http://llemarie.wordpress.com/2007/11/01/tip-scaling-your-remote-desktop-session/
Subscribe to:
Posts (Atom)