Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: pbb72
  • Content: Threads
  • Order by date
  1. pbb72

    How do I transfer tables from remote SQL database to local MDF file?

    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...
  2. pbb72

    Can I set default field values in a FormView with Cookie?

    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...
  3. pbb72

    Set FormView mode depending on query results?

    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...
  4. pbb72

    ControlParameters and NULL value

    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...
  5. pbb72

    Merging XML files

    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...
  6. pbb72

    XMLHttpRequest and Charsets

    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...
  7. pbb72

    Antec True380SP PSU failure (probably)

    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...
  8. pbb72

    How do I copy or duplicate an object

    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 =...
  9. pbb72

    How to read byte values from file?

    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)...
  10. pbb72

    How to create array property for a class?

    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...
  11. pbb72

    How to create list of all dates in period?

    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...
  12. pbb72

    Background-image for Header ?

    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...
  13. pbb72

    body.onload from external script?

    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...

Part and Inventory Search

Back
Top