I have two member roles at my project: 1.) Administrator 2.) Member
From the toolbox in Visual Studio 2008, I have dragged and dropped the create user wizard into the stage. I aim that a guest can register itself and automatically join the "member" role. Not the role "administrator". How can I do that?
If I press the submit button, I get to the second action method in the controller (the one with the HttpPost attribute). In this action, the object model itself is not null, but the "Articles" list inside is null.
I'm trying to create a member section for my website and a non member section. I want the nonmember pages to have access to all the member pages but just not certain features like saving to the database. Is there a way to have the same page for both members and non members but have certain controls like buttons and other things that are only usable to the member that is logged in?
I'm working on this big project in MVC ASP.NET w VB.NETOne of my views is getting me headaches since a few and i'm not sure what's up.I've used the Begin.Form and Html.Encode methods alot in my other views and i never had any problems. Now this new Create.aspx view for one of my object called Automation is giving me multiple build errors such as those cited in the title plus
Error 184 'Context' is not a member of 'ASP.views_automatisation_create_aspx'. BeginForm is not a member of 'Html' Encode is not a member of HTML
My header is as follow (just like all of my other working views headers) : \ <%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage(Of XXXXX_XXXXX.Automatisation)" %>
I'm working on an ASP.NET solution with 2 projects. One is the web interface and the other contains my business logic. I'm using LINQ to SQL for my data access in the second project.
Apart of my database, I have a table called Users which holds user information.
I've started to implement a MembershipProvider. I notice that MembershipUser is coupled with MembershipProvider. What is the most correct way of getting my BLL/DAL to talk about Users? Should I minimally implement MembershipUser and whenever a user calls a method, it will call for eg. GetUserInfo() in my BLL/DAL, to get complete information about the user?
Or should I make the MembershipUser class methods call my custom "Users" class methods (like a wrapper) in the BLL/DAL (this custom users class is not related to linq)?
Or can I somehow extend the Linq to sql class "CFUsers" to extend MembershipUser.
I have a block of SQL statements that I like to use as a sort of function.
I was thinking that I could make a class and inherit all of the master function, then add the parts that I need for other sections of the program in a sub class.
The problem is, up to this point I've been programming ASP .Net through visual studio, and it's kind of just programming behind controls. I'm not sure where to put the class/function/method/interface, or whatever we call it.
Of course you probably know that visual studio creates a bunch of partial classes when you do an ASP. Net application... so.. to get access to a function like object, across classes.. use an Interface?
I develope web application using ASP.NET MVC + jQuery to create an interface like extJS: navigation tree at left side and tabs above.What is better for me: to place navigation tree and tabs in different view or to place them into one view?
We have developed a custom framework using ASP.Net, Entity Framework 4 and the likes to enable launching our custom business applications. The framework uses WCF service bindings so the interfaces could be exposed as ordinary services (API) or webservices.
As for the front end we are currently using MVC3, but it really is a problem because the business users want a very configurable/customizable UI so they can change the look and feel of the apps dynamically.
I have been thinking of exploring the option of using a readymade CMS tool such as DNN or Umbraco or something similar. Using these tools with a custom framework? How do I build the CMS so it can use my framework services to pull/push data?
I am a gamer...mostly CoD series. I have a server in my house that hosts 3 online CoD games and Admin Tools (B3). I'm quite rusty at asp.net but it comes back pretty easy.My idea that came to me is, wanting to learn how to start programs on my server through a web page.
I could have it authenticated through a DB,But I have no idea where to look to make a button start an executable that exists on the same server.Yes, I'm trying to replicate gameservers.net way of starting / stopping / restarting a game server.
One thing I would like to improve on for many of my web applications, is the user interface design and the "look and feel" of the sites. To begin looking at how to do this, I thought I would start by asking the community what additional software they use or would recommend to combine with either VS2008 or VS2010.
I've currently developing a web application in asp.net and a smsgateway moderm connected to my server (currently my laptop). is there a way for the asp.net to interface with the moderm that is connected to the server? so i'll be able to send/receive message in a web interface
I have a api which has multiple interfaces.I have set the ExternalDataExchangeAttribute before interface like below- <ExternalDataExchangeAttribute()> _Public Interface ILOBBaseFunction IsProposalDate(ByVal value As String) As BooleanEnd InterfaceI am getting the IsProposalDate function name as MethodName after selecting the ILOBBase Interface Type in CallExternalMethodActivity of workflow foundation.It is working fine.
i want to build clinet application who could get data from other APIs providers and make requests and responses. Note that the first API provider is nextstop [URL] allow searching about places ,resturants, hotels and more. Also, the second provider is transports for London [URL] I want to build interface using C# that get some data from these sources and make some requests and responses. I'm not sure whether i put my topic in right place?
I have several tables in a database (6-7 tables and ~200,000 records, MS SQL) that I'd like users to be able to use a web based query form and return information/datagrid/download csv/excel files. I'd like the user to be able to query the table they want and fields they want, time they want (maybe datepicker)or by selecting a field and perform a GT/LT operation on it. Has anyone done this and if so are there any resources/templates for this type of thing?Here is an example:I have a 'weather' table with 20 variables in it. I'd like a user to be able to select the fields they want to export (radio/check box) by using a date picker A user could select the variable "Temperature" and use GT/LT, etc. some value they enter. in a perfect world, the user could select a checkbox to include all other fields in the output.
I have created a Slider User Control which implements ISlider Interface.I have some methods like SetValue below which should accept both ISlider types and standard Slider control type.Am I'm obliged to use this heavy syntax is there any shortcut?
public void SetValue(Object slider, Double value) ISlider ISlider; ISlider = slider as ISlider; if (ISlider != null) ISlider.Value = value; ((Slider)slider).Value = value;
There is a SearchPage which has a properties ErrorMessage, SuccessMessage etc. This is basically a MVP pattern so for each page(view) there is IView that contains definitions for all the properties
I am using decoratoe pattern to set these peoperties dependingon the message type. There is another Interface IBaseMessage which has a method DisplayMessage() and a class BaseMessage which implements the interface. This class has a definition of the view