This is a migrated thread and some comments may be shown as answers.

Mvc control issues

0 Answers 12 Views
AJAX and Web 2.0
This is a migrated thread and some comments may be shown as answers.
Dayana Maliyakal
Top achievements
Rank 1
Dayana Maliyakal asked on 08 Nov 2013, 10:51 AM
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

 

 

 

No answers yet. Maybe you can help?

Tags
AJAX and Web 2.0
Asked by
Dayana Maliyakal
Top achievements
Rank 1
Share this question
or