on one page of my app i get a Type is undefined on the ajax script. why would this be?
EDIT
Type is not defined
MicrosoftMvcAjax.js()()Microsof...vcAjax.js (line 6)
[Break on this error] Type.registerNamespace('Sys.Mvc');Sys.Mv...reate_AjaxOptions=function(){return {};}
...
When I return a JSon value, i simply want to put a string inside an existing div
EDIT: Let me Rephrase this: I want my MVC controller to return a JSON object to the UpdateTarget specified in the MVC AJAX call. Instead of returning "content".
...
I'm beginning to design the infrastructure of web application developed with ASP.NET MVC preview 2 as a learning experience.
I have my own domain model and database schema I wish to use for authentication.
I want to perform a variant of role base authentication. However, I can't seem to wrap my head around how to do this.
I have a user...
Hi,
I'm using ASP.NET MVC controllers for providing RESTful web services. That works just fine for simple data types like string and int. Now I need to send some binary data (like images and video) to this web service. My question is - what data types do I have to use as Action parameters and what else should I be aware of?
Thanks!
...
I got an issue when using jgGrid from IIS 6. My javascript looks like:
jQuery("#sandgrid").jqGrid({
url: '/Deposit/Search?startDate=' + startDate + '&endDate=' + endDate,
datatype: 'json',
.....
It runs fine on my local using development web server. But when I deploy to IIS. It failed to retrieve the data, because it sent...
Are there any particular settings one should optimally enable/disable/tweak when doing ASP.Net MVC development on local test machine Windows 7 using IIS 7.5 and moving in and out the debugger & recompiling refrequnetly (integration/troubleshooting stage now before TDD fantactics throw stones - although admittedly I could have more under ...
Is it possible to disable a certain action parameter from retaining its value across requests?
[HttpPost]
public ActionResult MyAction(string value1, string value2)
{
if(value1=="hi")
ModelState.AddModelError("value1", "Can't have hi");
//do stuff
if(ModelState.IsValid)
return RedirectToAc...
Hey Guys,
How to connect to different databases for a .NET MVC web application written in C#?
Here the stucture of the database table remains the same. All that changes is the database name. So how to I manually connect to a database or use modify the connection string?
The trick is to use the same code. Depending on the URL I want th...
I have 2 groups of radio buttons with 2 links , corresponding to each of the group, in my ASP.NET MVC application.
below attached is the screenshot for better clarity.
Now when i select the appropriate link , the value associated with the particular group should be passed on to the contoller Action .
for instance in the above case ...
A user can't edit/view the records of other users. Edit/View is allowed only to the owner of the record. When the passes id of other user's record, the application allows him to edit it.
I need to verify the ownership before editing or viewing the record.
My question is almost same as this.
http://stackoverflow.com/questions/1417248...
Hi SO,
I need to parse aspx, ascx, master files in an MVC project to an object model so that I can allow people to change particular parts and save the file back ~ A content management type of thing.
Is there anything in the framework to help me?
What I have tried.
XDocument.Load: Cannot load the
directives and inline code blocks
Ge...
Good morning all,
I'm sure this is a gimme, but I have no idea where this issue is coming from.
I have the following lines in a view:
<fieldset>
<dl>
<dt>
<label for="FormTypes">Form Type:</label>
</dt>
<dd>
<% =Html.DropDownList("FormTypes", "All") %>
</dd>
</...
how to append error messages on validation summary through javascript.
i have added a validation summary, click on check button need to validate the credit card and retrieve the information back to the user, if the card is invalid i need to display that message in the validation summary.
how can i do that? is there any way to programatic...
Hi,
You can provide alternate templates for individual types, but is it possible to override the template that wraps the label, field and validation up.
Change:
<div class="editor-label"><label for="Content">Content</label></div>
<div class="editor-field"><input class="text-box single-line" id="Content" name="Content" type="text" valu...
am trying to send a mail from my localhost using c sharp using smtpclient class in the system.net!!having done everything a generl exception is thrown (mail not sent)??please help??is there any thing that might be wrong with my iis configuration?? i doubt!!any way help!!thanks in advance
...
Hello all,
I am getting the following error while running my MVC application, which uses the json data:
An error occurred while creating a
controller of type
'ecom.Controllers.AdminController'. If
the controller doesn't have a
controller factory, ensure that it has
a parameterless public constructor."
Please Suggest some...
My current site (VisualHint) uses ExpressionEngine and allows me to have the basic ecommerce I need inside a templated web site containing several blogs (one is the main blog, the others are testimonials, announcements).
But I need more to handle licenses and subscriptions, so I decided to port the site to asp.net mvc. My only concern r...
What exactly is a unit test and how do I write one? I hear many times people write them before their app is even written, how can this be? I am under the impression that a unit test is some code that makes a call to a method of your app with a set value and expects a specific value to come back, if the specific value does not come back t...
I want to have an console application that I would use to render the output to a file.
Pseudocode:
ComponentBaseController controller = new ComponentBaseController();
SaveToFile("output.html", controller.Result);
I am not using real code here since I have tried different approaches, but nothing gets me near.
The closest I got using ...
We are planning to buy a product that's developed on ASP.NET MVC, JQuery, SQL 2005. .basically latest MS stack. This product is going to store some of very highly sensitive data.
So, we need to evaluate that product in terms of security.
But I'm confused as in How can I certify that this product is secure and we can buy it.
I don't ...