Im curious to see if you can overload controller methods in ASP.Net MVC. Whenever I try, I get the error below. The two methods accept different arguements. Is this something that cannot be done?
The current request for action 'MyMethod' on controller type 'MyController' is ambiguous between the following action methods:
I'm frequently adding a lot of content files (mostly images and js) to my ASP.NET project. I'm using VS publish system, and on publish, new files are not published until I include them in the project. I would like to auto include all files in specified directory. Is there a way to specify wich directories should be auto-included in csproj file or anywhere else?
I am developing a web form using Visual Web Developer
Currently I have class source files in the same directory as the web form, or in the App_Code folder. I'd like to organise the files into folders within the web form folder, but I can't find a way of adding a reference to the folders, and they don't seem to be being picked up automatically.
These are files that are under constant development.
What is the asp.net/c#'s equivalent concept to c++'s #include?
Is it safe to access asp.net session variables through static properties of a static object?
Here is what I mean:
public static class SessionHelper
{
public static int Age
{
get
{
return (int)HttpContext.Current.Session["Age"];
}
set
{
HttpContext.Current.Session["Age"] = value;
}
}
public static string Name
{
get
{
return (string)HttpContext.Current.Session["Name"];
}
set
{
HttpContext.Current.Session["Name"] = value;
}
}
}
Is it possible that userA could access userB's session data this way?
Hi,
I have an ASP.NET MVC view on which I've placed jQuery tabs. I'm loading the tabs using:
function getContentTab(index) {
var url='<% = Url.Content("~/Books/GetBookTab") %/' + index;
...
}
I have stored the user's default tab selection in the model associated with this view.
My question is this, how can I set the tab number (index) with the number in my model data?
Thanks,
Arnold
Hi,
I have a server with an asp page on it that generates a report in Excel, using the Excel.Application object. Normally, Excel would have to be installed on the server to work. I was wondering, however, if it is possible to utilise the excel install on client machines to do this instead, as I can't install Excel on the server?
Thanks for any help you can give
I have seen demos of ComponentArt's and Telerik's toolsets.
I am interested mainly on finding a grid control, a tabstrip control, a menu control and a treeview control
Do you know any company besides the forementioned that offers ASP.NET MVC controls solutions?
Which one do you think is the best/most reliable?
I'm sorry for asking yet another "best [insert-technology] book".
I know a bit of MVC, I want to start a project in MVC 2 and a good book would be really helpful.
Usually, after a while, people come to a consensus what are the top 2-3 books for learning a given technology.
Have you read any ASP.NET MVC 2.0 book? If so, how was it?
I am developing asp.net mvc web app with MongoDB as the data storage.
I want to know others opinion about what drivers to use.
Should I use C# drivers which is supported by community?
Or, should I go to use Javascript driver which is supported by Mongo. How stable is javascript driver?
Thanks in advanced..
So I've seen the following tags in an ASP.NET application and I have no idea what they mean (also I couldn't google them because google doesn't support special char's):
<% %>
<%# %>
<%: %>
<%= %>
and maybe a few more. So what do these do and how are they different from each other?
Shame on me, but i have a plain asp iis6 server and they want an ajax upload input with percent upload feedback, what should i do? do i ask for .net capabilities? any guidelines or some advice? Thanks for advance
Hello again,
I want to search an ASP.net form for all types of validation controls and programmatically add some attributes to them such as ForeColor. Can someone point me in the right direction on this?
Cheers and thanks Stackers :)
I have a very popular site in ASP.NET MVC/MS SQL, and unfortunately a lot of deadlocks occur. While I'm trying to figure out why they occur via the SQL profiler, I wonder how I can change the default behavior of MS SQL Server when doing the deadlocks.
Is it possible to re-run the transaction(s) that caused problems instead of showing the error screen?
I'm looking for either an ASP.net or PHP based webmail app I can install on my shared hosting.
I want to set this up on one of my domains for my Gmail address, due to Gmail being blocked at work.
I'd like the interface to be as similar to Gmail as possible, conversation view, labels, starred emails etc if possible well at least allow me to keep with my GTD workflow.
Any suggestions?
how to implement a counter in label which decrements every time page is loaded in asp.net(vb)?
It would be better if that counter value is accessed from and updated into database..
I've tried this on buttonclick but the value is reset automatically to intial value everytime
as the button is insert and page is reloaded
Protected Sub InsertButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim entries As Label = FindControl("label1")
entries.Text = entries.Text - 1
End Sub
Hiya,
I am trying to set the focus to the user name TextBox which is inside an ASP.NET Login control.
I have tried to do this a couple of ways but none seem to be working. The page is loading but not going to the control.
Here is the code I've tried.
SetFocus(this.loginForm.FindControl("UserName"));
And
TextBox tbox = (TextBox)this.loginForm.FindControl("UserName");
if (tbox != null)
{
tbox.Focus();
} // if
I have a very popular site in ASP.NET MVC/SQL Server, and unfortunately a lot of deadlocks occur. While I'm trying to figure out why they occur via the SQL profiler, I wonder how I can change the default behavior of SQL Server when doing the deadlocks.
Is it possible to re-run the transaction(s) that caused problems instead of showing the error screen?
In a few months I need to decide whether to continue developing business applications using Silverlight, or take another opportunity developing business applications using ASP.NET MVC. The pay and conditions will be fairly similar.
What do you think the best long-term career choice is?
Does anyone know of any tools for generating ASP.NET MVC CRUD User Interfaces (E.g. the controllers and views for Admin tools), given:
A set of model objects.
A set of repositories for retrieving those objects.
Thanks
I think the Folder upload is supported java applet.
But how can i use java applets in Asp.net c#
Please tell me about this, without the Flash and silverlight.