Visual Studio 2012(ComboBox -SlectedItem)

391 views
Skip to first unread message

vemuri revathi

unread,
Sep 6, 2012, 1:40:30 AM9/6/12
to v8-u...@googlegroups.com
hii friends,
  i need your help, i am trying to create an example app which uses combobox, i have entered the values/combobox items what i want is when i click on a particular year it should be redirected to a particular page.
i have used the following code
 if(yy.SelectedItem.ToString()=="1960||1972||1984||1996||2008")
            {
                this.Frame.Navigate(typeof(Rabbit));
            }


or 2nd type is the correct way
if(yy.SelectedItem.ToString()=="{1960,1972,1984,1996,2008}")
            {
                this.Frame.Navigate(typeof(Rabbit));
            }
what i wnat is if we click on any of the above years it should navigate to the following page given....There are no errors ,can you please tell me is this a correct format in declaring the values..

thanks in advance

Stephan Beal

unread,
Sep 6, 2012, 6:53:35 AM9/6/12
to v8-u...@googlegroups.com
On Thu, Sep 6, 2012 at 7:40 AM, vemuri revathi <vemur...@gmail.com> wrote:
  i need your help, i am trying to create an example app which uses combobox, i have entered the values/combobox items what i want is when i click on a particular year it should be redirected to a particular page.

v8 has no idea what a checkbox is, and the following is not v8 code:
 
i have used the following code
 if(yy.SelectedItem.ToString()=="1960||1972||1984||1996||2008")
            {
                this.Frame.Navigate(typeof(Rabbit));
            }


 
or 2nd type is the correct way
if(yy.SelectedItem.ToString()=="{1960,1972,1984,1996,2008}")

Nor is {#,#,#...} any sort of legal JS construct. (Perhaps you meant "[#, #, ...]"?)


what i wnat is if we click on any of the above years it should navigate to the following page given....There are no errors ,can you 
please tell me is this a correct format in declaring the values..

v8 doesn't know what a web page is, nor what a click event is. Those are browser-side constructs.

i.e. this is not the proper group for your question.

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
Reply all
Reply to author
Forward
0 new messages