Click here to Skip to main content
12,079,489 members (63,782 online)

.NET Framework

 
GeneralRe: Visual Studio Online or Express? Pin
Eddy Vluggen12-Aug-14 8:24
professionalEddy Vluggen12-Aug-14 8:24 
GeneralRe: Visual Studio Online or Express? Pin
adamhill913-Aug-14 1:21
memberadamhill913-Aug-14 1:21 
GeneralRe: Visual Studio Online or Express? Pin
Richard MacCutchan12-Aug-14 21:55
protectorRichard MacCutchan12-Aug-14 21:55 
GeneralRe: Visual Studio Online or Express? Pin
adamhill913-Aug-14 1:22
memberadamhill913-Aug-14 1:22 
AnswerRe: Visual Studio Online or Express? Pin
PIEBALDconsult11-Aug-14 9:01
memberPIEBALDconsult11-Aug-14 9:01 
AnswerRe: Visual Studio Online or Express? Pin
robcaron12-Aug-14 8:12
memberrobcaron12-Aug-14 8:12 
GeneralRe: Visual Studio Online or Express? Pin
adamhill913-Aug-14 1:26
memberadamhill913-Aug-14 1:26 
AnswerRe: Visual Studio Online or Express? Pin
thatraja13-Aug-14 3:30
protectorthatraja13-Aug-14 3:30 
AnswerRe: Visual Studio Online or Express? Pin
sankarsan parida27-Aug-14 21:48
professionalsankarsan parida27-Aug-14 21:48 
QuestionRequesting help chasing a .net memory leak Pin
Member 858457310-Aug-14 8:46
memberMember 858457310-Aug-14 8:46 
AnswerRe: Requesting help chasing a .net memory leak Pin
Eddy Vluggen11-Aug-14 8:51
professionalEddy Vluggen11-Aug-14 8:51 
GeneralRe: Requesting help chasing a .net memory leak Pin
Joshua Gayou11-Aug-14 11:48
memberJoshua Gayou11-Aug-14 11:48 
AnswerRe: Requesting help chasing a .net memory leak Pin
Joshua Gayou11-Aug-14 14:08
memberJoshua Gayou11-Aug-14 14:08 
QuestionCS0029: Cannot implicitly convert type 'System.DateTime' to 'var' Pin
demoninside98-Aug-14 21:50
memberdemoninside98-Aug-14 21:50 
Hi all,

My web application was working perfectly. There was no issue with that.

Suddenly I was need to add a reference of System.Web.Helpers.ddl in my project. After adding this in my project I am getting an error

Cannot implicitly convert type 'System.DateTime' to 'var' on this line var date = DateTime.Now.AddYears(i);

before this it was working perfectly, I didn't made any change in my code.

<pre lang="c#">protected void Bind_Year()
      {
            try
            {
                  DataTable dt = new DataTable();
                  dt.Columns.Add("Year", typeof(int));
                  for (int i = -2; i < 4; i++)
                  {
                        var date = DateTime.Now.AddYears(i);
                        var year = date.Year;
                        dt.Rows.Add(year);

                  }
                  DropDownList3.DataSource = dt;
                  DropDownList3.DataBind();

            }
            catch (Exception ex)
            {
                  WebMsgBox.Show(ex.Message);
            }

      }</pre>
