I'm looking for something like OnClientClick for a button, but I want it to happen after the postback (instead of before). I'm currently using the following, which works, but it adds the script block over and over again, which is not what I want. I simply want to execute an existing client script function.
ScriptManager.RegisterClientSc...
Scott Gu just posted about a new set of charting controls being distributed by the .NET team. They look incredible: http://weblogs.asp.net/scottgu/archive/2008/11/24/new-asp-net-charting-control-lt-asp-chart-runat-quot-server-quot-gt.aspx
The million dollar question is ... will they work with MVC, and if so, when?
...
In asp.net 3.5, I'm rewriting the url
http://www.abc.com/archive/1108/harpersdecember
to the following
http://www.abc.com/article.aspx?docId=78
I'm using this code to do it:
Context.RewritePath("/article.aspx?docId=78");
It works fine locally but when I upload to the remote web server, I get a 404 when trying to re...
I want to study the source code of ecommerce solutions and need suggestions of projects to look at.
...
I need help executing a bat file from asp.net 2.0 and c++.
How to import runtime Sql Server2000 data into Oracle 9i?
How to manage project?
...
I have heard a few developers recently say that they are simply polling stuff (db, files etc) to determine when something has changed and then run a task, such as an import.
I'm really against this idea and feel that utilising available technology such as Remoting, WCF etc would be far better than polling.
However, I'd like to identify...
I make a user control and then want to include it on a page
I have to always manually type the @Register line at the top of my .aspx file, e.g.
<%@ Register TagPrefix="edward" TagName="GetQuote" src="~/Controls/GetQuote.ascx" %>
Is there any way to automatically create these @Register lines?
(I tried dragging in the .ascx file fro...
Marked a javascript file as "Embedded resource"
Added WebResource attribute to my AssemblyInfo class
Now i'm trying to output the embedded javascript to my master page. All I'm getting is a "Web Resource not found" from the web resource url.
Project Assembly Name:
CompanyProduct
Project Default Namespace:
Company.Product.Web
Javas...
I created a protected folder on my ASP.NET site with the "ASP.NET Configuration" tool.
It made a database called App_Data/ASPNETDB.MDF where it stores one (1) user.
While uploading I noticed now that the database has grown to 10 MB and the .ldf file is 5 MB. (!)
I tried to look at it with SQL Server 2008 Management Studio but when attac...
I want to make a page so I can select filters in a "jquery popup", but I don't know how to receive the results.
Suppose I have a page with a ListView, and I want to select filters for it (perhaps with multiple selection from a list), so I make a different ASPX and open it using jquery (actually jqModal) via ajax, the user selects the fi...
I'm trying to migrate a website from Windows 2000 to Win2k3 using the IIS 6 Migration Tool. I'm getting a bunch of 404s on content. A popular theory is that my IWAM account is out of sync with the IIS metabase, and to run synciwam to fix it. However I'm getting this 1B6 error and the only link I haven't chased in google (that's obviou...
I have a 3rd party workflow software (Captaris Teamplate) that's referencing an assembly from my project that's referencing other assemblies from our project solution all through GAC.
When our app executes it invokes Captaris Teamplate method to create a workflow process which in turn uses project assemblies in GAC to store data into a ...
I'm developing a new ASP .NET website which is effectively a subset of the pages in another site we've just released. Two or three of the pages will need minor tweaks but nothing significant.
The obvious answer is to simply copy all of the code and markup files into the new project, make the aforementioned tweaks, and consider the job d...
Hi
I have a datammodel in linq to SQL that includes a type "Party" which is sub classed twice for "Company" and "Individual". I am trying to bind two repeaters to linq to sql queries as follows
Dim oComp As IEnumerable(Of Company)
Dim oInd As IEnumerable(Of Individual)
oComp = From oP As Company In ERM.Parties _
...
I have a class Application that my global.asax inherits from. The class has this method:
protected void Application_Start(object sender, EventArgs e)
{
// ...
}
In my understanding this is basically an event handler that is automatically added to an event (based on the method name [*]). I tried to find out what event exactly, so I...
I understand that you can now create MVC-specific user controls, but will my existing standard ASCX user controls work in an MVC view?
I understand that MVC pages have a completely different lifecycle but will, for example, a Page_Load method be invoked as normal when the control is sitting in a view?
...
I have seen the error "The ';' character, hexadecimal value 0x3B, cannot be included in a name." in my log files for an ASP.NET Web App. The url that's logged looks something like this:
mypage.aspx?paramone=one+two&paramtwo=zero+1
So my first question is what type of system/browser is encoding the original query string? (This happ...
I wish to execute a javascript function after asp.net postback with out using ajax.
I've tried the following in my even method with no luck:
Page.ClientScript.RegisterStartupScript(GetType(), "ShowPopup", "showCheckOutPopIn('Livraison',556);");
...
I have used the smtp class to send emails through code.
Can I use the classes in the .net framework to display emails received on a page without having to use something like exchange sdk?
How would I go about using gmail pop and smtp server information in .net web apps (with the .net classes) to send and receive email?
...
I am working on an ASP.Net application and I want users to be able to take a picture with their local webcam and then upload it to the server.
I can, of course, rely on users doing this manually via their locally installed software, save the image as a file and do a normal file upload. However, what I really want to do is incorporate it ...