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