help.net
<font size="2"><br />Musing on .Net</font>
-
Dropdown list
I discover what appears to be a bug with the dropdownlist control.
I create a dropdown list containig items and grouped bys sections like this :
Of course using a server side control. Everything fine, but the problems are in the code.
The control is bind with some data. Each of the subtitle contains a null value, and the Topic items contains their own id.
I use an event on the onchange of the select control. when the event is fired, I use the selectedindex property to detect if I select a subtitle (just there for decoration), or a topic.
For the Topic, no problem, everything is ok, but for the subtitle, what I wanted is to select the next Topic automatically after the subtitle.
For example, if I select Energy I want to go tot the Topic 1, or if I choose the line over Energy, I jump to Topic1.
Piece of cake? Not exactly because whatever I tried so far, the selectedindex of my elements were back with a value of 0 or 1, if I didn't choose a Topic.
Pushing further my tests, I discover what seem to be the origin of the problem.
If you don't have any value in a item in a dropdownlist, the selectedindex is always the first element matching the search.
I don't remember this kind of behavior before with ASP and Javascript.
For me selectedindex should return an integer, whatever the value of the item.
So for me the solution was to include some dummy unique values for each of the Subtitles in my dropdown control, and using indexof, to make the difference between different items. -
Viewstate turn me really nuts !
-
Project update
The development of the project Scoilnet, portal for Irish Education, is going well.
We're going to have a user testing phase next week, mostly schools.
So the pressure is on me actually !
I still have a couple of pages to finish before Friday, so it's going to be tough.
Something give me some headache today, and I found another way to do it, but it's apity I couldn't figure out how to do it the proper way.
My issue was to pass a value between two controls in the same event cycle.
I tried to use a viewstate but apparently it didn't worked, couldn't read the value from the second control.
I read somewhere tht I could use Saveviewstate method but didn't found the right syntax.
It works now by doing something totally different: affecting the value needed inside the second control before passing the result to the next page using http context and server transfer.
But I am still opened to any suggestion !
-
Important question...well maybe for some like me about Wrox
Ok folks have a look at AspToday (site linked to Wrox).
Apparently the homw page is still there but nothing work anymore behind, dead, absolutly dead :-(
Few days ago I was still able to login but now it's really gone !
So my question now is :
What's going to happen to the HUGE resources library that this site have since more than 3 years ?
CSharptoday is worst, nothing at all, no more homepage, site close !
Any idea about their content, because I was a register user, who paid for their resources and now what can I do if I want to access to some resource from their site ??
The money is not an issue there, but if they are close for good shouldn't be able to publish their site as an open public resource ? -
Boy, am I glad to see you!
Welcome Dana.
I enjoyed your site aspforblondes ;-)
Very refreshing. Like this last one:
Today I heard birds chirping outside my window at sunrise... BIRDS Y`LL!!! The birdies are back and it was in the 60`s yesterday (F) !!!!!!! Spring is on the way - I can jsut FEEL it! I`m still working hard although I LOATHE being locked in this windowless offie all day with nobody to talk to. Y`all send me some email or something!
By the way, we need to have more girls in our .Net world. I am totally agree with Christopher Frazier when he say:
Amen! More smart females, please! Blonde or not...whateva.
I add to that that we need to have more funny names for our .net or asp websites.
Man , girls are so good for that, aspforblondes, datagridgirl.
Do you know some more like this? Imagine Aspfortruckers, Aspfordiscodude, AspforIwishIwasrich, Aspforpensioneers ! -
Editing of datagrid with Images
Marcie replied to me on the post about Editing of datagrid with Images
-
Why are music companies shooting themselves in the foot?
As soon as it has been released, I went to my local CD reseller to buy Sleeping with ghosts, Placebo's latest album. I was ready to enjoy this great music, but...
-
Grand Slam Sunday !
I am a huge rugby fan, but a very small guy ;-)
And a supporter of the Irish team, so Sunday is the big day for the green jersey against the English.
I wish that we can win this time. Please mister we never have the grand slam since ... 1948.
Go on Brian O'Driscoll, you're one of the best captain Ireland had never have !
So Sunday will be also a good celebration day, because whatever the result of the match, as usual everything will finish in a pub. -
Dropdown menu
As Pascal discovered the hard way, Internet Explorer always stacks something like a SELECT drop-down list on top of a normal HTML element, regardless of what z-index you use for each of them.
-
Macromedia Flash Player 6 for Pocket PC 2002
Macromedia Flash Player 6 for Pocket PC 2002 enables developers and publishers to quickly and easily deploy Macromedia Flash MX content and Rich Internet Applications for Pocket PC 2002 devices. Developers can deploy standalone Macromedia Flash applications using the Macromedia Flash Player 6 for Pocket PC.
This release includes the Pocket PC 2002 Content Developers Guide, Interface Design Policy Kit, as well as a set of optimized Macromedia Flash MX UI components for Pocket PC. Macromedia Flash Player 6 for Pocket PC 2002 is part of the Macromedia Mobile and Devices initiative to make PDA's, phones, televisions, and other consumer electronics accessible to Macromedia Flash developers and publishers.