Search Result

Collapse
5 results in 0.0014 seconds.
Keywords
Members
Tags
mvc3
  •  

  • GoldenKing
    started a topic MVC3 razor view dropdownlist from Enum

    MVC3 razor view dropdownlist from Enum

    I am filling my dropdownlist with items from Enum.How can I get the index of enum items to dropdown list ?

    Here is my Enum
    Code:
    public enum Colors{ red,blue,green,yellow,orange,white,black,Teal,Custom }
    Here is my dropdownlist
    Code:
     @Html.DropDownList("SelectedColourId", Model.ColourList, "(Select one Color)")
    Here is my ViewModel
    Code:
     myPageViewModel:BasicViewModel
    ...
    See more | Go to post

  • Customize text in Source column of the Event Viewer (EventLog)

    Is it possible to write to the Source column in the Event Viewer my wanted source ?

    (instead of ".NET Runtime" ?)

    And if so, how?
    See more | Go to post

  • How to set the selected field of combo box within the view

    I have two options in a combo box.

    Code:
    <select id="selLang">
            <option value="/en" >english</option>
            <option value="/fr" >french</option>
        </select>
    When i choose the second option the page is refreshed and the selected option isn't displayed in the top of the combo box (i mean, as the selected item.)it's funny coz the page...
    See more | Go to post

  • ParPar
    started a topic Translation by Resources Files in MVC3
    in .NET

    Translation by Resources Files in MVC3

    Hello,
    I have a view named Step_1
    and two resources files:
    1. Step1.resx - which is in English, and default
    2. Step1.fr.resx - which is in French.


    On the view there is a selectbox with two options as you guess what they are, (English and French).

    Now is the big question:
    How do i make the language change according to the selected value???

    (meanwhile the view takes its text from the file 'Step1.resx'....
    See more | Go to post
    Last edited by Frinavale; Sep 9 '11, 02:05 PM.

  • How to open a box during a mouseover on an image

    I have an icon image of "?" that gets information about the field it belongs. I want the image to open a box like a balloon pop-up while the cursor is hovering over it(hovering over the image).

    I wrote this:
    Code:
    <div class="formInfo">
      <a href="ajax.htm?width=375">
        <img src="http://bytes.com/images/question_icon.jpg" width="19" height="18">
    ...
    See more | Go to post
    Last edited by Frinavale; Aug 25 '11, 08:50 PM. Reason: Fixed spelling and grammar errors. Formatted the HTML so that it is more legible.
Working...