.net-3.5

Why am I getting a serialization error?

I have the following code: class Program { static void Main(string[] args) { string xml = @"<ArrayOfUserSetting> <UserSetting> <Value>Proposals</Value> <Name>LastGroup</Name> </UserSetting> ...

Problem showing thumbnail toolbar in .net 3.5 form

Hi, I am usign WindowsApiCodePack for windows 7 to make a thumbnail toolbar for my form. In the form shown event i am doing this: tbButton1 = new ThumbnailToolbarButton(new Icon("myOverlayIcn.ico"), "Next Event"); tbButton1.Click += new EventHandler<ThumbnailButtonClickedEventArgs>(button1_Click); tbButton2 = new ThumbnailToolb...

Updating MCPD in WinForms from .NET 2.0 to 3.5 - what study materials (MS books) are required/recommended?

For my 2.0 exams it was simple - I just bought the MCPD Self-paced Training Kit which contained the books for exams 70-536, 70-526 and 70-548. But now that I want to update my certification to 3.5 (prior to going to 4.0) via exam 70-566, I can't seem to find what books to buy for studying purposes (besides revising the previous exams). I...

Retrieving 2 SQL querry from one page to other using hyperlink GridView

Greetings everyone, I have a code to pass the querry from a one page that has a gridview hyperlink but what i didn't know is how to retrieve it.. Here is my code i hope you could help me fix this one.. thnx Have a nice day ^^, Default1.aspx(Gridview1) page: <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="Fa...

Avoid LINQ with Let keyword doing self-loop

I have three tables Student, TimeSheet and TimeRecord. Talbe columns: Student : StudentId, AssignedId, FirstName, LastName TimeSheet: TimeSheetId,StudentId, IsArchive, IsComplete TimeRecord: TimeRecordId,TimeSheetId, BonusHour(type int), CreationDate Table relationship: Student 1:N TimeSheet (FK StudentId) TimeSheet 1:N TimeRecord...

How to configure subsonic 3.0.0.4 using mysql with Visual Studio 2010?

I downloaded subsonic 3.0.0.4 and i am trying now to configure it to work with mysql and Visual studio 2010. My project is .net 3.5 and i am creating a data access layer class library to use later in a website. I can't figure which files i should add to my project and where to edit. Last step i reached is in this screen shot: ...

What do I need to know about the different versions of Java from a .NET perspective?

I'm not sure how to phrase this question, but considering the differences in .NET listed below, is there any comparison to Java and all it's deployments? Platform The same version of .NET can run on either a server or workstatation Since the full version of .NET may be too much for some deployments, there is a client profile only vers...

Build with .Net Framework 3.5 SP1, can be run in 4.0?

I have an application built in C# with the .Net Framework 3.5 SP1 (also using wix). The obvious requisite in the running machine is .Net 3.5 SP1, but what if the machine already has .Net 4.0? Right now I'm having a crash in that machine and only installing the .Net 3.5 SP1 fixes the problem. Is there a way to avoid the customers that...

LINQ to SQL sum null value

Hi, I have the following query, I'd like to sum the NULL value also. Some TimeSheet don't records in TimeRecord and some tr.TimeIn and tr.TimeOut are NULL. The query select only TimeSheet that has reords in TimeRecord. How I can have it select everything, and sum up the NULL value as well. So, the SUM of NULL will be just zero. Table ...

how to add properties to objects dynamically in c#

I want to add the properties to the class / object dynamically in c# in VS 3.5. how can i do this? ...

System.MissingMethodException: Method not found

I have some user controls in the project kept under a folder UserControls. I'm using one of the user control from that folder in my master page and one on Default.aspx. The default.aspx uses that master file. The problem is that everything was working fine until something happened and it seems user control is not getting compiled. The ...

Is this a standard DateTime format?

I haven't seen this datetime format before: 2010-08-19T16:09:07.08 The nearest I have found in the msdn is represented by the "o" standard format string, but it's not quite the same. So what is this format? If it's standard can I reproduce it with a standard format string? Thanks, Phil ...

Exception was thrown when adding new rows to datatable

listA is list of integer dtListB is DataTable I'm checking that if StudentId of ListA doesn't exist in dtListB, then add it to the dtListB. Dim stidListA, stIdListB As Integer For Each la In listA stidListA = la.StudentId For n = 0 To dtListB.Rows.Count - 1 Step 1 stIdListB = dtListB.Rows(n)...

Why do I get 'cannot convert type 'IEnumerable<myType>' to 'myType' on this LINQ query?

Object is simple, it's a rate of pay: public class RateOfPay { public decimal Rate { get; set; } public DateTime Start { get; set; } public DateTime? End { get; set; } } and I'm trying to get it like this: IEnumerable<T> rates = GetRates(); /* actual collection is DevExpress XPCollection<RateOfPay> which imple...

LINQ group by problem

Hi, I am facing a problem with LINQ. Here is the code, public class TimeObject { public DateTime Time { get; set; } } private void TestLINQ() { List<TimeObject> results = new List<TimeObject>(); results.Add(new TimeObject() { Time = new DateTime(2010, 8, 1, 0, 10, 0)}); results.Add...

Bad Request Error 400 on IIS7 .NET 3.5

I am running into a bad request error 400 on IIS7. I have encoded special characters in the URL string. My URL's look something like this (doesn't like %26): http://www.myjobs.com/a/q-Barnes+%26+Noble This would be an easy fix if I were running on .NET 4.0, but I am on rackspace cloud and can only run on IIS7 .NET 3.5. This is what ...

IDisposable vs using keyword

If I am using the using keyword, do I still have to implement IDisposable? ...

FolderBrowserDialog behavior in Windows 7

I don't find any solution for this... please help me out I'm using a FolderBrowserDialog in my application. If I try to create a 'New Folder' within the FolderBrowserDialog and immediately after I try to rename the 'New Folder' and hit OK (not Enter) the SelectedPath property has the 'New Folder' in it's path and not the name that I e...

UpdatePanel in MasterPage

Hi I'm using UpdatePanels in ContentPages sucefully, but now i'm trying to use one UpdatePanel in a MasterPage with an timer (i've setted the UpdateMode to conditional because the Timer) and i'm getting an problem: the update is refreshing the entire page (not like Ajax used in ContenPages). It's because i'm using the UpdatePanel in th...

How does paging work in asp.net?

I am curious to know how does paging work in asp.net? If my query returns 500 records, and my gridview paging limits to 25 records per page, when the gridview loads, does the recordset return 25 records or 500 records? If the recordset returns 25 records, how does ado communicate with SQL to return records for page two? If the reco...