.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

implementing roles on live website

Posted By:      Posted Date: October 08, 2010    Points: 0   Category :ASP.Net

I have an live website and I need to enable roles and add it to a folder.  What's the best way to go about it?  Do I add code to web.config?  Do I add code to individual pages?  Do I use the membership provider service with V W D and recopy the website?  Please  help.

View Complete Post

More Related Resource Links

Live website slow - very urgent


Hi All, 

Finally i came to know because of firebug that  ScriptResource.axd's (multiple) are making my files slow on first click

How do i merge them into 1 ??



1. ScriptResource.axd is making my page slow in first click.

On second click onwards its fine as i have added handler from http://madskristensen.net/post/Compress-WebResourceaxd-in-ASPNET.aspx   It helps performance but from second click onwards.I am testing it with FireBug.

2. I have also seen and treid http://www.codeproject.com/KB/aspnet/AspNetOptimizer.aspx  but not able to make out how to implement in my application.

3. I also tried http://madskristensen.net/post/Optimize-WebResourceaxd-and-ScriptResourceaxd.aspx but it has error, I tried making chnage as per the discussion in url but it is sill giving error.

4. I have also made scriptmanager as release mode

Please help its urgent


Map Asp.net website Roles and Users to Sharepoint website roles and users

Hi I have created an asp.net website with SQL Server based form authentication and authorization. Now, we are moving this pure asp.net website to Sharepoint 2010 website. I have developed 5 webparts for my asp.net website to migrate to Sharepoint. All these webparts are avilable for access in the same page. Now I need to implement authentication and authorization for access to these webparts in Sharepoint. I am newbie to sharepoint. Can someone provide me how can I provide authorization and authentication in Sharepoint, which should use the current SQL Server based form authentication and authorization(roles and users of my existing asp.net website) and how can I map roles and users of my existing asp.net website to Sharepoint. Please reply ASAP. Thanks & Regards Mahendra Babu

Steps for having Live Chat option on the website ?

I am working on a website and i would like to have an option on the website for 'Live Chat" so that customers/visitors can talk to the website ownser or any sales Rep.I've been searching an online chat software , but they charge a lot on monthly/yearly bases, so i guess it's better to create your ownBut before doing that what are the things/problems that i might face according to you to accomplish this feature ?Do i need separate chat server ? and i need features like " auto-message like " An operator will be with you shortly" how to accomplish these things ?Do i need any database support to for using this feature ?Please guide me in a right direction...

Live audio-video streaming in an asp.net website using windows media encoder


The project is to provide the facility of providing live lectures in an intranet. So the bandwidth is not an issue. Also it means that I cannot use any internet streaming server like ustream (the project being limited to intranet).

I created a C# console application and successfully created a live stream using windows media encoder sdk. I was also able to capture the stream on another LAN PC in VLC player.

I want to know if I can implement this in my asp.net website. It should be something like this : The faculty visits the site and clicks on a start button on a webpage. This will start the live stream of the faculty. It will be received by the students on different computers by accessing the same website. Also, the faculty should be able to view himself on the webpage (just like in the windows media encoder predefined UI).

Is this possible to implement in the website? I mean both the facutly and the student will implement the same website. Also, the stream has to pass via a streaming server.

Or do I need to create a different application to start streaming and the students will view the stream from the website?

Also, which player do I embed to view the stream? Windows media player (I heard that it has issues with firefox) or the ever-available flash player? Will the flash player be able to capture the media encoder stream?

Please share a

Live audio-video streaming in an asp.net website


My project is to create a website that facilitates giving live lectures on intranet. Hence, the bandwidth is not an issue here.

Also, I have implemented some basic code of live streaming using windows media encoder SDK in a C# console application. I was able to view the streaming on another LAN PC in VLC player.

Now, how do I implement my code in the asp.net website? What I want is that in order to start the streaming (i.e., start the live lecture), the facutly just clicks on a button in a webpage. This will stream his movements to the students (via a server). Also, this will enable the facutly to view himself on the webpage.

Is this even possible? I mean it would be like : both the student and the faculty will access the same website. The interface to both of them will be different - one will start the stream and the other (student) will receive the stream.

Or will I have to create a different application to start the streaming? So it would be like the facutly will start that applicaiton to start the streaming and the students will access the stream throught the player embedded in the website.

Another question is : what player should I use to receive the stream (on the student side)? Windows Media Player (I heard that it has problems with firefox)? Or the ubiqutous flash plugin will succeed in capturing the media encoder stream?

Roles on live server


Hey guys,

