Hello,
I have some "runat server" form drop downs on the page, for example:
<asp:DropDownLi st ID="TypeOfParro t" Runat="server" name="TypeOfPar rot"
class="textbox" >
<asp:ListItem Value="">Please Select</asp:ListItem>
<asp:ListItem Value="Cockatoo ">Cockatoo</asp:ListItem>
<asp:ListItem Value="MaCaw">M aCaw</asp:ListItem>
<asp:ListItem Value="African Grey">African Grey</asp:ListItem>
</asp:DropDownLis t>
So if the Querystring in the URL had domain.com?Parr ot=Cockatoo , the
DropDownList above would default to this value both visually and behind the
scenes.
Any help again appreciated!!
Regards,
Gary. 4 1081
What have you tried? It's very similar to your other post, but instead of
..Text, it's another property in a DropDownList. Hint, look for the word
"Selected.. " in one of the properties.
Jeff
"Badass Scotsman" <ba************ *@aye.net> wrote in message
news:e4******** ***********@new s.demon.co.uk.. . Hello,
I have some "runat server" form drop downs on the page, for example:
<asp:DropDownLi st ID="TypeOfParro t" Runat="server" name="TypeOfPar rot" class="textbox" > <asp:ListItem Value="">Please Select</asp:ListItem> <asp:ListItem Value="Cockatoo ">Cockatoo</asp:ListItem> <asp:ListItem Value="MaCaw">M aCaw</asp:ListItem> <asp:ListItem Value="African Grey">African Grey</asp:ListItem> </asp:DropDownLis t>
So if the Querystring in the URL had domain.com?Parr ot=Cockatoo , the DropDownList above would default to this value both visually and behind the scenes.
Any help again appreciated!!
Regards,
Gary.
The easy way to do this is to have code in the background on your
onload function determine the value of the querystring. Then have it
iterate through the TypeOfParrot.li stitems and then tell the
dropdownlist to select whichever Id you previously found.
KT
I was playing with SelectedIndex, but just kept getting annoying errors...
Clueless :)
"Jeff Dillon" <je********@hot mail.com> wrote in message
news:O6******** ******@TK2MSFTN GP04.phx.gbl... What have you tried? It's very similar to your other post, but instead of .Text, it's another property in a DropDownList. Hint, look for the word "Selected.. " in one of the properties.
Jeff
"Badass Scotsman" <ba************ *@aye.net> wrote in message news:e4******** ***********@new s.demon.co.uk.. . Hello,
I have some "runat server" form drop downs on the page, for example:
<asp:DropDownLi st ID="TypeOfParro t" Runat="server" name="TypeOfPar rot" class="textbox" > <asp:ListItem Value="">Please Select</asp:ListItem> <asp:ListItem Value="Cockatoo ">Cockatoo</asp:ListItem> <asp:ListItem Value="MaCaw">M aCaw</asp:ListItem> <asp:ListItem Value="African Grey">African Grey</asp:ListItem> </asp:DropDownLis t>
So if the Querystring in the URL had domain.com?Parr ot=Cockatoo , the DropDownList above would default to this value both visually and behind the scenes.
Any help again appreciated!!
Regards,
Gary.
So after an error, your tried something else right? Click once on
SelectedIndex, and press F1.
Did you try the other Selected.. properties? There are only 3 or so...
Let me know how it goes.
Jeff
"Badass Scotsman" <ba************ *@aye.net> wrote in message
news:e4******** ***********@new s.demon.co.uk.. . I was playing with SelectedIndex, but just kept getting annoying errors...
Clueless :)
"Jeff Dillon" <je********@hot mail.com> wrote in message news:O6******** ******@TK2MSFTN GP04.phx.gbl... What have you tried? It's very similar to your other post, but instead of .Text, it's another property in a DropDownList. Hint, look for the word "Selected.. " in one of the properties.
Jeff
"Badass Scotsman" <ba************ *@aye.net> wrote in message news:e4******** ***********@new s.demon.co.uk.. . Hello,
I have some "runat server" form drop downs on the page, for example:
<asp:DropDownLi st ID="TypeOfParro t" Runat="server" name="TypeOfPar rot" class="textbox" > <asp:ListItem Value="">Please Select</asp:ListItem> <asp:ListItem Value="Cockatoo ">Cockatoo</asp:ListItem> <asp:ListItem Value="MaCaw">M aCaw</asp:ListItem> <asp:ListItem Value="African Grey">African Grey</asp:ListItem> </asp:DropDownLis t>
So if the Querystring in the URL had domain.com?Parr ot=Cockatoo , the DropDownList above would default to this value both visually and behind the scenes.
Any help again appreciated!!
Regards,
Gary.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: shank |
last post by:
I need a super simple 100% ASP and/or VBScript shopping cart.
No JavaScript allowed!
Can write to cookies, but not a database. (Sessions maybe OK)
I don't need any special buttons and whistles and fancy features.
Just want to add product, recalc, empty and checkout.
No prices and no shipping charges needed.
Can anyone recommend such software?
thanks!
|
by: bayouprophet |
last post by:
Cant get menu script to to put linked page in the same frame. I am
new to Java
and I am wondering what am I doing wrong? below are my java applet
file, frame.html file, and my text file and one of my link file that
should load next to the menu on the same page. And Thank You in
advance.
Here is my menu applet:
<html>
|
by: gregsands |
last post by:
Hi
I have read all (ok most) of the posts relating to "Call to undefined
function mysql_connect()", read the manual on PHP.net and done
eveything thats ive been asked to do but cant get PHP to talk to MySQL,
PHP is working fine but I dont get any mysql info when running <?
phpinfo() ?> and get the "Call to undefined function mysql_connect()"
when trying to connect to mysql through php in browser, please help.
1. I have added C:\php;...
|
by: Martin Fletcher |
last post by:
I cant get the Concat function to work, please help.
Here's some of my code.
Module modTCP
Public TCP_RECEIVED_DATA As String
Private WithEvents TCP_SERVER As New WinSockSVR
Private Sub TCP_SERVER_DataArrival(ByVal strData As String) Handles
TCP_SERVER.DataArrival
Dim strNEW_STRING As String
|
by: Jim Florence |
last post by:
Hi,
I've just add a couple of dropdowns to my ASP form, set up a
sqldatasource and bound to the dropdown and it all works great.
I want the first item of the dropdown to be blank soa fter reading a few
articles the DropDownList1.SelectedIndex = -1 seems the way to go.
I've tried setting this oin the asp page and on a page load event in the
vb behind but I still cant get a blank dropdown
| |
by: riteshraha |
last post by:
Hi everyone, I am a member of this forum. i have posted my problem repeatedly to this forum. but i cant get any reply from this forum. plz anyone make any reply of my problem.
I cant retrieve selected item from checkboxlist in asp.net project.
when i submit multiple item from checkboxlist it works fine. but when i am trying to edit this items then checkboxlist does not select the previous values that i have selected.It only selects one item....
|
by: Johan |
last post by:
Hi!
I cant get the ToolStripProgressbar property "Style.Continuous" to work in
my Windows form application. The progress bar still have the default look(blocks)
when i run it.
Is there any thing more you have to do to get it to work?
Regards
/Johan
|
by: leafgreen |
last post by:
Hey everyone. Thanks for helping me with these two super-simple newbie questions. I use DW8.
1. On this page http://adswebsite.net/yahoo-search-versus-google-adwords, on the right column where it says "More AdsWebsite Guides" and below that, the colored cells/rows are taller than I want. How can I keep them about the same height as the text for each cell? On this page: html http://adswebsite.net/affiliate-networks-for-webmasters.html I added...
|
by: =?Utf-8?B?Y29yeQ==?= |
last post by:
i cant get the playstation 3 to connect to call of duty 4 online through the
router but i am able to connect to the game online through the modem. I am
able to still get on the internet through the router on my playstation just
cannot connect to the game online.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |