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 gkittelson 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: *

  1. lianaent

    Update SQL Server 2005 database from javascript

    Okay, figured out, nevermind. When I open the order page back up with the "Cancel", after setting the flag back to available, I'm closing the page with: Response.Write("<script language='javascript'> { self.close() }</script>") To the user, all they see is a flicker.
  2. lianaent

    Update SQL Server 2005 database from javascript

    I found one not-so-clean way to do this: In the delete item javascript function I added a window.open back to my ordering page, but with a "Cancel" in the querystring. In the asp.net ordering page, if the querystring has the "Cancel" in it, then I set the flag back to available. While this...
  3. lianaent

    Update SQL Server 2005 database from javascript

    (Yes, I know javascript is client-side. But once the user is in the cart, there's no way for server-side code to know what they've clicked, or even which asp.net form they used to open the cart. If there was only one asp.net form that opened the cart, then I could update a field in that form...
  4. lianaent

    Update SQL Server 2005 database from javascript

    I'm pretty new to javascript, but I've got a client-side shopping cart that I've copied from a website and modified for my own use. I'm working in asp.net 2.0. When I add an item to my shopping cart I'm updating my SQL Server 2005 database with a flag that indicates that the item is pending a...
  5. lianaent

    How do you reference web.config from an event sink?

    Thanks everyone for responding... Anyway, I figured this out thanks to: http://codebetter.com/blogs/darrell.norton/archive/2004/01/15/5646.aspx
  6. lianaent

    How do you reference web.config from an event sink?

    I want to use the same web.config file in my document library event sink that the rest of my Sharepoint web parts use, but I can't seem to figure out how to reference it. I'm working in Sharepoint 2003, and ConfigurationSettings.AppSettings.Get(<key value>) just returns nothing. I've even...
  7. lianaent

    How to use style.display on a repeater

    No offense taken! Because, I want the best of both worlds? I thought I'd never have to learn javascript! Haha! I don't even want to read that mess above. However, the asp.net html code looks a whole lot cleaner in the IDE, and is much easier to understand. The main reason I started using...
  8. lianaent

    How to use style.display on a repeater

    Do you really want to see all this?? lol, okay, here's what I get from View Source. Two things: First, in my sample above I removed two of the checkboxes for simplicity. The other two are chkSortField2 and chkDescending. Second, this is being run from SharePoint - so the ClientId's may look...
  9. lianaent

    How to use style.display on a repeater

    Sorry, I forgot to mention that I'm initializing each row of the repeater depending on whether the field type is Note or not: If it's Note: chkSortField1.Style.Add("display", "none") otherwise: chkSortField1.Style.Add("display", "inline") If I do NOT initialize the checkboxes as above...
  10. lianaent

    How to use style.display on a repeater

    I have a repeater with checkboxes and a dropdownlist. Depending on the value selected in the dropdownlist, I want the checkboxes to be displayed or not displayed. Everything works fine, except for the initial display. If the repeater opens with the "non-display" dropdown value selected on any...

Part and Inventory Search

Back
Top