How To Create Dynamic URL's For Different Users
Jul 30, 2010
How to create dynamic URL's for different users..
for example there are many users registered to my website..
each one has their own profile page which has the link of the form..
http://example.com/Users.aspx?id=User1
And i need to dynamically rewrite these URL's as http://example.com/User1 etc..
View 3 Replies
Similar Messages:
Feb 9, 2010
I have an asp.net web app that uses forms-based authentication, a SqlMembershipProvider (using an encrypted password format), and a SqlRoleProvider. I need to know if it's possible to administer the users (create new users, assign them to roles, etc.) from a windows application - the powers that be don't want any administrative functionality in the web app itself.
Here is the membership provider definition from web.config:
[code]....
So, obviously, I have a Sql Server database that contains the users and roles for the web app. I'd like to create a separate windows app that references the web app assembly, and use the configured MembershipProvider, RoleProvider, and machineKey to create users, assign users to roles, etc. If that's not possible, I can duplicate the configuration settings from web.config within the windows app. But I don't know how to do this either.
View 3 Replies
Dec 6, 2010
[Code]....
after successful creation of 3 users on my web site now cannot create users
View 9 Replies
Jul 24, 2013
im creating dynamic buttons on page load and on the click event of button1 handlere iam creating more buttons this is going fine but on click event of button 2 work is not done so how to maintain a chain of creation of button on click events
protected void Button2_Click(object sender, EventArgs e)//
{
ClientScript.RegisterClientScriptBlock(this.GetType(), ((Button)sender).ID, "<script>alert('Button_Click');</script>");
Response.Write(DateTime.Now.ToString() + ": " + ((Button)sender).ID + " was clicked");
}
protected void Button_Click(object sender, EventArgs e)//this button click will call all the items related to department
[code]....
View 1 Replies
Jan 7, 2011
I have a project where I need to create menu buttons from a list in SQL Server. The problem I am having is that I need to add code to the text of those buttons. So there would be a birthday button and it should display the number of birthdays within the next two weeks or a button with the number of upcoming events.
Clarification:
There is no code yet, just some requirements. What I am doing is querying a table to get the list of buttons to display. Now each of these buttons may have dynamic text, for things like count of birthdays, events,etc... I am trying to see what the best way would be to handle this. Should I embed a snippet of code to go along with the menu item to execute when I iterate over the menu items? Maybe I should build a javascript file to go along with the code, which I add code to query a service for certain menu items?
View 4 Replies
Oct 18, 2010
I have an ASP.Net 3.5 application with a menu. The menu is set to an xmlDataSource. The xmlDataSource is given the menus for the user as a dataset. The xmlDataSource uses an xsl transform file.Here is the code behind:
[Code]....
My problem is, when another user logs into the system, he/she gets the previous user's menus. This is based on time somehow, because if you wait long enough after another user has left a page, you'll get the proper menus.Could it have something to do with page caching? Is there something I'm missing with menus?
View 1 Replies
Jul 16, 2012
I need to create a very simple whiteboard with dynamic updates between connected users.
While doing research i hit through a link: [URL] .... which is providing same functionality and it was impressive at first look w.r.t functionality.
What will be required to create such a whiteboard with dynamic updation.
View 1 Replies
Jul 4, 2010
Not quite sure what you would call these but I am looking to create sub folders for my users eg
mysite.com/billyblue
What I have done up to this point is make a 404 page that handles unknown pages. It takes the part after the / and looks it up in the database. Then I redirect them to the relevant page.
I am having a few issues with this and to be honest am not to keen on handling it this way.
Does anyone have an alternative method for achieving this.
View 3 Replies
Oct 21, 2010
i need a collection of users
each user have name as string, ID as integer, Email as string
View 3 Replies
Feb 7, 2011
How do I create a Inbox so that users can commnuicate in asp.net What controls do I need.I am ok with the Databse part of this project. But the design part is confusing I am using Visula web developer 2010. Not using ajax and silverlight. just asp.net This is my first asp.net project.
View 6 Replies
Sep 2, 2010
I had to upgrade a sites ecuroty from a custom system to .net membership. I created all the users like this.
ds = Wservices.SelectBulkUsers()
If Not ds Is Nothing AndAlso Not ds.Tables(0) Is Nothing AndAlso ds.Tables(0).Rows.Count > 0 Then
For Each dr In ds.Tables(0).Rows
username = dr("username")
password = dr("password")
role = dr("SecurityClearance")
email = dr("email")
Dim newUser As MembershipUser = Membership.CreateUser(username, password, email, "", "", True, status)
Select Case role
Case "1"
Roles.AddUserToRole(username, "normal user")
Case "2"
Roles.AddUserToRole(username, "administrator")
Case "3"
Roles.AddUserToRole(username, "super administrator")
End Select
If newUser Is Nothing Then
errorMsg = username & " - " & status.ToString & "<br />"
End If
Next
litResult.Text = errorMsg
End If
I thought everything was fine and then went through the labourious task of replacing all the usersids used a as a foreign key in all the tables. It was only after doing this and trying to log on I couldnt, and noticed the membership table was empty. I assumed (stupidly) as it had done the users/ roles it must have done the membership. As I have already re-assigned the old user ids I dont want to import again as the userid will chnage. So my question is: Can I create a membership for each of the users in my aspnet_users table? I have the passwords etc in varchar fields at min from old table.
View 3 Replies
Sep 6, 2010
how can I add default users in my web.config to test my asp: login control
View 1 Replies
Oct 3, 2010
I want to create small chat application between two users.
Users should Login if they are not logged in they should be registered.
View 3 Replies
May 24, 2010
how to implement our own role provider?
View 1 Replies
Feb 20, 2010
Is it possible to have an ASP.NET website which allows users to register and login, without using a MembershipProvider?
And instead just work directly towards custom database tables which stores user information?
View 3 Replies
Jun 2, 2010
I want to migrate users and posts from an existing forum I am using to a ASP.NET membership table without using CreateUser. Basically I want to maintain userIDs so that when I migrate posts they continue to associate with the correct users. Is there a way to do this or would I be better off just using CreateUser and then finding a way to re-assign the post-by-UserIDs to the correct new IDs?
View 3 Replies
Sep 26, 2010
i working on event managment registration and i need to make a roll for visitors and roll for exhibitors isitor most enter data to visitor profile with data likefirst name,last name , DOB, Mobile Number, tel , fax and exhibitor most enter data to exhibitors profile data with different data .it's easy to make it for visitor or exhibitors with one profile how to make it with different data profiles what the logic to make that
View 2 Replies
Sep 29, 2010
i want to create a page like asp.netwebadminfiles/security/users/manageUsers.aspx
View 9 Replies
Mar 14, 2011
My goal is to create some Excel reports that users can download from my asp.net site. The data for the reports will come from an SQL database. I am using Visual Studio 2010 and the reports will be for Excel 2007.
View 2 Replies
Feb 14, 2011
I have a application that connects to a remote sql server. I am able to create users and they are stored in the DB. Then I can go to the login page and login. But after a while, I am unable to log in and it just sits at the login page. The user is still in the DB
<configuration>
<connectionStrings>
<add name="LoginSQL" providerName="System.Data.SqlClient"
[code]...
View 1 Replies
Jun 10, 2010
I am newbie to asp.net.I want to create roles for the existing users in my database. I dont want to use the membership provider database n roles provided with it.(i don't want to use aspnet.mdf at all)
I am create roles for my existing users n assign i wanted to assign the particular roles to a particular assign.
View 2 Replies
Feb 18, 2010
I have set up a very simple authentication page where the user enters his password and if successful authentication occurs the program allows the user to make use of the controls in the page.
I used ASP.Net Configuration to create the user and roles, SQL Membership Provider for the authentication tables and asp login controls to authenticate.
Is there any way to add users and roles once the project is deployed? Could I use the ASP.Net configuration page? and if so how?
View 3 Replies
Mar 19, 2011
I've been reading about asp web administration tool. I read about creating roles and stuff and forcing a controller to use authentication in order to be viewed. My question is, say create on the administration tool a user called Peter and I assign him the Administrator role. Then I want to create another role called LimitedAdministrator. But I want Peter to create new users on his View (I'm using MVC). Can anyone point me in the direction of how to do this.
I want peter to see on his page, like "Create user" and this user will be created as a LimitedAdministrator.
View 1 Replies
Aug 27, 2010
What is the best approach to allowing users to create accounts and allow them to login later?am thinking of passing all the user information into an attached SQL database, so that when users login l can lod their profilee and allow them to add data on their profile
View 1 Replies
Nov 11, 2010
trying to create a stored procedure to authenticate users, if users are authenticated their data like userid, first name, etc are returned in a cursor. However, if users are not authenticated an error is returned or something that indicates users were not authenticated.
But I don't know how to do this in a stored procedure.
View 2 Replies