html.textbox

How do access the contents html.textbox while on the page in asp.net MVC

Hi everyone, i am trying to access the contents on my textbox while on the page. is there anyway of doing that ? Thanx Owais ...

how to pass Html.TextBox to controller?

May be this simple. But, I've hard time figuring it out. I've a controller with different actions that calls the DB code and return result. I want to pass the value of text box to different actions in controller. How to do it? I know that, I can pass values by using form. But, I don't to know how to call different actions in controller...

Asp.NET MVC Html.TextBox refresh problem

hello, i have a problem with asp.net mvc 2 and the html.textboxfor helper. i use the follow code in a form: <%= Html.TextBoxFor(model => model.Zip, new { @class = "txt", id = "zip", tabindex = 1 })%> when the user send the form, i validate the zipcode, when the zip is invalid we set the corrected zip. my model has the corrected zip,...

MVC 2 - Name Attributes on HTML Input Field when using Parent/Child Entities

Hi All, I'm pretty new to MVC 2 using the Entity Framework. I have two tables Company {ID int identity PK,Name nvarchar} and User {ID int identity PK,UserName nvarchar,CompanyID int FK}. A Foreign Key exists between User and Company. I generated my ADO.NET Entity Data Model, a Controller and a view to insert a record. My HTML form has...

ASP.NET MVC2 -- Trouble with Model Binding and Html.Textbox()

ASP.NET MVC Model Binding is still new to me and I'm trying to understand exactly how it works. Right now, I appear to be having problems with a feature of Html.Textbox() Specifically, I have a View where I set Html.Textbox to a value both in the "Get" and the "Post". It sets fine in the "Get", but after the user submits a value during ...