Hi,
Any help anyone can give me would be greatly appreciated.
I'm using an asp:repeater, and within the itemtemplate i have an asp:imagebutton. I need to keep it an asp:imagebutton as opposed to just an img because i am using 2.0 themes/skins. So several of these get created by the repeater and they all have something
along the lines of OnClientClick="javascript: whatever(id);" (the id changes by for each one).
My problem is that i want the repeater and the themes to work, but i don't want these image buttons to trigger a post back. I want them to run the javascript and have done. I tried returning false from the javascript routine, but i seem to still get a post
back. I found that if I do something like MyImageButton.Attributes["OnClick"] = "return false;" it seems to work fine for a single image button out on its own but not for a series of image buttons generated within a repeater.
Thanks for any suggestions or help,
GN
Discussions
-
-
Thanks. I figured out why it wasn't working. I didn't have the sitemap set up correctly. I feel like such a noob.

Thanks Tommy!
GN -
I agree with Ion. I think that the Zune is way better than the big iPods. But I didn't buy a big iPod. I bought a nano. I'm holding out for the Zune pico. It'll totally rock!

GN -
Hey guys,
Maybe this question is as much about good design as actual syntax. I'm interested in feedback on both.
I'm creating an asp.net 2.0 website. I'm interested in using a master page so that i can have one common parent page with multiple possible content pages. As a result, I will have one page- default.aspx- that can display a variety of information pages based upon what ends up in the content pages.
I was wanting to use a sitemappath control within the master page, or if necessary within the content frame, that would provide breadcrumbing. However, the documentation that I'm reading seems to indicate that the web.sitemap file needs separate distinct pages in the url property to work correctly. But how does this actually work when the main page is always default.aspx? If I use the names of the content pages it doesn't seem to work correctly within the master page.
I apologize in advance if I'm missing anything obvious or if this is a bad design approach from the get-go. I've already done the semi-obligatory msdn search and must have missed any relevant article. They all seem to deal with sitemappath without the master page implications. Any help would be appreciated. Thanks!!
GN -
I'm with figuerres on this. I think that one of the many reasons why Windows is more popular than other alternatives is that people who are not technically oriented can still use it to do email, browse the web, or play solitaire. If they come upon something they don't know, they inevitably have a son, grandson, neighbor kid, someone who can ease them through the sticky bit.
In my case, my mom is in her seventies. She uses her computer for email, solitaire and the occasional word document. That is all she does with the computer, that is all she wants to do with the computer. So hopefully solitaire won't trigger many UAC notices for her. But the first time she gets a UAC notice for any reason whatsoever, she will call me. If that starts to get annoying, I will just kill it for her. I think this is not an uncommon scenario.
GN -
Hey, thought I would share this to see if anyone else could relate.
Well, I just purchased the "Bon Jovi - Have a Nice Day" CD. I listened to it in my car stereo on the way home and really liked it. Got home and wanted to copy the songs to my iPod. Put it in the cd drive and the cd drive won't recognize it at all. After a little research I discovered that it was not my drive; it was the CD. It is broken by design. "May not play on some CD and DVD players"
[C]
I'm so angry I could chew nails and spit tacks!
I considered my options: I like the CD and don't really want to return it. I suspect that it's not the band's fault, and just some nameless suit at Sony or wherever. But I probably will return it on principal.
Still, I know that my returning it won't make any real difference. I am a statistically insignificant portion of the record company's bottom line. Is there anything we consumers can really do to get these companies to treat us decent? Honestly, I doubt it- but I know that I will be looking for the "may not play" disclaimer from now on, and I won't be purchasing any more music of the intentionally broken sort. Oh well, my friend is trying to get me to listen to more classical music anyway

GN -
Fantastic job Minh, for taking the initiative to score the interview.
I think that MJ deserves a major pat on the back for not losing the will to live this week. And any Softie who pulled strings or endured awkward moments in order to arrange extending the grand prize, good job!
Yes, I agree with some of the original "loose lips and contest rules sink ships!" sentiment, but who declared Tuesday international crap-on-MJ day? Sheesh, if we would all give our respective governments the same kind of grief we give hard-working Microsoft employees, people might start having occasional moments of personal privacy again!
Everyone makes mistakes, but thank you Mark and others for trying to make it as right as possible, for making a sincere effort to do better next time, for doing contests at all in the first place, and for putting up with all us fussy niners.
Lots of people out here in the aether appreciate it.
GN
-
A while back I tried to host a forum focused on discussion related to evolution. It was then that I realized that literally everyone on the Internet is a paleontologist. Who knew? It was an exercise in masochism. My dream forum will materialize shortly after I win the power ball lottery and win a congressional medal. However, I do have high hopes for the coming C9 upgrade...

GN -
I really do think that some method to better capture the screen when its relevant to the video would be very nice. The laid back spontanous nature of C9 would not be devastated if we niners were actually able to see what was being talked about on the screen. Although I think that many, perhaps most, 9 videos don't require this in any event. But when they do, nothing "takes me out" of the video faster than not being able to see what is on the blasted screen. I'm holding out hope that Charles newfound uber-cam is the solution, but if not, put in my vote for some sort of screen capture!
Thanks!
GN -
Every country has things about it that are unique. Every country (even different parts within a country) has subtle and sometimes not at all subtle cultural differences. I believe that the average American has no great longing to be more european or even more "global". And I suspect that the reverse is equally true. I have no interest in soccer, I don't know of anyone in my peer group who does. This, even though I went to a private high school that had soccer but not US football. Viva la difference!
GN