AnswerRe: CS0029: Cannot implicitly convert type 'System.DateTime' to 'var' Pin
PIEBALDconsult8-Aug-14 21:56
memberPIEBALDconsult8-Aug-14 21:56 
GeneralRe: CS0029: Cannot implicitly convert type 'System.DateTime' to 'var' Pin
demoninside98-Aug-14 22:13
memberdemoninside98-Aug-14 22:13 
GeneralRe: CS0029: Cannot implicitly convert type 'System.DateTime' to 'var' Pin
PIEBALDconsult9-Aug-14 6:24
memberPIEBALDconsult9-Aug-14 6:24 
GeneralRe: CS0029: Cannot implicitly convert type 'System.DateTime' to 'var' Pin
Dave Kreskowiak9-Aug-14 7:25
mvpDave Kreskowiak9-Aug-14 7:25 
GeneralRe: CS0029: Cannot implicitly convert type 'System.DateTime' to 'var' Pin
demoninside98-Aug-14 22:22
memberdemoninside98-Aug-14 22:22 
GeneralRe: CS0029: Cannot implicitly convert type 'System.DateTime' to 'var' Pin
PIEBALDconsult9-Aug-14 6:23
memberPIEBALDconsult9-Aug-14 6:23 
AnswerRe: CS0029: Cannot implicitly convert type 'System.DateTime' to 'var' Pin
Richard MacCutchan8-Aug-14 23:39
protectorRichard MacCutchan8-Aug-14 23:39 
GeneralRe: CS0029: Cannot implicitly convert type 'System.DateTime' to 'var' Pin
demoninside99-Aug-14 1:35
memberdemoninside99-Aug-14 1:35 
QuestionRetrieve information from UDL file Pin
Ashfaque Hussain4-Aug-14 20:23
memberAshfaque Hussain4-Aug-14 20:23 
AnswerRe: Retrieve information from UDL file Pin
Eddy Vluggen5-Aug-14 3:37
professionalEddy Vluggen5-Aug-14 3:37 
QuestionControls resize to init after changing language Pin
ChriSSi0034-Aug-14 2:36
memberChriSSi0034-Aug-14 2:36 
AnswerRe: Control resize to init after changing language Pin
Eddy Vluggen4-Aug-14 3:00
professionalEddy Vluggen4-Aug-14 3:00 
AnswerRe: Control resize to init after changing language Pin
Bernhard Hiller4-Aug-14 21:49
professionalBernhard Hiller4-Aug-14 21:49 
GeneralRe: Control resize to init after changing language Pin
ChriSSi0034-Aug-14 22:26
memberChriSSi0034-Aug-14 22:26 
GeneralRe: Control resize to init after changing language Pin
Bernhard Hiller5-Aug-14 0:38
professionalBernhard Hiller5-Aug-14 0:38 
GeneralRe: Control resize to init after changing language Pin
ChriSSi0035-Aug-14 1:49
memberChriSSi0035-Aug-14 1:49 
Question.net memory leaks Pin
Bret Stern3-Aug-14 17:10
memberBret Stern3-Aug-14 17:10 
AnswerRe: .net memory leaks Pin
MarkLTX3-Aug-14 17:40
memberMarkLTX3-Aug-14 17:40 
GeneralRe: .net memory leaks Pin
Bret Stern3-Aug-14 19:46
memberBret Stern3-Aug-14 19:46 
AnswerRe: .net memory leaks PinPopular
Dave Kreskowiak3-Aug-14 18:26
mvpDave Kreskowiak3-Aug-14 18:26 
GeneralRe: .net memory leaks Pin
Bret Stern3-Aug-14 19:44
memberBret Stern3-Aug-14 19:44 
QuestionHow to get all the visited url lists from any browser programmatically using c# in .Net 2.0 framework Pin
Member 105012112-Aug-14 3:11
memberMember 105012112-Aug-14 3:11 
AnswerRe: How to get all the visited url lists from any browser programmatically using c# in .Net 2.0 framework Pin
Eddy Vluggen2-Aug-14 13:25
professionalEddy Vluggen2-Aug-14 13:25 
AnswerRe: How to get all the visited url lists from any browser programmatically using c# in .Net 2.0 framework Pin
Dave Kreskowiak3-Aug-14 18:17
mvpDave Kreskowiak3-Aug-14 18:17 
AnswerRe: How to get all the visited url lists from any browser programmatically using c# in .Net 2.0 framework Pin
Bernhard Hiller3-Aug-14 21:48
professionalBernhard Hiller3-Aug-14 21:48 
GeneralRe: How to get all the visited url lists from any browser programmatically using c# in .Net 2.0 framework Pin
Nathan Minier6-Aug-14 11:24
memberNathan Minier6-Aug-14 11:24 
Questionsherdian controls : license not found Pin
zuber ahmed2-Aug-14 2:40
memberzuber ahmed2-Aug-14 2:40 
AnswerRe: sherdian controls : license not found Pin
Richard MacCutchan2-Aug-14 3:51
protectorRichard MacCutchan2-Aug-14 3:51 
Questionhi Pin
TNKumar31-Jul-14 20:42
memberTNKumar31-Jul-14 20:42 
QuestionRe: hi Pin
Richard MacCutchan31-Jul-14 21:30
protectorRichard MacCutchan31-Jul-14 21:30 
AnswerRe: hi Pin
TNKumar1-Aug-14 0:55
memberTNKumar1-Aug-14 0:55 
GeneralRe: hi Pin
Richard MacCutchan1-Aug-14 0:59
protectorRichard MacCutchan1-Aug-14 0:59 
GeneralRe: hi Pin
TNKumar1-Aug-14 1:06
memberTNKumar1-Aug-14 1:06 
GeneralRe: hi Pin
Richard MacCutchan1-Aug-14 1:44
protectorRichard MacCutchan1-Aug-14 1:44 
AnswerRe: hi Pin
arpoador1-Aug-14 7:51
memberarpoador1-Aug-14 7:51 
QuestioniDB2Connection Connection slow Pin
byka29-Jul-14 3:30
memberbyka29-Jul-14 3:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.160212.1 | Last Updated 14 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid