Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:787105
More Search Options
RSS Available
Matching Posts
Re: How to add users and roles to ASP.NET membership database programatically
Just use the static members of the Membership and Role classes. For example, on each startup of some of my web applications, I run the following code: // Check that all roles exists. if (!Roles.RoleExists("Admin")) Roles.CreateRole("Admin"); if (!Roles.RoleExists("SysAdmin")) Roles.CreateRole("SysAdmin"); if (!Roles.RoleExists("SecurityGroup")) Roles.CreateRole("SecurityGroup"); You could do the same with the Membership class to create users
Posted to
Security
(Forum)
by
Andreas Paulsson
on 12/8/2008
Re: How to manage multiple user controls on runtime?
It probably does not wirk since you haven't set upp all events properly. Why do you not use MultiView and three View controls instead? Then You can create all controls in the designer and avoid all the hassle with creating controls dynamically. See http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/standard/multiview.aspx
Posted to
Web Forms
(Forum)
by
Andreas Paulsson
on 12/1/2008
Re: Stepping Into Typed Dataset Code
You can diable the Just My Code (JMC) feature by disabling Just My Code under Debugging-> General Options. See http://www.prosoftprogramming.com/2008/03/debugging-visual-studio-generated.html
Posted to
Visual Web Developer 2008 Express
(Forum)
by
Andreas Paulsson
on 12/1/2008
Re: deactivate page when saving data
Have a look at Scott Mitchell's article about someting he calls a freeze pane: a div that covers the entire screen (and all buttons and links) to avoid double sumbission of forms: http://www.4guysfromrolla.com/webtech/100406-1.shtml Should that suit you? There are other javascript apporaches the involve disabling all buttons but I think that they are more error-prone.
Posted to
Web Forms
(Forum)
by
Andreas Paulsson
on 11/28/2008
Re: Membership authentication on email and password
Do You need the Username at all then? You could register the users using their email address as the username. Watch out if You let users change their email address, it is a pain if you only use tha standard Membership classes since MemberShipUser.UseName i readonly: http://msmvps.com/blogs/omar/archive/2006/08/18/how-to-change-user-name-in-asp-net-2-0-membership-provider.aspx You can hack around this and update the database manually if you know which membership prodivder you are using, but you should
Posted to
Security
(Forum)
by
Andreas Paulsson
on 11/28/2008
Re: Wiping the users current session and start again from scratch
Use Session.Abandon(): http://msdn.microsoft.com/en-us/library/ms524310.aspx Note, though: "When the Abandon method is called, the current Session object is queued for deletion but is not actually deleted until all of the script commands on the current page have been processed. This means that you can access variables stored in the Session object on the same page as the call to the Abandon method but not in any subsequent Web pages." So You shold call Session.Abandon() and then Response
Posted to
State Management
(Forum)
by
Andreas Paulsson
on 11/28/2008
Re: WCF - Service Hosting
Check out http://msdn.microsoft.com/en-us/library/ms733766.aspx for the basics and http://blogs.msdn.com/amitlale/archive/2007/05/21/hosting-wcf-service-in-iis.aspx for a much more thorough step-by-step tutorial.
Posted to
ASP.NET AJAX Networking and Web Services
(Forum)
by
Andreas Paulsson
on 11/27/2008
Re: Using Web.sitemap to create sitemap.xml as a batch process
Try the ASP.NET to Google sitemap converter on http://www.digizzle.com/projects/sitemaps/default.aspx You can browse the code here: http://code.google.com/p/sitemaps-asp2google/source/browse/#svn/trunk/sources
Posted to
XML and XmlDataSource Control
(Forum)
by
Andreas Paulsson
on 11/27/2008
Re: Where (HOW) to find the HTTP post data?
Try Fiddler : http://www.fiddlertool.com/fiddler/
Posted to
Web Forms
(Forum)
by
Andreas Paulsson
on 11/21/2008
Re: Having trouble getting XML data into a variable
You must call MoveNext on the XPathNavigator before getting first node : see "The XPathNodeIterator object is positioned on the first node in the selected node set only after the initial call to the MoveNext method." at http://msdn.microsoft.com/en-us/library/system.xml.xpath.xpathnodeiterator.movenext.aspx . A sample from the same page: XPathDocument document = new XPathDocument( "books.xml" ); XPathNavigator navigator = document.CreateNavigator(); XPathNodeIterator nodes = navigator
Posted to
Getting Started
(Forum)
by
Andreas Paulsson
on 11/21/2008
Page 1 of 13 (125 items) 1
2
3
4
5
Next >
...
Last »
WindowsClient:
Snoop with 64 bit support
ASP.NET:
jQuery Hide/Close Link
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Channel 9:
Channel 9 Live at PDC09: Dr Brian Brooks (3M)
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 13 of 13
Silverlight:
Information for Silverlight HVP Developers…
WindowsClient:
Custom Content Loaders in Silverlight 4.0
WindowsClient:
MVVM Links\Info
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Silverlight:
A Silverlight HVP Update
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Channel 9:
Channel 9 Live at PDC09: Loic Le Meur
Channel 10:
How to Delete Jump List Items
Channel 10:
Roll Back to Classic Network Indicator in Win7
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 2
Channel 9:
Ping 42: Is Microsoft cool? Photo DNA, Win7 tool, 10k MIX contest
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online