Creating User Sections - Articles?
Aug 17, 2010Anyone have any good articles on creating user sections? I've been finding some stuff that is rather dated for asp 2.0, I'd like to find some stuff that is 4.0.
View 1 RepliesAnyone have any good articles on creating user sections? I've been finding some stuff that is rather dated for asp 2.0, I'd like to find some stuff that is 4.0.
View 1 RepliesI have a form that I need in various parts of my website.
User's enter their address, and submit a form that saves the address.
I want to wrap this up so I can re-use it since I need this exact same functionaility in a few places.
I am thinking to do this:
create a partial view with the form, but have the action location url passed in as a parameter. create a seperate class/method that will handle the server side validation (UI has its own validation using jquery already)saving/editing is already handled in the db layer.
I'm an ASP.NET newbie, but not so new at programming in general.
I'm creating a commercial website, and I want to allow an admin to add new articles (an article consists of text, images and various properties such as category).
I am trying to decide the optimal Modus Operandi. This site is commercial, so SEO is a major consideration. This means that I want each url to be "unique". That is, if someone navigates to an article about raccoons, he should be redirected to [URL]. This means - I can't have one page that loads the appropriate article dynamically a-la AJAX (gotta use deep-linking)
So how exactly do I do this? suppose the admin entered his text, uploaded the images and set the article properties. I create a new subfolder, save the images to the server (I understand that saving images to a DB is a big no-no), their addresses in a DB, and the content itself to the DB. But now what?
How do I go about creating the actual page?
Is there a function for creating a new aspx file? then what about its corresponding cs file? Or is it unwise to use aspx? Maybe plain html? but then how does it work with my site's master page? Or maybe just create another copy of a general aspx file which is populated with an article according to a parameter?
Is it possible to allow a user to customize sections of our website to match their look and feel? For example, to modify logos and CSS, possibly pointing back to their site for the actual content. Ideally I would also like a third-party (ASP.NET) tool to manage this, rather than coding a hack myself.
Edited: I want a solution where a customer can just use a menu to modify the attributes they want, so that there is no need for me to interact with the customer at all.
I am trying to get a function to work in VB ASP 2010 that would retrieve all articles in my sqldatabase. The problem is the return syntax of this function results in an error.
Code:
[code]....
I have a asp.net MVC based website. Now I am storing various articles and each article has a unique id attached with it.
In the article table, I have created a Views column, with default value zero.
Now I wanted to know what is the best way to implement ViewCounter for each article individually.
I would like to make a website where you can type in the url [URL] and the webpage will retrieve the article and display it in the articles view.
How would I best go about doing this?
Would I use a SQL database? Xml files? Text Files?
Possible Duplicate:
MVC Learning Resources
I am assigned to a project in which ASP.NET MVC is widely used. I am new to it; can you provide me nice resources to learn it quickly?
I'm currently doing some work involving optimization of session-related code. The code I work on uses a state server approach in a web farm environment. I want to deeply understand what happens session-wise when a request occurs on the server.
Fast, Scalable, and Secure Session State Management for Your Web Applications Underpinnings of the Session State Implementation in ASP.NET - msdn.microsoft.com/en-us/library/aa479041.aspx (I can't post more than two links as I am a new SO user)
I am in process of building a website using asp.net and c# which fetches the new articles posted on various websites and posting those in one place. So basically, I am looking for a javascript which can keep on checking for new articles on various sites,and if it finds a new article then it will fetch it and post it on my website with comments at the bottom.e.g.If a new article is posted on cnbc.com then that article must be fetched and posted on my website with comments "courtesy:cnbc.com"
View 7 RepliesHow can i make proper search result for example if i have one article now it have different tag like my article is related to asp.net ..in that article i am adding some tag like asp.net, database.user will come and click on that tag and related article will be come for example user click on asp.net tag then al related article will be come.
View 1 RepliesI would like show top active users in my Index page. How I can get most active users who insert new articles , and wrote comments?
How I can get latest 10 records in table A?
I am looking details on the internal working of asp.net architecture. The topics need to include the following:
Asp.Net Thread/Application Pools
HttpRuntime
HttpApplication - When and how it is set up.How HttpContext is set up
How objects can passed along the pipeline using HttpContext.Current.Items
Why does modification of static variables requires locks in ASP.NET(advanced)IIS 7 Integration Mode
I am using the following code in my master page:
<% Html.RenderAction("RecentArticles","Article"); %>
where the RecentArticles Action (in ArticleController) is :
[ChildActionOnly]
public ActionResult RecentArticles()
{
var viewData = articleRepository.GetRecentArticles(3);
return PartialView(viewData);
}
and the code in my RecentArticles.ascx partial view: <li class="title"><span><%= Html.ActionLink(article.Title, "ViewArticle", new { controller = "Article", id = article.ArticleID, path = article.Path })%></span></li>
The problem is that all the links of the articles (which is built in the partial view) lead to the same url- "~/Article/ViewArticle" . I want each title link to lead to the specific article with the parameters like I'm setting in the partial view.
I'm gonna build a webpart for creating user in active directory .
For creating user account i use method like this :
[code]....
When executing this method the following error occurred:
"The server is not operational"
I'm working on an application, where several products has their own website/application, while everything is stored in one SQL 2008 database.
When someone wants to buy a product (software licenses) they fill out a form and their info is transmitted to another site where all administration and payment is handled.
When the customer has payed with Paypal and is returned to the payment page, their info is saved to database, and a user account is created.
In order to create the user for the correct application, I use the following code to change the application name, create the user there, and change back.
[Code]....
This goes partly fine. The user is created in the aspnet_Users (in the wanted application) and assigned a role correctlu. When trying to approve the user, however, an error is thrown:
System.NullReferenceException: Object reference not set to an instance of an object.
The user is never created in the aspnet_Membership table.
Setting role when creating new user with ASP.net MVC
I am looking at the default ASP.net MVC 2 controller.
How do I set the role for the new user that is created in the Register method?
Is this possible with just a simple property set or do I have to do something special?
I am creating a web application using Form Authentication of Asp.Net with C# and back end Sql Server. Here in my application administrator login and creates new users. I am using the create user wizard under login controls. My problem is when the new user is created by Admin he is automatically logged out and logged in with new user credentials which he has just created.
View 2 RepliesI have a web page that has lots of different parts to it (i.e many data grids). The page takes quite a while to load up because it is running all the stored procedures to populate each grid so the user is left waiting for the whole page to load.
I would like to improve this by loading the page a section at a time so that to the user is not left waiting for the whole page to load up before anythin can be viewed.
What is the best way to tackle this problem. Do i need to use threading or would i being going down the wrong path looking into that.
I'm creating a site with 2 different sections (main site and admin) and both of them need authentication. they have separate login screens.
the main section is for users to login and manage their personal details. this is already created and it works fine using FormsAuthentication.the admin section is for the administrator to manage the users. now, how do I go about creating the admin section? Can I use FormsAuthentication again? or sessions?
I have a datatable declared on the top of the .vb file as.. Dim dt As DataTable,Now for example.. on the page_load i do..
dt = .............
Now in my button click, I want to loop through all the rows in the datatable, but the problem is that in the button click sub, the datatable appears to be clear with nothing in it, how can I get this to work?
I have the following Problem
I have a XML File like this:
[Code]....
I was wondering if it's possible to authorize parts of a view inside the view.
For example, I understand how to authorize the entire controller in this method
<HandleError()> _
Public Class HomeController
Inherits System.Web.Mvc.Controller
Function Index()
[Code]....
Obviously that won't work, but it gives an idea of what I'm trying to accomplish.
I would like develop an application written in ASP.NET which include an option to configure user accounts in such a way that each user account can be freely assigned to a different module to which it will has access.
So, for example, I would have one table in a database that maps user to modules.
In ASP.NET there is the whole mechanism of roles, but his assumptions are slightly different -> Here you need to centrally configure finished profiles. This can be circumvented in such a way that each application module is a separate role. And for one user can be assigned multiple roles.
But whether such a method is elegant? Should I do it differently?
In my application, I have users request accounts, and then an admin goes in to approve or reject the account. When the admin approves the account, the create user wizard is used. After the user is created, I set the new user's role, and update a few other items in my database for user tracking, and send out an email to notify the new user of their account status. Here's the kicker: Once this new user is created, the admin, is now logged in as the new user. How is this happening? And how do I stop it? Here is my CreatedUser code, scrubbed of non-pertinent code.
[Code]....