I want to add row to my table dynamicly like this :    var tableRef = document.getElementById('tblData').getElementsByTagName('tbody')[0];         var newRow = tableRef.insertRow(tableRef.rows.length);         var newCell = newRow.ins...
I'm trying to set focus on a text box which is generated in the following way:  <%=Html.TextBoxFor(model => model.Email, new { style = "width:190px;Border:0px", maxsize = 190 })%>   I tried to use javascript which didn't help...
What's the correct syntax for an HTML helper (in MVC2) to define an onblur handler where the textbox is generated with code like:  <%=Html.TextBox(     "ChooseOptions.AddCount" + order.ID,     (order.Count > 0) ?  AddCount.ToString(...
I have a JavaScript variable in my jQuery code that contains an ID that I need to use in my Html.ActionLink but it's not working:  @(Html.ActionLink("Genomför", "AnswerForm", "AnswerNKI", new {id = goalcard.Id},null))   I...
I have a drop down in mvc  @Html.DropDownList(   "Name",    new SelectList(Model.Product, "Value", "Text"),    string.Concat("-- ", "Please select the item", " --"),    new { id = "Product", Cla...
How do I call a JavaScript function from a texbox that is generated by an MVC Helper. I want my textbox to call a function like this:  <input type="text" id="Ejemplo" onkeyup="SumaEjemplo()" />   I'm using:  <%= H...
I've written a custom HTMLHelper that outputs some javascript.  The javascript is being added to the page but it's not being run when the page loads.  If I copy / paste the generated JS into the console window of Chrome, the script works perf...
How do you get a drop down list to control the value of a Javascript variable?  I'm trying to give the option of filtering a table by year, and I want this dropdownlist to change the value of a Javascript variable called yearVariable.  My code:...
I'm not sure if I have my question named correctly but here's the issue:  I have an MVC.NET app that is deployed at multiple virtual directories. The reason for this is because we have different versions under various stages of QA.   The prob...
I am working on code to determine whether or not to show a contact information section.  To do this I am implementing the RadioButtonFor html-helper with a boolean value for the MVC view model in Razor.  When the page is loaded I need to change from...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.