Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 01, 2012 03:00 PM by rajsedhain
Member
24 Points
15 Posts
Feb 29, 2012 10:16 AM|LINK
Hi everyone,
i have a general question: Is it possible to link to a certain part of a DropDownList?
e.g. I have a dropdownlist with 3 fields (2010,2011,2012), and the dropdownlist is located on my default.aspx
So is there any way i can link to the default.aspx and i will receive automatically the data from 2011?
All-Star
112231 Points
18268 Posts
Moderator
Feb 29, 2012 10:26 AM|LINK
Participant
1307 Points
268 Posts
Feb 29, 2012 10:30 AM|LINK
hi,
1) if u select any one (ex ;2011) then??
2) u want show the related information ..( in same page )??
plz reply
Feb 29, 2012 10:36 AM|LINK
Something like that:
Link: "Click for more Information"
Now the link guides me to a page e.g. test.aspx and on this side there is a dropdownlist and i want automatically get the data from the second field e.g. 2011 but normally when i link to test.aspx i will just get the data from 2010.
Hope this explained it better
360 Points
60 Posts
Feb 29, 2012 06:27 PM|LINK
If you want the data to be updated when the user selects a different value, you can use the DropDownList.SelectedIndexChanged event:
http://msdn.microsoft.com/en-us/library/1wd7hsyy%28v=vs.85%29.aspx
Contributor
4181 Points
1041 Posts
Mar 01, 2012 03:00 PM|LINK
you can use session to store data in default.aspx page and retain on test.aspx page. Something like this:
default.aspx:
Session[2011] = ddlName.SelectedItem.Text;
test.aspx:
ddlName.SelectedItem.Text = Session[2011]
Wagi
Member
24 Points
15 Posts
DropDownList
Feb 29, 2012 10:16 AM|LINK
Hi everyone,
i have a general question: Is it possible to link to a certain part of a DropDownList?
e.g. I have a dropdownlist with 3 fields (2010,2011,2012), and the dropdownlist is located on my default.aspx
So is there any way i can link to the default.aspx and i will receive automatically the data from 2011?
MetalAsp.Net
All-Star
112231 Points
18268 Posts
Moderator
Re: DropDownList
Feb 29, 2012 10:26 AM|LINK
asyed4u
Participant
1307 Points
268 Posts
Re: DropDownList
Feb 29, 2012 10:30 AM|LINK
hi,
1) if u select any one (ex ;2011) then??
2) u want show the related information ..( in same page )??
plz reply
Wagi
Member
24 Points
15 Posts
Re: DropDownList
Feb 29, 2012 10:36 AM|LINK
Something like that:
Link: "Click for more Information"
Now the link guides me to a page e.g. test.aspx and on this side there is a dropdownlist and i want automatically get the data from the second field e.g. 2011 but normally when i link to test.aspx i will just get the data from 2010.
Hope this explained it better
Andrew Morto...
Member
360 Points
60 Posts
Re: DropDownList
Feb 29, 2012 06:27 PM|LINK
If you want the data to be updated when the user selects a different value, you can use the DropDownList.SelectedIndexChanged event:
http://msdn.microsoft.com/en-us/library/1wd7hsyy%28v=vs.85%29.aspx
rajsedhain
Contributor
4181 Points
1041 Posts
Re: DropDownList
Mar 01, 2012 03:00 PM|LINK
you can use session to store data in default.aspx page and retain on test.aspx page. Something like this:
default.aspx:
test.aspx:
Raj Sedhain