.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Post New Web Links

Get and Set Nightmares!

Posted By:      Posted Date: September 07, 2010    Points: 0   Category :ASP.Net
Hey guys, I'm reading a beginning ASP.net in 4 C# book, and I get everything except the programming section that hits getter and setters. I try the code examples and they dont work! My setter dosent. Here is what I do below, and I know, here comes the part when you guys think "OMG WHAT IS HE DOING!" using System; using System.Collections.Generic; using System.Linq; using System.Web; /// <summary> /// Summary description for Class1 /// </summary> public class Person { private string _firstName; public string FirstName; set { if (!string.IsNullOrEmpty(Value)) { _firstName = ValueType.Substring.(0, 1).ToUpper() + value.Substring(1); } else { _firstName = string.Empty; } } }   And then in my webforms code behind file:using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Person myPerson = new Person(); myPerson.FirstName = "ryan"; Label1.Text = myPerson.FirstName; } } Well you have all of that so here is the webform source:<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Fronte

View Complete Post

More Related Resource Links

SQL Server 2008/MOSS 2007 Reporting Nightmares

I am having issues of the Reporting services kind...I have 2 issues in regards to executing rdl report files (excel reports work fine) when they're read through sharepoint reporting.I'll give you a rundown of the components and layout I'm using first of all. I'm going to put in as much information as I can find, so if you see things that are irrelevant it's just because I want to dump as much as I can incase it tweaks someones brain. FYI I have rebooted the computers and IIS many, many times.Servers:Both of the machines below are VMs on Xenserver. We run on a /23 network for these servers. The domain functional level is Windows 2000 mixed (yeah, I know). Devsp40: devsp40 is a Windows Server 2003 R2 SP2 Enterprise edition x64 server (winver 5.2 R2 Build 3790.srv03_sp2_rtm.070216-1710 : Service Pack 2) running MOSS 2007 Enterprise SP2 and WSS 3.0 sp2 (it recommended I install that) x64. I extracted the install files and put the updates in the update folder for installation. The IP is It's probably worth noting that I am using a trial key for MOSS at the moment until our MSDN license comes through.Devsql40: devsql40 is a Windows Server 2008 R2 Enterprise edition x64 (winver 6.1 build 7600) running SQL Server 2008 R2 SP1 x64. The file version for sqlservr.exe is 2009.100.1352.12. The SQL instance name is default.Devsql40 also has SQL Reporting services installe
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend