Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
About Me

Web developer/usability designer, former journalist.

Interests
Whedonverse
Favorite Tags
Member Avatar for BonaDrag

I have an XML-form (Silverlight application) with validations in C#. My XML-code works fine, but I'm having problems with the C# part. For every textbox I first check that the textbox is not empty (this works fine), and if it's not empty I check that the input is correct. My …

Member Avatar for BonaDrag
0
171
Member Avatar for BonaDrag

I have a problem with updating records in a database table. Background: The user can fetch data that belongs with an image. The data is displayed in a form. In this form the user can add/change data and then save this to the database. This part works fine. My next …

Member Avatar for BonaDrag
0
105
Member Avatar for BonaDrag

I have a string that I need to convert to int before updating it in my database, but haven't managed to figure out how it's done. Here's my latest try: [code=c] int iLager = Int32.Parse(TextBoxProdNumberOf.Text); SqlConnection conn = new SqlConnection(config); conn.Open(); string sql = "UPDATE Produkter SET iLager ='" + …

Member Avatar for BonaDrag
0
160
Member Avatar for BonaDrag

I have this code that works fine: [code=c] protected void ButtonImgTextToDB_Click(object sender, EventArgs e) { string ID = TextBoxStartPictID.Text; string Rubrik = TextBoxHeadLineStart.Text; string Text = TextBoxTextStart.Text; SqlConnection conn = new SqlConnection(config); conn.Open(); string sql = "UPDATE StartImage SET Headline ='" + Rubrik + "', Text ='" + Text + …

Member Avatar for BonaDrag
0
148
Member Avatar for BonaDrag

I want to display all e-mail addresses from my database in a TextBox. The reason I want to use a TextBox is that I want them in a single row, separated by "; " and that's not possible in a ListBox (right?) which I was using from the beginning. So …

Member Avatar for cgcgames
0
135
Member Avatar for BonaDrag

I have a string that looks like this: [ID] [LastName], [FirstName] I want to fetch the ID, it consists of one or more digits. I'm guessing I have to find the first space of the string and then fetch the digit(s) before that space. If I understand things correctly I …

Member Avatar for BonaDrag
0
212
Member Avatar for BonaDrag

I have an error I don't understand how to get rid of. I want to compare a string consisting of: ID + " " + date + " " + time + ":00" to a string in the database (data type = text). Here's an example of what I fetch …

Member Avatar for BonaDrag
0
128
Member Avatar for BonaDrag

I want to compare a DateTime date & time in a GridView to a smallDateTime date & time in a database table. I'm not sure what goes wrong, but I get the error message "incorrect syntax near 'whatever time'" every time. An example: A DateTime datumStartTid could be '2010-07-25 19:00' …

Member Avatar for BonaDrag
0
2K
Member Avatar for BonaDrag

How do I make a calendar show a date that I fetch from another control? The fetched date is 'date' and will be different every time. To show the current date I do this: [code=c] CalendarMyMeetings.SelectedDate = System.DateTime.Today; [/code] ...so I'm guessing I need to replace 'Today' with 'date', but …

Member Avatar for BonaDrag
0
82
Member Avatar for BonaDrag

I've made a picture gallery by putting the pictures in a table, but when I compile the page and try to downscale it (ctrl-) the pictures don't show anymore. How can I make the table downscale when the rest of the user interface does? I also wonder if there's a …

0
52
Member Avatar for BonaDrag

Im trying to write c# form validation for a xaml-form. The only two things that seem to work are the lines of code that clears the text- and passwordboxes and displays the messagebox. Are my regex-examples wrong, or do I need to work with some kind of while-statement(s)? [code=c] //start …

Member Avatar for BonaDrag
0
121
Member Avatar for BonaDrag

I'm a newbie so please forgive me if this is a stupid question. I don't understand what I've missed in the code below and how I can get it to work. I have a few lines of code that works fine. It makes a * show as an error message …

Member Avatar for BonaDrag
0
94