Call Physically Separated UI / BL Code In C# Solution?
Nov 19, 2010
Chapter 19: Physical Tiers and Deployment on MSDN describes "Distributed Deployment" (see figure 2). All well and good.
In my experience we've always deployed our web based systems as per what they describe as "Nondistributed Deployment" (figure 1). My understanding is that in the Microsoft world the "Application Server" as a separate thing doesn't really exist (as it does in the Java world) because it's effectively 'baked in' to the OS / Windows.
I know one answer is to use a "service layer" - what are the alternatives? How would you actually do that? What would it look like from a code perspective?
Out of all the projects that contribute to MVC, I've added only the System.Web.Mvc project to my solution and I'm having trouble with the compilation of the aspx files. Firstly the page compiler complained that ViewResult<T> (which my View inherits from) was specified in two assemblies - the copy in the source code and the one in the GAC. I fixed this by changing my copy of the source code to a higher version and referencing the different verison within the 'compilation' tag in web.config. (In fact you can just delete the assembley reference altogether and it automatically uses the one in the solution.) Then it complained that Html helper methods couldn't find classes such as 'Controller'. Now I think this is because the official MVC assemblies in the GAC are looking for the correct version of 'System.Web.Mvc' (i.e. the one with the right public key) but my app is no longer referencing it.
I thought I'd fixed this with an assembley redirect to my version of the code but now the View templates are complaining about inheriting from classes that are in an assembley with the wrong public key.So is what I'm doing possible or do I need to be recompiling all of the MVC source code?
I am using grid view and on grid delete image click i remove product but i also want to remove image phisically from the folder.i have deleted logically but i need code to delete from folder ?
I have a folder that contains ASPX code and it's codebehind (C#) as well as a solution file. The compiled version of the application resides in the inetpub directory. Whenever I open the solution in Visual Studio, VS warns me that it is attempting to open a precompiled website and asks me if I want to continue. If I click NO it does nothing, but If I click yes it shows me the ASPX files in the inetpub directory. How do I make the solution work with that code in the directory that it is in (ie with the aspx and codebehind)?
I want to create a Dynamic aspx Page in current solution through code-behind..forexample i have a 2 text-boxes one for page-Title another another for page-Content and a button.. whenever that button is pressed, An aspx Page should be created in current solution and should be included in the current solution
I have problem using Visual Studio.NET 2003. When I open solution made early ago, choose the code of the existing .aspx page, could not change it, because when type nothing happened, no letter, no sign, like the keyboard is "dead" (but it is not, ofcourse).
I'm trying to create a .NET solution and add class libraries to it. First - in VS2008 I go to File > New > Project > Other Project Types > Visual Studio Solutions > Blank Solution. Then - after VS2008 creates the blank solution I right click on the solution and select Add > New Project > Visual C# > Class Library. However, when I add the Class Library to the solution, the solution icon disappears from Solution Explorer (although the solution name is still in the VS2008 title bar). Why does the solution icon disappear from the Solution Explorer when I attempt to do this?
I have an asp.net button, that when clicked calls a code behind function. The function does some evaluation, and then I want to call javascript from within this asp.net function.
I have a webservice I need to call via a link. The webservice returns a pdf document and takes a document Id as a input parameter.Under normal circumstances I could have the link call some code in the code behind which in turn calls the webservice.
However the difficult part about it is I can't add code to the code behind. The reason is it is for some CMS users who want to know what links to add to the page which will download the pdfs. I can only add the link to the aspx page.
I have a website that shows images people have uploaded.
[URL]
I want to be able to show a popup window when i move the cursor over an image. It should show information about the user that i take from the database.
I have found a javascript that works, it fades a window in and out. But i cant call it from codebehind.
I am just learning ASP.Net and i am more using C# as code behind than vb.I am trying to call a method of the code behind (file.aspx.cs) from the (file.aspx).I know how to do it the easy way:- create a button from ASP.Net and double click on it than the property "onclick" will be linked to the method.But i don't know how to do it from a query:
- By example, from an Access database,i use the syste, [using System.Data.OleDb;] and i made a query and display it into a standar object named "Table" which has rows (tablerow) and cells (tablecell) and the cells have one of their properties which is "Controls" where developers can add button (regular button, image button, link button, etc). With i display the buttons from the database, i can not call a method from code behind! I can't either use their properties "onclick" to call i method i created in the code behind.Is there a way to do it ?
i have an microsoft .office.interop.excel(dll) located at an directory d:abc. now i do not want to add them as an web reference in my projet and call them
rather call the dll dynamically from my code behind(.cs) is ther any way we can do dynmically