Search This Blog
Friday, February 27, 2009
Open a PDF file using VB.NET in an UpdatePanel
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/
Use single connection string in Project & Class Library in same Solution
I used while using LINQ to SQL classes and wanted to have only one connection string in the project's web.config and no other connection string in app.config of the DAL class library project
http://fuchangmiao.blogspot.com/2008/11/linq-appconfig-vs-webconfig.html
http://ddkonline.blogspot.com/2008/02/set-connection-string-in-linq-dbml-file.html
http://blogs.msdn.com/jongallant/archive/2007/11/25/linq-and-web-application-connection-strings.aspx
http://geekswithblogs.net/vivek/archive/2007/02/24/107209.aspx
Pass Parameters to SSRS reports programmatically
Pass parameters to SQL Server Reporting Services Report programmatically:
http://stackoverflow.com/questions/368766/how-to-pass-parameters-to-ssrs-report-programmatically
Friday, February 20, 2009
Thursday, February 19, 2009
Wednesday, February 18, 2009
Method 'System.Object CompareObjectEqual(System.Object, System.Object, Boolean)' has no supported translation to SQL.
http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/72d3dc56-ad25-439e-a7cc-22d6dcf94f0a
http://66.129.67.4/p/1309841/2576463.aspx
I was getting the above error on calling db.TableName.Single(Function(p) p.ColumnName= valueObj)
Turned out that I had to Convert the valueObj to the respective datatype because valueObj was retrieved as a result of a similar linq expression and was declared as
Dim valueObj= db.TableName0.Single(Function(p) p.ColumnName= valueObj0)
Tuesday, February 17, 2009
Monday, February 16, 2009
Friday, February 13, 2009
Thursday, February 12, 2009
LinqDataSource & multiple tables
http://forums.asp.net/p/1355873/2784407.aspx
http://www.devx.com/dotnet/Article/37065/1954
http://weblogs.asp.net/toddanglin/archive/2007/09/18/using-the-linqdatasource-a-practical-look.aspx
http://stackoverflow.com/questions/32433/linq-select-with-multiple-tables
http://forums.asp.net/t/1301850.aspx
http://stackoverflow.com/questions/66094/net-35-linq-datasource-and-joins
http://www.beansoftware.com/ASP.NET-Tutorials/LINQDataSource-Control.aspx
Wednesday, February 11, 2009
Using ASP.NET Hidden Fields to pass values between ASP.NET and Javascript
Using ASP.NET Hidden Fields to pass values between ASP.NET and Javascript
Tuesday, February 10, 2009
Show Message Box in VB .NET
Monday, February 9, 2009
Get rid of VbCrLf from your string
http://bytes.com/groups/net-vb/376883-problem-data-split-vbcrlf
This link worked like heaven for me…and resolved my issue I was experiencing for days J
Thursday, February 5, 2009
SubmitChanges() not saving changes
It does not save changes when the table does not have a primary key defined.