There are several Business Databases i.e. BusinessDB1, BusinessDB2, etc... and a LoginDB.
The LoginDB is used by the login control. i.e. To register and authenticate a user.
On registering a new user, I would like to be able to assign a BusinessDB to s/he so that when they try to log in, then the system uses s/he BusinessDB.
Question:
How can I assign a user to a BusinessDB? I have looked into the login tables in sql server but do not see how this can be achieved.
I am trying to assign user control from another user control ..first time its binding control successfully but when we refresh the data its giving error
saying "Object reference is not set an instance".
how to refresh data from another user control ...
My senerio below :
1 Aspx page
2. User control
calling usercontrol databinding method from aspx page but once it get refreshed ,not allowed to bind it again..
I have a simple user control (myControl.ascx) , in the myControl.ascx.cs file, I defined:
public string sUserName { get { return _sUserName; } set { _sUserName = value; populateData(); } }
In one of my aspx page, I use this control:
[Code]....
myNameSapce.Config.sType is a public value from a class, I just can't get that value for above inline code, is it possible to do that? Otherwise, I need go to the .cs file to do this: myControl1.sUserType = myNameSapce.Config.sType; But still hope I can do the inline code.
I am newbie, help. Please. I created a web app with two roles; one is for the regular members and one for the administrator. Now i need to know, please, how I can set up my web app to assign automatically the "members" role to regular users. I am open to suggestion; maybe this is can be done in other way.
I have a simple user control which toggles between the visibility of a few images depending on the UserId. When the page is loaded for the first time, the userID is being assigned correctly (I'm debugging). However, there are two other buttons on the page for filtering the type of users, they are perform their functionality via Ajax (not the toolkit, but the normal javascript ajax) When one of these buttons are clicked, the user control cant get the userid, it always comes up as Zero. Oh, btw, the usercontrol is in a DataRepeater, so it occurs for each of the user.. all the time.. or thats the Idea. I have several other pages like this, (none of them have ajax) and the user control has no problems whatsoever.
My User control code:
[Code]....
And the Data Repeater is something like this:
[Code]....
Here, Immediately after the userControl <ucAB:....> line, I am printing the userid just to see if its valid (by <%# Eval("UserId") %> and the user id's are valid too. I dont understand why the User Control cant pick it up on ajax postback?
i have two types of role, Member and Staff, i also include profile property for both role
My problem is, I'm now unable to assign Member to the newly registered user, I forgotten what i had modify but last time I can do that without any problem.
Im unable to assign member to registered user is because when i login using the registered account, the LoginTemplate switch to a normal LoggedInTemplate instead of Member logged in template that allow member to access to their own page
But on the other hand, i can register my staff, login and access staff page without any problem
I have a main web page and added a user control inside it. The user control has some textboxes. The problem I have is when I populate the textboxes with the data that is in the DB, they do not show the values. The strange thing is If I change the property of textboxes ReadOnly to TRUE, they show the values. The problem is that I need them to be ReadOnly=FALSE.
How do I assign records entered from a user control by Html.RenderPartial the model of objects of my main view?
Today when I try to save my record can not save the record of association with only the records of the Main View.
Basically the operation of the screen is the following, make the creation of a parent record and then join the other records. I want to save the parent record and associated records.
i need certain algorithem/formula or code where admin assign userid/password to user ,means multiple user get registered site but user id and password are assign by admin after registered . did not any thing on google yet !!
This is what I have in the RegisterUser.aspx and yet when the admin registers a new user, then on clickiing the register button, the site logs in as the user who was just created.
Microsoft sql server error 18456 in sql server 2008 r2login failed for user  sasql server was working properlyi just restarted the system and then i started getting the above errorhow do i resolve iti am able to login with windows authentication but not sql authentication....
I have successfully created a strongly typed dataset. And trying to assign my user input values to the columns of my StronglyTypedDataset but having no luck with it
[Code]....
In the above code 'PlantInventoryAccuracy' is the name of the Strongly Typed Dataset and 'PlantInventoryAccuracyDataTable' is the dataTable. when I try o debug this to see if my user input values are being assigned to te currentRow I see blue squuiggly line under the 'new' key word when I mouse hover it says
'The type PlantInventoryAccuracy.PlantInventoryAccuracyRow has no constructors defined.'
This is the first time I am trying to use Storngly typed datasets. I am not sure if I am trying to use it right. The above code is in my code behind page and my idea is to fill this row with the user input values then pass this to my data layer where I need to assign these values as the parameters to the stored procedure I have created and then store them to the database.
During runtime, it gives error saying "Request is not available in this context". HttpApplication context = new HttpApplication(); string username = context.Request.ServerVariables["LOGON_USER"];
I'm working on my company's intranet site and I wanted to create a function or class that would return the user's domain name and user name so I tried creating a class:
Code: Imports Microsoft.VisualBasic Imports System.Web.Security Public Class DataWhareHouseClass