Mvc control issues

1 posts, 0 answers
  1. Dayana Maliyakal
    Dayana Maliyakal avatar
    27 posts
    Member since:
    Jan 2010

    Posted 08 Nov 2013 Link to this post

    Hi Telerik team,

    I am using view as below:

     

     

    <div class="editor-label">

     

    <%

     

    = Html.LabelFor(m => m.UserName) %>

     

     

     

    </div>

     

     

     

    <div class="editor-field">

     

    <%

     

    = Html.TextBoxFor(m => m.UserName) %>

     

    <%

     

    = Html.ValidationMessageFor(m => m.UserName) %>

     

     

     

    </div>

     



    How to do the following things in in controller in asp.net mvc2 ?
      

    Textbox1.Focus();

     

     

    Textbox1.Attributes.Add("Value", cookie1.Values["PassWord"].ToString());

     

    Label1.Visible =

     

    true;

     

    Label1.Text = "test";

     


     

     

     

    if (page.IsPostBack)
    {
    -------------
    }


    How to set css class for a label and textbox in view in asp.net mvc2 ?


    With regards
    Dayana

     

     

     

Back to Top