I'm having a ASP.NET MVC 2 Project where I'm making some management system... The thing is that I have 4-5 controllers that are all related to a specific thing in the management system and having 4-5 diffrent view folders dosent make it any easier.. Since its "a part" of the management system I dont really see how I can make use of areas. UPDATE: For example I have a thing in my management system called "Product Management", this thing have following controllers attached:
CategoriesController =
Add/Delete/Edit categories.
ProductsController = Add/Delete/Edit
products in categories.
OrdersController = Add/Delete/Edit
orders from users.
Seems like a waste that I need to create 3 diffrent view folders for those controllers.. Would be much easier if I could create a folder under the "Views" named "Product Management" and then just create a sub folder for each controller...
I have form and i'm using web parts for asp.net.I want the first web part the stretch the entire width and on the second row I have 2 small web parts to on the second row
<big web part>
<second><third>
But, I can't get the 2nd and third web parts to be on the same line. [Code]....
I am making gridviews at run time; it works fine, except they are made going verticly down the page; I need them to line up horizontally on the page side by side.
In my company app we have organized it something like the following:
1. Solution (Transcripts) Solution Folder - Lib Solution Folder - Debug Solution Folder - Release Class Library Project Web Project
My Question:
1. All my references from Web Project are referencing to the DLL's in the Lib folder under Solution (Transcripts). Why can't we refere to DLL's directly under Web Project why the need of creating a new solution folder "Lib"?
2. When we publish the Web Project. Does that mean that all the DLL's under Lib solution folder also gets published?
I am a new bie to work with ASP.net. I want to create an application /site in asp.net which work like content management system. As we see many sites are now a days being build on JOOMLA. How can we create such a CMS (content management system) sites using ASP.NET.
I want to control, configure and manipulate IIS 6.0 and later versions via ASP.Net web application using WMI and .Net.
Can i use a mix of Microsoft.Web.Management and System.DirectoryServices? Is there a difference between the two? Will System.DirectoryServices be supported for later versions of IIS. i.e IIS 7.0+ ? Where is the better of the two and why (considering the objective in line #01
I am creating a content management system but there is one problem. What I want to do in my website is that when a user opens the website a new sessionid is created for that user, and when the user closes the website, the sessionid is cleared. How can I can do it?
I am using SQL server 2008 . What i all want is to create a uses that can only see the ABCDatabase in Management studio onced login. And to achieve that:
1- I have created a new user. 2- Deny View all database right to that user. 3-Set that user as Owner of ABCDatabase
Now on login that user cannot see other databases but still able to see the system databases. How can i hide those system databases from that user?
I am a first time user of Microsoft Visual Web Developer. I am using it to create a Store and Inventory Management System. The app has four types of users - Administrator, Sales Person, Inventory Manager, Sales Manager. I have created four roles for the above user types and created folders under the root directory accessible only to each of these four roles. Now, an Admin should be able to create or delete the other three types of users. I have created a CreateAccount.aspx page under the admin folder using ASP.net Login controls. But in order to reach that page an user has already has to be logged in as Admin, so the CreateUserWizard control is not working. Could anyone tell me how to structure my app, so that the admin is able to add or remove other user accounts?
I am using this to store my user information for authentication. I'd like to know where this is actually being stored? I know that people suggest to store the Session state in SQL. Is this necessary for the Cache as well?
I'm using WMI in .NET to connect to remote machines in a web app. When I initialize the connection, the Management ConnectionOptions always require a username and password in text. I was wondering if there was a way for it to use the context of the current Windows user, eg via page.user.identity. If I leave the connectionoptions blank then it doesn't appear to default to anything - remains null. The reason is because I don't want the user to have to enter a logon/password - that's the whole point of Windows integrated security, right?
Im using vb.net, sql2005, ajax, .net3.5. Ok first off, yes i know there are some great CMS applications available already, dot.net nuke, kentico, umbraco, etc etc. However my problem is that i cant bring an external open source app into our organisation but i could develop one.
Im doing this to allow us to move all our HTML content, (Static pages) into a system that provides some sort of basic workflow and content management, im confident on doing this, my problem however is that ive been asked to store the data in XML.
Whilst i know that i can store the XML inside my database, and then read it out and transform im not sure how to do this when it comes to how authors create the pages - What i mean is normally i would give the author an HTML editor to add content, but this isnt going to work if im writing to XML, and also, what happens if they add an table inside the HTML editor
Has anyone every seen this done, is it even possible, or should we just look to use HTML stored inside the DB?
Assumptions: Microsoft stack (ASP.NET; SQL Server).
Some content management systems handle user-generated content (images, file attachments) by storing it in the file system. Others store these items in the back end database.
Some examples of both:
[code]....
What's the best approach, and why? What are the pros and cons of keeping user files in the database? Is there another approach?
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Try loginRep = BusinessLogic.SR.GetUserName("99999") System.Web.HttpContext.Current.Items.Clear() System.Web.HttpContext.Current.Items.Add("RepId",loginRep)
I don't any errors and when in the run in the immediate window:
? System.Web.HttpContext.Current.items("RepId") in the immediate window on THAT page I get the OBJECT.
Then I have a hyperlink with navigateurl to the next page "~/ActCnt.aspx"
On that page, ActCnt.aspx, when in the code I have:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LoadIf Not Page.IsPostBack Then Dim loginRep As BusinessLogic.SalesRep = System.Web.HttpContext.Current.Items("RepId")
In the immediate window ? System.Web.HttpContext.Current.Items("RepId") returns a String that is equal to "RepId".
Even if I change it to not be an object, but a string I only get the Name "RepId" of the keypair. I have NEVER gotten the actual value.
I need to refresh my webpage in case of a change in the system time. However I see that my session variables are becoming null when the system time changes. So I cannot perform the refresh action since my webpage requests a login.I am not setting the Session variables to null explicitly anywhere in the code. I can't seem to figure out how they are becoming null.
Is there a good way to test and debug these errors. I constantly get them emailed to me from my production site but I can not duplicate them. Below is the entire error.
User: jbrown IP: 74.202.255.133 Session[STUser] = DAL.stUser Session[PlaylistName] = Adult Contemporary Holiday Blend 2010 (vol. 2) Session[PlaylistId] = 3865 Session[SES-FAN] = SessionFan Session[fullPreview] = yes System.ArgumentException: Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %>in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager. RegisterForEventValidation method in order to register the postback or callback data for validation. at System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument) at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Exception of type 'System.Web.HttpUnhandledException' was thrown. System.Web at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.brandbrowse_aspx.ProcessRequest(HttpContext context) in c:WindowsMicrosoft.NETFramework64v2.0.50727Temporary ASP.NET Files oote6fbb3019956ec5aApp_Web_u-x9w715.8.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)