-1
votes
1answer
16 views

Going to an URL without redirecting asp.net mvc 3

I am inside an action in the controller. From that action, I want to go to a url which will run some VB code which will clear some cached content. But I don't want to redirect to the URL or even show ...
0
votes
3answers
47 views

List to CSV and Excel

I have a List<Customer> which holds 5,000 lines where Customer is public class Customer{ public Int32 CustomerID {get;set;} public String Name {get;set;} public Decimal ...
0
votes
1answer
23 views

using dropzone to upload files to database

i am having trouble properly uploading files to database using dropzone js (www.dropzonejs.com) i am not sure how to properly hit the ActionResult <form action="UploadFiles" class="dropzone"> ...
1
vote
2answers
43 views

Setting the default value to a select list

I have this list of string: public static readonly List<string> LIST_ITEM_STATE = new List<string> { "Brand new", "Never used", "Slightly used", "Used", "Heavily ...
0
votes
3answers
20 views

Error in connecting aspx.cs to database situated in app_data folder [database connection error]

I am trying to connect database using asp.net, but I am getting following Exception: System.ArgumentException: Invalid value for key 'attachdbfilename'. objconn.ConnectionString = "Data ...
0
votes
3answers
67 views

C# asynchronous method - help needed

I have an asynchronous method that consumes a Web API action. It appears to be stuck in a loop. My reasoning for this is because if I put a break point on line 1 of the catch block, and step into, it ...
1
vote
2answers
53 views

BackgroundWorker in MVC pattern

public ActionResult Index() { BackgroundWorker bw = new BackgroundWorker(); bw.DoWork += new DoWorkEventHandler(Domail); bw.RunWorkerAsync(); Return View(); } private void ...
1
vote
2answers
46 views

C# MVC ActionResult that returns multiple files

Can an MVC ActionResult return multiple files? If so, can it return multiple files, of multiple type? Examples: Can an ActionResult return myXMLfile1.xml, myXMLfile2.xml, and myfile3.xml? Can an ...
0
votes
1answer
37 views

Array Binding in MVC

I'm trying to pass an object from Javascript to my controller. The object is getting recreated just fine, except for a contained array of objects that aren't being recreated properly. I have a class ...
3
votes
1answer
33 views

Syntax error serializing Model to JSON

This line is giving me a syntax error in Visual Studio 2012 (literally just 'Syntax Error'): var data = @Html.Raw(new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(Model)); Model ...
0
votes
1answer
48 views

DropDown not displaying what was previously selected & saved

The customer can view their cust details page where they can change their pre-recorded delivery run (if they wish too) I have a drop down list containing towns for delivery runs: <div ...
0
votes
1answer
35 views

Change the datetme2 format on the model object level

I have a datetime2(7) on my asp.net mvc. But currently the date is saved in the database as:- 2013-07-12 14:27:47.7934737 While on the razor view it will be displayed using @String.Format("{0:g}", ...
-4
votes
0answers
43 views

System.NullReferenceException was unhandled by user code HResult=-2147467261 Message=Object reference not set to an instance of an object [on hold]

I am testing my Audit functionalities, so inside the Create new Group action method i hard coded creating new Audit record that stores the infirmation about the action done . My current code is as ...
0
votes
1answer
28 views

Getting a view outside the project in razor application

I have added a dll to my application. it is the Dll generated by an asp.net web application mvc MyCalendar. I'd like to acces to a view inside this dll , i added this snippet: namespace ...
-1
votes
0answers
27 views

unable to cast object of type System.Managment.automation.PSCcustomObject to type System.collections.Ienumerable [on hold]

I am using Visual Studio 2012 , and I am working on an asp.net MVC web application. but when I tried to create a new controller , I got the following error:- unable to cast object of type ...

1 2 3 4 5 991
15 30 50 per page