MSDN Magazine July 2000
View Complete Post
I am using the asp.net membership.
On my site I have a Profile.aspx page.
In the code behind of this page, i get the logged in UserId (Guid) and pass
this to a method in my DAL. GetUserByUserId()
In my database I have a Table called Member which the method gets the data from
and displays details on the page about the user.
What I want to happen is when they have logged in and are diverted to Profile.aspx,
the page URL shows www.MyWebSite/Profile/UsersName
is this possible. In my Member table I have FirstName and LastName columns or do I get the
name from the membership table.
even better would be they go straight to www.MyWebsite/JohnSmith.aspx
thank you for any help
I've got an External List and I want to create a Site Column, which is Lookup to a column in my external list. If I tick any of the columns in 'Add a column to show each of these additional fields' and click OK i get the following error message:
[NullReferenceException: Object reference not set to an instance of an object.]
Microsoft.SharePoint.SPBusinessDataField.CreateSpFieldForBdcType(String bdcName, Boolean hidden, Boolean readOnly, Boolean idField, SPAddFieldOptions op) +809
Microsoft.SharePoint.SPBusinessDataField.AddNeededSecondaryFields(String wssNames, String oldNames, String newNames, SPAddFieldOptions op) +315
Microsoft.SharePoint.SPBusinessDataField.OnAdded(SPAddFieldOptions op) +240
Microsoft.SharePoint.SPFieldCollection.AddFieldAsXmlInternal(String schemaXml, Boolean addToDefaultView, SPAddFieldOptions op, Boolean isMigration, Boolean fResetCTCol) +759
Microsoft.SharePoint.SPFieldCollection.Add(SPField field) +61
Microsoft.SharePoint.ApplicationPages.FieldNewPage.BtnOk_Click(Object sender, EventArgs e) +46
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +114
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +139
I have a requirement that I need to develop a component which should display variable types of data inside a datagrid. The datagrid will have two coulmns. Fisrt column will display the list Captions (like: FirstName, DateOfBirth, IsMarried, Age) and
the second column will display the list of data based on their data type, like:
> As FirstName is in string format it should display the value inside a TextBox control on right side of FirstName caption
> As DateOfBirth is in Date format it should display the Date value inside a DatePicker control on right side of DateOfBirth caption
> As IsMarried is in Boolean format it should display the CheckBox control with check state on right side of IsMarried caption
> As Age is in integer format it should display the integr value inside a TextBox Control on right side of Age caption.
If any body has any idea please guide me the way to develop. I request you to kindly help on this for creating this control
With SQL Server 2008 Enterprise, can I prevent an Active Directory Account Login ( domain\user ) from connecting if its coming from a host_name?
What I really need to do is this:
On SQL1, login mydomain\user1 is only allowed to login from servers APP2, APP3, and APP4.
If mydomain\user1, though it has a login on SQL1 attempts to connection any other hostname besides APP2, APP3 or APP4 I want to deny it access to SQL1.
Can anyone point me in the right direction for the correct condition(s) for a policy that would work?
I have cube called client distinct cube.. that cube is been driven by table A and has the following columns
Client-id, Active ,mcd Elibigle and time_Id
and there another table called Eligibles which has the following columns
Client_id, Time_Id, Plan_Id, plan_Id can be 1 -5
I have a created a dimension called client insurance with table eligbles as the base table and i have added 2 more tables called ben-plans and insurance to get the names for it...
SO when i build this dimension i get the STate, and medicaid and its subsidiarys
the dimension and fact tables for this cube is matched by Client ID and when i process this cube and i get 260 distinct clients for med C but if i query those two table for the same time frame i should 620 distinct instead of 260.. I am not sure what i am
basically i want the dimension to be build by the following query
Select distinct a.client-id from tbl_a a, tbl_eligibles e where a.client-Id = e.client-Id and a.time-Id = 54121 and e.time-Id =54121 and e.plan_ID = 5
Any help will be appreciated.
I would like to create SPSite object and pass user token as an argument to make sure all operations are executed with SharePoint security trimming. Inside SPSite I am reading some file content using File.OpenBinaryStream() method.
I am not sure if there is a way to create SPUser using user credentials. I am able to get SPUser by getting it from SPWeb.AllUsers collection using user login name. However it doesn't work for claims based sites as login name for these users looks like i:0#.w|domain\username.
Am I allowed to user code like this:
SPUser user = web.AllUsers["i:0#.w|domain\username"];
to get SPUser object? I know that 'w' from 'i:0#.w' string means that it is Windows user. What do other symbols mean? Is there any method which can generate login name from user credentials so I may use it to get SPUser from AllUsers collection?
Possibly there are some other ways to execute code for SPSite under some SharePoint user privileges?
P.S. All my code is running out of SharePoint context. I have tried to user windows impersonation but got Access Denied error.
Thanks beforehand for any help,
I am reading xml file using dataset.readxml() method. . . after this i want to send this data to the database. I want c# code to create a database in sql sever and push watever data in the dataset to that created database.... i am dealing with many xml documents... some could be of same format.. lets say... if 2 docs of same format exists... then it shud not create new database or new tables.. it shud push the data to the suitable format...as i am a newbie its a bit confusing for me... i dont even have any idea on how to proceed with this... please reply if you know the answer for any part of the requirement... any help is very much appreciated..
I want to create a custom login page for both Windows Authentication and Form Based Authentication.
I mean to I have to create only single login page for both authentication.
How can I create this kind of page?
I have web application which can be accessible by http://localhost:4554/aboutus.aspx?clientid=7 but I would like to create a url which does not have any query string parameter. this should be accessible by http://localhost:4554/aboutus/athar (e.g athar is client name)
I have got a few samples and ways on url rewriting but still its not working form me. could you help.
I have download the Intelligencia.UrlRewriter.dll from the internet. but when I run this i am getting error could not found assemply.
here is code of my web.config file
<section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
<add verb="*" path="*.aspx" type="URLRewriter.RewriterFactoryHandler, URLRewriter" />
does anyone help or any suggesti
Hi! I have a bunch (~10) of different task lists corresponding to different projects; each list has a mixture of Statuses, i.e., some completed, some In Progress, some Not Started. I'd like to create a (preferably dynamically updated)
single task list consisting of all the incomplete tasks from each of the project lists. After much trial and error (I'm still a relative newbie with DB stuff; even more so w/ Sharepoint stuff) I figured out how to do this by viewing the lists
in Access and creating a query which resulted in the compiled list I describe above; however, when I clicked on the "Publish" to Sharepoint button and returned to Sharepoint default view, I couldn't find this new list anywhere (e.g., the new, empty list I
had created and changed to Access view, and from which I imported the other lists and created my query, was empty, and my list of task lists in the left side-bar didn't have my query-result-list).
How do I do what I want, w/ or w/out Access? Thanks!
I am creating a user control that I would like to be able to generate the form entry fields based on what custom data object the form is bound to. Basically, I have a drop-down box that allows the user to pick what type of data object they are working with
(user, address, etc.) That choice will bind the user control to the related data object. No big deal there. I am stuck, however, on how to generate the form fields based on the properties of the object. I feel like I have seen examples of this in WPF but am
not able to find them now. All form fields will be simple label, textbox combinations in a stackpanel.
I know more detial will probably be required. Let me know what specifically you would like to know. Any help of direction is greatly appreciated.