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...
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...
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...
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...
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...
How do I copy or duplicate an object in .NET?
I've got a big table, where I want to repeat the header row a few time. What I tried is the following:
TableRow trHead = new TableRow();
TableHeaderCell th = new TableHeaderCell();
th.Text = "blah";
trHead.Cells.Add(th);
TableRow trHeadRepeat1 =...
Can anybody tell me how to read byte values from binary files?
I have gotten quite far by using
var ts = file.OpenAsTextStream();
alert(ts.Read(1).charCodeAt(0));
This works most of the time, but not for a few byte values! For example, byte value 128 (0x80) returns 8364 (0x20AC), 149 (0x95)...
Is it possible to create a class property that is of type array? Or is the only solution to create a public array variable in the class? This is what I would like to do:
class clsTest
public property get arr
arr = array(0,1,2,3,4)
end property
end class
dim test
set test = new clsTest...
I've got an Access database that contains a date-related table (say for example, a record for each purchase made in a store). Now I have a group-query that counts the number of items per date, and I have an ASP.NET page that binds a table to the query result.
However, all the dates that have no...
Is it possible in Microsoft Word to create a style that automatically adds a background image to every "Heading 1"? In CSS, this would be something like
H1 {background-image: url('image.gif');}
Is this in any way possible in Word? I need this, because the company style that I need to make...
I need a way to auto-execute a script function after loading and after resizing of a page. This script is located in an external JavaScript file, and the event handlers have to be defined in the script file (the document itself can't have an onload attribute or script calls). The auto-loading...
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.