Hi all,
Currently, my (small) intranet site is storing it's data on a remote SQL server. The danger with this, as has happened several times now, is that the application is twice as vulnerable; if either the webserver or the dataserver malfunctions or is unreachable, the application won't work...
Jason, thank you so much!! I have spend so much time on this problem, and clearly don't know all the best ways to track bugs yet.
The problem was, that apparently the DataBound event is triggered TWICE! The first time, FindControl won't find any controls, but the second time everything is okay...
Hi all,
I've got a FormView control with a few empty TextBoxes, among others one for name and email. Is it possible to fill these in with values retrieved from Cookies? All I get is "Object reference not set to an instance of an object".
protected void FormView1_DataBound(object sender...
Hi all,
I want to set the mode of my FormView based on the values the SelectCommand of my SqlDataSource returns. If a certain field contains Null, I want to have Edit mode, and when the field has a value, I want to have ReadOnly.
Apparently I cannot use databinding to set the DefaultMode, so I...
What exactly is meant with the table structures? Don't you mean the structure of the database tables? That's right there at the beginning of my reply:
(Participants.CourseID is linked to Course.ID)
Thanks for the help, c8!
Following is not the complete code, but since it is all in Norwegian I have to translate it to be understandable. I think this is all the relavant stuff:
Courses table: ID, Name, Maximum
Participants table: StudentID, CourseID, EnlistDate
<asp:SqlDataSource...
No, it is not mandatory. Sometimes for example the exact location is decided afterwards, based on the number of participants. A default can also be misleading, suggesting that this amount has been determined.
Also, having a value for maximum does not solve my second problem, generating the...
Hi all,
I am writing a page to display the people registered for a selected course, and the people that are on the waitinglist.
I do this using various GridViews bound to SqlDataSources. The courses table has a "Maximum" field for every course, which says how many people can participate. When...
I need to merge a huge amount of XML files into one. The files all have the following structure:
<!DOCTYPE ...>
<FILE>
<REC ...>
<FLD ...>...</FLD>
...
</REC>
...
</FILE>
I've written the following code to do this:
private void btnOpen_Click(object sender, EventArgs e)
{
if...
Thanks, that worked like a charm!!
Apparently, you forgot 1 line in the code. After the write command, I needed to add "position = 0;", and then everything worked as required.
tsuji, you are da man! :-D
Well, apart from half of the text being unreadable (the texts are not English but Norwegian, with lots of mangled up å, ø, æ), the main problem is that the mangeling-up also takes the next 2 or 3 characters with it.
For example: "<div>få</div>" gets converted to "<div>f?iv>".
This makes proper...
Hi,
I'm using XMLHttpRequest in JavaScript to retreive information from remote websites into Internet Explorer. Everything works great, except for two websites, where the server doesn't return any Charset information in the headers. The result is that XMLHttp interprets the results as UTF-8...
Nopes, I am not in the US. Actually not that far away from you, I'm in Norway these days.
I don't have that much experience with RMA's. I've RMA'd a few harddisks in the past few years, never had too much trouble with that, just filling out a webform was always enough.
Let's hope the PSU won't...
People, I think I fell in love with Antec now. Exactly 2 hours and 26 minutes after filling in a webbased support request, I get a reply offering a replacement PSU! Where do you get this kind of support nowadays? Tears are filling my eyes... ;-)
I agree in the suggestion to open the files in a hex-editor, and checking the first 10 bytes. Please post them here. From your description, I am afraid you will either see random "garbage" bytes, or just zeros. I've had a simular problem on a harddisk once, caused by a screwed-up FAT.
I've been using an Antec Sonata with it's default PSU True380SP for over a year with great pleasure.
However, since a few days my PC doesn't boot anymore. When PSU is turned on, power indicator light on motherboard lights up. When PC is turned on, fans start running and USB apps get powered...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.