Visual Studio 2008

There are 6 entries for the tag Visual Studio 2008

Dynamically change Body Background-image!

What if you need to dynamically change the Body Background-image based on whether the Page IsPostback? You have a CSS Stylesheet for the page, and that Stylesheet has a background-image defined for the body tag. So what is the [workaround]? You first must define the body tag on the page as a server control. Then you can access the body control via code in your page: 1: protected void Page_Load(object sender, EventArgs e) 2: { 3: if (!IsPostBack) 4: { 5: var rnd = new Random(); 6: // the background ......

Posted On Sunday, December 13, 2009 5:11 PM | Comments (0)

ReportViewer local – rdlc – handle subreports with multiple pages and parameters

1: using System; 2: using System.Collections; 3: using System.Configuration; 4: using System.Data; 5: using System.Linq; 6: using System.Web; 7: using System.Web.Security; 8: using System.Web.UI; 9: using System.Web.UI.HtmlControls; 10: using System.Web.UI.WebControls; 11: using System.Web.UI.WebControls.W... 12: using System.Xml.Linq; 13: using Microsoft.Reporting.WebForms; 14: using Rpt = SchoolDistrict.Registration... 15: 16: public partial class Reports_RegistrationReport : System.Web.UI.Page ......

Posted On Friday, October 9, 2009 12:46 AM | Comments (0)

ReportViewer local - Add a line number to the .rdlc textbox

//Add a line number to the .rdlc textbox: use this formula =RowNumber(nothing) //ReportViewer Conditional Formatting of BorderStyle based on whether anything is in the report. =iif(CountRows()=0,"None","... =iif(CountRows()=0,"None","... =iif(CountRows()=0,"None","... //ReportViewer Conditional Formating and showing the Avg if there are rows in the report. =iif(CountRows()=0,"",(Avg(... & "%")) textbox: name: PageXofY ="Page " & Globals.PageNumber & " of ......

Posted On Sunday, September 13, 2009 7:03 PM | Comments (2)

Implement handlers for the DataGridView control's CellValidating and CellEndEdit events.

The CellValidating event handler is where you determine whether the value of a cell in the SchoolName column is empty. If the cell value fails validation, set the Cancel property of the System.Windows.Forms.DataGr... class to true. This causes the DataGridView control to prevent the cursor from leaving the cell. Set the ErrorText property on the row to an explanatory string. This displays an error icon with a ToolTip that contains the error text. In the CellEndEdit event ......

Posted On Sunday, September 13, 2009 6:53 PM | Comments (0)

How to force update of Intellisense without opening and closing a file in Visual Studio 2008?

In Visual Studio 2008, I periodically see the error in the status bar: ”Error updating JScript Intellisense, see Error list” HOWEVER, there are no errors about this in the Error list! And, the site compiles, runs, and publishes perfectly! Total annoyance! I believe this is an error caused by the inclusion of the JQuery library and some inability of the Intellisense parser to “play nice in the playground”. Okay, so what’s the [workaround]? You can force an update of Intellisense with the following ......

Posted On Sunday, September 6, 2009 5:00 PM | Comments (0)

…Session state can only be used when enableSessionState is set to true…

I am using VS2008 in a Vista Ultimate environment. Here is the complete error message: ”Exception Details: System.Web.HttpException: Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the “<configuration>\<... section in the application configuration.” NONE of that was the problem! ......

Posted On Sunday, September 6, 2009 5:00 PM | Comments (2)

Copyright © intermark

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski