I have noticed that asp.net Membership tables take space and without I use many of its features. Now if I want to create my tables from scratch will that break to security of my application?
View Complete Post
Any reason not to add fields to these tables, or is this just as easy as creating tables to join to aspnet_roles and the like?
How can I sync up the aspnet membership tables among 2 different databases?
The following code is used to add the asp membership tables to an
already existing database instead of creating a seperate database for
membership and having two databases in the application.
aspnet_regsql.exe -S .SQLEXPRESS -U username -P password -d
databsename -A all
It works fine by adding the membership tables to the existing database
that is located in the c drive, program files sqlserver folder.
But my database however is not in the c drive but located in my asp
website app_data folder, so the above code does not give any error and
the tables are not added after I run it.
Please how can I now add the membership tables using the above code when
my database is located in the website app_data folder, thanks
In my web.config I have:
If I just have ADProvider1 it works, when I add ADProvider2, even though for testing I only use ADProvider1 I get an error: "Unable to establish secure connection with the server"
Am I adding the second provider to the membership section incorrectly?
I tried to use Microsoft's Membership option for signing up new users and authenticating them on subsequent pages, but it has not worked very well. The biggest issue has been with the REMEMBER ME function. With this checked, I am randomly logged out in the middle of some functions and some pages always show me as not authenti
I am trying to figure a way to SSO with ASP.NET membership and role model.
I can implement custom membership provider which consume web services hosting on a server.
With encryption of data. No problem.
But my question is, If I sign on a website with my provider, got my identity object on that application,
could I pass it to another website on another domain which use the same provider and by doing so, do not need to login again?
If this is possible, I am going to implement this solution. Please tell me what's your take on this.
Is there a membership function to search a username Like this: LIKE '%UserName%' ?
This is not working.
MembershipUser User = Membership.GetUser("%" + TextBox1.Text + "%");Thank you.
Hello. I've bee successfully using the Asp.Net Membership Provider in my VB.Net 3.5/SQL 2005 web app for a year now (Site A). However, I've added 2 new sites (B and C) (both with their own DB) and now I see a problem. It looks like users that get created for sites B and C also get created in site A. Roles that I create for B and C only get created in A. I think it is a conn string problem.
When I created A, I adde the conn string to my machine.config (not sure why I did this or if it is even needed)...
<connectionStrings> <add name="LocalSqlServer" connectionString="Data Source=VS689\SQLEXPRESS;Initial Catalog=SiteA;USER ID=sa;PASSWORD=123456"/></connectionStrings>
In my WEB.CONFIG
<membership> <providers> <clear/> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=18.104.22.168, Culture=neutral, PublicKeyToken=blahblah" connectionStringName="LocalSqlS
Hi! I'm creating an application that's supposed to first add a record to table1, and then get the ID from that record to use when adding a record to table2, to be able to associate these two records with eachother.
The user gets to type in some values that goes to table1, and some values that goes to table2, but before the insert statement for table2 is executed i need the ID from the recently added record in table1. Some dude told me to use a trigger for the autopopulate purpose, but does that really work when i also need to save some values that's user input, and when those values doesn't get saved in table1?
Are there any other way to do this or can i send values to a trigger? I'm new to triggers and stored procedures, i don't have any particular knowledge of this, any help is appreciated!
i have a stored procedure which returns three tables to a dataset ..... now i need to merge all three tables to a single table from d same dataset
like dataset1 has table1 table2 and table3 .... i want all the three tabels to be merged into dataset1 itself .... instead of three diffrent tables so that i can show all three table data in a single datagrid as a compact data and combination of 3 tables from d single dataset.....
can some1 help me please.....
I have two tables
Trans with fields TransID, Date, CustomerID and some other stuff
Customer with fields CustomerID, Name, TaxId
On the screen the user only sees the fields Date and Customer Name. CustomerID is behind the scenes only.
I'm using SqlDataSource. Having no problems with SelectCommand. I don't know how to construct the UpdateCommand and InsertCommand.
Let's say the user changes the date, then I need to do an UPDATE.
UPDATE Trans SET Date = @Date, CustomerID = @CustomerID results in an error message and the record is not updated.
I get an error on the page that says "Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in correct format".
I tried taking out the set for CustomerID and I still get the error on page.
Also, for inserting, the users will see a dropdownlist with Customer Names. I need to convert that to a CustomerID to be used in the new record being inserted in the database. I'm not sure how to do this.
Do I need to do something with Control Parameters?
I have an application that does LDAP authentication. The authentication is done on the code behind page of my Login.aspx page. Once the user passes LDAP authentication, a cookie is set and I redirect:
I would like to setup membership in my application and keep track of some user information. But due to company security requirements, I cannot store user passwords on my application. That must stay on the LDAP server only.
Is there a way to store users but disable password storage on the aspnet_membership table?