Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:777444
More Search Options
RSS Available
Matching Posts
switch - enum?
I need to know what are marked lines in the code, why I need them, how they are called. And if a switch always goes over an enum or if they are also used seperately. If I don't go over an enum with a switch, how do I access it otherwise? I have plowed one year worth of notes and at least 4 book and could not find a good explanation. I am having a test tomorrow, so please bear with me, thank you. class Program { enum Woche { Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Samstag, Sonntag } Woche
Posted to
C#
(Forum)
by
bekkoula
on 8/23/2009
Re: switch - enum?
For the first part, I have - to my horror - discovered, that I always get the result for Monday, which I suspect, is because of this line: Woche week = Woche.Montag; How can I avoid this? If I don't declare the variable, I cannot switch over "week" at all. And for accessing the enum differently, I ment the use of Woche.Montag, where-ever in bigger code without the switch.
Posted to
C#
(Forum)
by
bekkoula
on 8/23/2009
Re: updating Database from Webform
a) I have tried debugging it and it did everything nicely up to the point when it met the Question-Column. b) I have changed allow nulls in the datatable but that had no effect. c) Today I finally cought the support person from the school and she told me that I had not given a value from the textBoxes into the Columns. After I had done that, the table could be filled and everything worked nicely. sorry for being a nerd. .... int Id = int.Parse(LabelQuestionId.Text); eR.Id = Id; int StudentsId = 1;
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
bekkoula
on 8/19/2009
updating Database from Webform
I have an Exams WebForm (exercise) and I get an Error Message when the DataBase is supposed to be updated. The ErrorMessage is: Column "Question" does not allow nulls. BUT: the same Error Message appears when set either to not allow nulls or allow nulls. Here is the code, maybe someone has an idea were my mistake is: protected void Page_Load(object sender, EventArgs e) { LabelError.Visible = false; } protected void ButtonGetQuestion_Click(object sender, EventArgs e) { string s = DropDownListSubjects
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
bekkoula
on 8/18/2009
Re: Absolute Position
Ah yes, understood. I will try it. Thank you.
Posted to
Web Forms
(Forum)
by
bekkoula
on 7/27/2009
Re: class or not class?
It has the color and icon of a variable.
Posted to
Web Forms
(Forum)
by
bekkoula
on 7/27/2009
Re: class or not class?
ahhhh, okay. and additionally, in which case would it "behave/look/feel" like a class?
Posted to
Web Forms
(Forum)
by
bekkoula
on 7/27/2009
class or not class?
I have the following code in an exercise and in the video shown the Page is a class but when I try to re-create the exercise it does not "turn" into a class. In the video nothing special is done or said about it and I have checked my exercise to verify that it is exactly the same but I don't know what the difference is or what I am supposed to do. Can somebody please explain to me what is happening here? if ( Page .IsPostBack == false) { TextBox1.Text = ""; }
Posted to
Web Forms
(Forum)
by
bekkoula
on 7/26/2009
Re: class or not class?
I don't have a problem with the "if", I have a problem with the fact that the Page object is not acting as a class, when it probably should do so. (?!)
Posted to
Web Forms
(Forum)
by
bekkoula
on 7/26/2009
Absolute Position
Is it possible to have a whole page set to Absolute Position or do I always have to set every Control individually to Absolute or something else?
Posted to
Web Forms
(Forum)
by
bekkoula
on 7/26/2009
Page 1 of 19 (187 items) 1
2
3
4
5
Next >
...
Last »
Channel 10:
iBing uBing: Bing iPhone App Arrives
WindowsClient:
Migrating an Outlook Client to .NET Framework 4 in Visual Studio 2010
Channel 10:
A Look Behind Mouse 2.0
WindowsClient:
Using Speech Synthesis in .NET 4 and Windows 7
Channel 10:
Office 2010 "5 Rules" Presentation
ASP.NET:
Live Preview jQuery Plugin
WindowsClient:
Remember JScript closures capture all variables in scope
TechNet Edge:
UAG reaches RTM
Channel 9:
Who, What, When, Where, Why and How of MIX10
Channel 10:
Berlin Wall in Silverlight
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 2, Installation
Silverlight:
Contributing to the SL HVP
Silverlight:
Best SF Books of All Time
Channel 9:
Reactive Extensions API in depth: Repeat
Channel 9:
Jeffrey Van Gogh: Testing Rx with Pex
Channel 9:
The Visual Studio Documentary: Dan Fernandez Full Length Interview
ASP.NET:
Search Engine Optimization (SEO) Toolkit
Channel 10:
This Is Your Data on Silverlight
ASP.NET:
How the IIS SEO Toolkit Saved My Butt
TechNet Edge:
Windows 7 XP Mode User Experience
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online