Search

You searched for the word(s): userid:777444

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;
  • 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
  • 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 »