Tagged Questions
0
votes
2answers
39 views
How do i pass values through razor in mvc4
I'm having a difficult time with Razor and how it passes values back to my controller.
I have the following code
<div data-role="fieldcontain" class="inline-toggle">
<label ...
-1
votes
4answers
27 views
how to get horizontal alignment of headers
I have 2 headings 'CompanyName' which appears top left, and 'Date' displays top middle.
I am having difficulty getting them horizontally aligned. i've tried putting them inside a div but to no ...
0
votes
1answer
22 views
Positioning form inputs using twitter bootstrap
I'm trying to position some input fields in a form, but no matter what I try I can't seem to get it right. I want to have the form centered in the page with each input labeled and have the inputs have ...
0
votes
1answer
21 views
How to get paypal payer details using auth token?
I am working on asp.net mvc. I am trying to implement paypal subscription to my website. I have followed this link
like they specified i created a page like,
<html>
<body>
<form ...
0
votes
1answer
19 views
CSS Table Column Freeze
Could someone help with this
http://jsfiddle.net/smilepak/8qRQB/4/
<div>
<table>
<tr>
<td class="headcol">Fiddle Options</td>
<td ...
0
votes
2answers
35 views
How to display html elements beside each other
I have the following code inside my asp.net MVC Razor view:
<p>
@using (Html.BeginForm()) {
@Html.ValidationSummary(true)
@Html.HiddenFor(model => model.GroupID)
...
0
votes
1answer
17 views
How to define the ActionMethod and Controller name inside Html Input
I have the following Input field inside my asp.net mvc:-
<input type="reset" value="Cancel" class="btn" />
But how i can specify that in case a user click on this button to return back to the ...
0
votes
0answers
11 views
Is There A Better Way To Setup RadioButtonFor?
I have created a radio button group, and it's working but it doesn't seem optimal to me. MSDN says "RadioButtonFor Returns a radio button input element for each property in the object that is ...
0
votes
2answers
33 views
Parsing JSON in Kendo UI Window control
I am having a controller action that returns a JSON as below.I dont get any errors. If i populate static data it is shown in the window.
public ActionResult Reader()
{
return ...
0
votes
1answer
39 views
Match appearance of buttons
I have two buttons (both working btw..I just need to change the appearance of them to match)
First button opens a print preview page, the second button opens the web browser print dialogue screen. I ...
1
vote
2answers
19 views
Right align position of a button
ATM my button appears at the top left of the page. I want to change it to top right. I've added the text align., to the tag and the button..but makes no difference....any ideas?
<a ...
0
votes
1answer
62 views
ASP.NET MVC Url.Action creating Get not Post
I have:
public ActionResult Create(Guid appId)
{
var vm = new CreateViewModel(appId);
return View(vm);
}
[HttpPost]
public ActionResult Create(CreateViewModel vm)
{
// this does some ...
1
vote
1answer
25 views
child window onfocusout event not firing on refreshing
I have one main window and some child windows. My child window is creating by code behind.
var newWindow = window.open(url, windowName, windowFeatures);
Also I need to add
...
-10
votes
0answers
55 views
How can I convert this quiz to MVC3 [closed]
I have a quiz I made using HTML and Javascript. I'm hoping to use MVC to have the questions on the database and dynamically create them in a view. Currently, I have the javascript doing all the work, ...
3
votes
2answers
65 views
HTML not rendering inside Razor if
I have inside a view file something like
@Html.ActionLink("Details", "Details", new { id=item.RuleId }) |
@Html.ActionLink("Edit", "Edit", new { id = item.RuleId }) |
...
0
votes
2answers
46 views
Load and parse remote page
I am upgrading an old asp site to asp-mvc4. Because there will be a fair amount of style changes between old and new, as part of the process (prior to each page being fully converted) i want to ...
0
votes
5answers
38 views
Prevent divs from filling empty space?
Im trying to display an address using a div layout so that the address will be displayed something like this:
Customer Name: John Doe
Address Line 1: Example Street 13
Address Line 2:
Postal ...
0
votes
1answer
43 views
Converting Html.action link to a regular link
I have the following code generated by default from asp.net mvc
@Html.ActionLink("Details", "Details", new { item.ORG_ID })
But I am using an open source web template where I can display a user ...
0
votes
2answers
46 views
How i can embed Outlook Web App into my site?
I want to embed Outlook Web App into my site. Show Calendar, mail, people screens directly on pages of my site. I tried to do it via iFrame, but it is forbidden. Is it possible at all?
1
vote
1answer
59 views
Hiding and displaying a menu using javascript in mvc
I am using mvc in which I have two type of users; "student" and "staff". I want to filter these users and show a menu to them which, depending whether the user is a student or staff, should change. ...
1
vote
2answers
40 views
How to ignore the CSS style from the parent box?
I'm trying to put some code of a complete Html page where I've setted inside of a frame. I feel obligated to use put all of this content in a box because the innet text has its own page and its own ...
0
votes
1answer
22 views
Attribute action in form tag doesn't find my ActionResult
I have an mvc3 application and I'm trying to implement Forms Authentication. I'm trying to invoke the CheckUser ActionResult in my SecurityController controller but it just doesn't find it. I guess it ...
1
vote
4answers
40 views
Razor `if` does not register closing `}` if there is an opened `<table>` tag?
This code, in a Razor view:
if (true)
{
<table>
<tbody>
}
...
if (true)
{
</tbody>
</table>
}
does not run. It claims that there is no closing } on ...
0
votes
1answer
55 views
Button disabled if column is empty?
In my EDIT.cshtml view page I would like the approve button to be set to disabled if the customer email record is empty. ATM I have it at appear or disappear depending on wether the email exists. I ...
-1
votes
0answers
31 views
ASP.NET Creating a dated table view
Right I'm trying to build an ASP.NET application that displays data in a number of different tables. Each column in the table represents a week (headed by that weeks number in the year) over a ten ...
1
vote
2answers
83 views
Check if the button has changed in Javascript?
I'm trying to figure out how to get my Javascript code to check whether or not a button has been chosen. If it has, I would like to display the button's value.
I have the following HTML:
<li ...
2
votes
1answer
31 views
What are valid and invalid pixel units?
I would like to create a textbox to capture the width of an image from the user.
This measurement should be in pixels, what sort of validation should I use when capturring the pixel unit?
Is it ...
0
votes
4answers
105 views
Binding an Enum to a DropDownList in MVC 4?
I've been finding all over the place that the common way to bind Enums to DropDowns is through helper methods, which seems a bit overbearing for such a seemingly simple task.
What is the best way to ...
0
votes
3answers
94 views
HTML button submitting form
I have a javascript function which changes some fields on a form, I have two buttons one to call javascript function, and the other submits the form. Problem is the button to call javascript function ...
0
votes
0answers
27 views
Html Dropdown with a count of each option in MVC
I have an options box:
<select name="TypePar" onchange="this.form.submit()">
<option value="0">All Vehicles</option>
<option value="1">Car </option>
<option ...