I am having a problem with role authentication on our production server. My configuration is working perfectly on my local system (using .net's inbuilt web server), however when deploying to the production server suddenly I get booted out of directories in which the role is allowed.

I am not using .net's membership/roles tables (aspnet_Membership, aspnet_Profile, aspnet_Users .... etc) But am using my own tables to login a user. I am adding the roles to the FormsAuthenticationTicket and have allowed certain roles to access certain directories under the "members" directory for example here is a snippet of my web.config under the members directory

<?xml version="1.0"?>
    Note: As an alternative to hand editing this file you can use the
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in
  <location path="UserManagement">

Implementing Internal Website Search ???


Hi all,

Iam working on internal Website search as user can search any thing in the website.

Now i dont have idea from where i can get start ?? how search will work .it should be whole database search or pages only???

Best Regards 

How to create an asp.net vb live text feed similar to what is on the BBC website?



I need to know how to create an asp.net vb live text feed similar to what is on the BBC website, I've implemented this to a fashion but I don't think it's the correct way, new items get saved to a database and the webpage refreshes every 1 second.

Thanks in advance.

How to display live stock data in my website


Hi everyone,


I want to display live bombay stock exchange data in my website just like this website


Can any one suggest on how to do it...


Any help is greatly appreciated..


Implementing webservices on an e-commerce website, how ?


I worked on an online store based . In this store i have a category for which there are almost 2000 products. So every time when there is some change in the price, it is very difficult to update the products with new price, descriptions, features etc.

The manufacturer of this product is providing web services which can be linked with store owner's website who is selling their products.

So is it possible to integrate e-commerce website with webservices API that are being provided by manufacturer ? , i know the answer is yes but..

One more concern is that, how web services will connect to specific category only ? i mean on this website there are many other products also, but i want to integrate webservices for this 1 category only, is it possible ? if yes, then how ?

Right now the database mapping follows the normal process, web admin / store owner adds products in the database from the admin section and that's how products are being displayed on the website.

I would really appreciate if you could guide me in a right direction...

how can i broadcast my event live on my website.


hello frnds,


i want to broadcast one of my evernt online on my website,say www.xyz.com. is there any online website who provide the live streaming on your own website rather than creating a account on their web portal than use their channel to see the live broadcast.

LINQ : Implementing IN and NOT IN

I got tried of typing

var result = from s in source
where items.Contains(s)
select s;and so I implemented the IN and NOT IN methods as extension methods:

Implementing Continuous Scrolling UI Pattern in ASP.NET

When you have numerous records to show, we have to resort to Paging. There is a better alternative to display voluminous data (especially read only data) while providing a better user experience & also making efficient use of server bandwidth - the Continuous Scrolling or Infinite Scrolling UI Pattern. Read on to know more about how to implement Continuous Scrolling UI Pattern in ASP.NET with a GridView.

jQuery live() and ASP.NET Ajax asynchronous postback

The issue is that normally $(document).ready() is called when the DOM is ready to be manipulated. But this doens't happen after an ASP.NET Ajax asynch postback occurs.

This means that the initial jQuery bindings won't be automatically available after the asynchronous postback is over. I underline "automatically" here because my last post describes more possibilities, how this issue can be worked around.

ASP.NET forms authentication with roles

.A timeout is specified in minutes. This is "time since last request" not the "time since login". If a login is indicated to be persistent (described later) this is ignored.
.A protection method is specified for the cookie.
Next I wanted to specify a folder to which access is restricted to people who have logged in. To do this I entered the following code in the web.config file (beneath

Resources for soup-to-nuts of website development lifecycle



 I'm looking for a website, or book, or some resource that can lead me down the path from website design to implementation/deployment. I know that covers a ton of material, but I am really looking for the bullet points, or high-lights, to make sure that I think of everything. I am mostly fuzzy on security measures and deployment since I haven't been involved in those aspects before.

Background:  I have been a programmer for many years, and with a little over 3 years' experience coding websites in vb.net/asp.net with sql server. Due to recent restructuring/layoffs at our firm, I find myself in the position of lead IT person - I'm feeling a bit underqualified but I feel this is my chance to work hard and step up to it. I'm very good at vb.net, master pages, css, asp.net, sql server. I'm worried that the person who was the lead before was doing a bunch of stuff that I'm not aware of...so I need to start learning more than just the code. I don't need lessons on how to code anything...I need to learn how it all gets put together - the next step up.

thanks for any suggestions!

website load testing


How can i check "load testing" on my site (its using vb.net and SQL server)? Any free tool available or can it be done through windows server IIS?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend