somedotnettips.blogspot.com
.NET Tips: Isolated Storage
http://somedotnettips.blogspot.com/2009/08/isolated-storage.html
Subscribe to this rss feed to get your .NET tips from Mark Moeykens and his friends. Friday, August 28, 2009. Isolated Storage - A private file system managed by the .NET Framework. Isolated Storage provides a safe location, regardless of user access level, to store information that can be isolated by each user on the machine to store such things as user preferences. How do I use it? Here's an example where I store the height and width of a window in a text file on closing. FileMode.Create, isf);. Just y...
somedotnettips.blogspot.com
.NET Tips: September 2009
http://somedotnettips.blogspot.com/2009_09_01_archive.html
Subscribe to this rss feed to get your .NET tips from Mark Moeykens and his friends. Tuesday, September 29, 2009. Scrollbar on a GridView. An ASP.NET GridView control will keep expanding down the page as more data is added. What if you want to control its height though? You could using Paging. You can also add scrollbars using styles. Here is an example of how you do this:. Width: 200px; height: 100px; overflow: auto". Subscribe to: Posts (Atom). Code - HTML formatter. Scrollbar on a GridView.
somedotnettips.blogspot.com
.NET Tips: April 2008
http://somedotnettips.blogspot.com/2008_04_01_archive.html
Subscribe to this rss feed to get your .NET tips from Mark Moeykens and his friends. Wednesday, April 30, 2008. LINQ to XML - Namespaces. Adding on to yesterday's post, you might come across xml that has a namespace defined. You'll have to handle this with the XNamespace object. Http:/ tempuri.org/MyDataSet.xsd". XDocument ds = XDocument.Load(Resources.SimpleXmlFileWithNamespacePath); XNamespace ns = "http:/ tempuri.org/MyDataSet.xsd". XName xNamePerson = ns "Person". Var personNames = from person in.
somedotnettips.blogspot.com
.NET Tips: Chart Control - Showing all X Axis Lines (Vertical Lines)
http://somedotnettips.blogspot.com/2010/09/chart-control-showing-all-x-axis-lines.html
Subscribe to this rss feed to get your .NET tips from Mark Moeykens and his friends. Thursday, September 30, 2010. Chart Control - Showing all X Axis Lines (Vertical Lines). By default when you plot more than 9 DataPoints on a chart of certain types (such as Line, Spline, etc.) the X axis will drop its labels and the X Axis Lines will disappear with them. Let's take a look:. Chart with 9 DataPoints:. Chart with 10 DataPoints:. How do I show all the X Axis labels? Here is the HTML:. Code - HTML formatter.
somedotnettips.blogspot.com
.NET Tips: September 2010
http://somedotnettips.blogspot.com/2010_09_01_archive.html
Subscribe to this rss feed to get your .NET tips from Mark Moeykens and his friends. Thursday, September 30, 2010. Chart Control - Showing all X Axis Lines (Vertical Lines). By default when you plot more than 9 DataPoints on a chart of certain types (such as Line, Spline, etc.) the X axis will drop its labels and the X Axis Lines will disappear with them. Let's take a look:. Chart with 9 DataPoints:. Chart with 10 DataPoints:. How do I show all the X Axis labels? Here is the HTML:. Code - HTML formatter.
somedotnettips.blogspot.com
.NET Tips: Microsoft Chart Disappearing (not rendering)?
http://somedotnettips.blogspot.com/2010/10/microsoft-chart-disappearing-not.html
Subscribe to this rss feed to get your .NET tips from Mark Moeykens and his friends. Friday, October 1, 2010. Microsoft Chart Disappearing (not rendering)? Sometimes my charts would show, sometimes they wouldn't. Sometimes when I refresh my page the chart disappears! I found if I set the ImageStorageMode of the chart to "UseImageLocation" it started working consistently. If you use this option, you have to make sure you define a location (that has write access) in your web.config. Code - HTML formatter.
somedotnettips.blogspot.com
.NET Tips: May 2008
http://somedotnettips.blogspot.com/2008_05_01_archive.html
Subscribe to this rss feed to get your .NET tips from Mark Moeykens and his friends. Tuesday, May 13, 2008. Quick and Dirty WCF Service. Going to cover how to create and consume a WCF service. 1 Create a new project, select "Web" project type and then choose "WCF Service Application". 2 Add a new WCF Service. This will add an interface and a .svc file with a code behind. 3 With the interface, define a method signature you want as your service. System.ServiceModel; namespace. WorkItem); } }. More Info: MS...
somedotnettips.blogspot.com
.NET Tips: January 2010
http://somedotnettips.blogspot.com/2010_01_01_archive.html
Subscribe to this rss feed to get your .NET tips from Mark Moeykens and his friends. Saturday, January 23, 2010. Container.DataItemIndex - Getting GridView's Row Index. Every once in a while you need to get the index of the row in a GridView that triggered an event. You can setup the CommandArgument to store the row’s index for use in your code behind. In the GridView:. Container.DataItemIndex % '. Referencing in the code-behind:. Void gridView RowCommand( object. Sender, GridViewCommandEventArgs e) { if.
somedotnettips.blogspot.com
.NET Tips: July 2009
http://somedotnettips.blogspot.com/2009_07_01_archive.html
Subscribe to this rss feed to get your .NET tips from Mark Moeykens and his friends. Thursday, July 23, 2009. When declaring a value type (int, bool, char, DateTime, etc.) you cannot initialize it to null. Or you'll get this error message:. To fix this you need to declare your variable as nullable:. When this is done, 2 new properties become available to you, HasValue. Now you can check if your variable has been assigned a value yet or if it's still null with HasValue. Subscribe to: Posts (Atom).
somedotnettips.blogspot.com
.NET Tips: August 2009
http://somedotnettips.blogspot.com/2009_08_01_archive.html
Subscribe to this rss feed to get your .NET tips from Mark Moeykens and his friends. Friday, August 28, 2009. Reading from Isolated Storage. You learned how to write to Isolated Storage in the previous post. Here is how you read from it:. IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForAssembly();. IsolatedStorageFileStream stream = new. FileMode.OpenOrCreate, isf);. StreamReader sr = new. SetWidthAndHeight(sr.ReadToEnd() ;. How do I use it? IsolatedStorageFileStream stream = new. In the pre...