View Complete Post
I'm trying to get the current logged in UserId Value, using this code
Protected Sub UserProfileDataSource_Selecting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs) Handles UserProfileDataSource.Selecting
' Get a reference to the currently logged on user
Dim currentUser As MembershipUser = Membership.GetUser()
' Determine the currently logged on user's UserId value
Dim currentUserId As Guid = CType(currentUser.ProviderUserKey, Guid)
' Assign the currently logged on user's UserId to the @UserId parameter
e.Command.Parameters("@UserId").Value = currentUserId
But, I getting an error (NullReferenceException), I did set a url authorization on the page that i try to get the logged in user information, witch is info.aspx, and I made the login.aspx control to be redirected to the info.aspx after the login process, But the info.aspx only shows me (access in denied), how can i make this page knows that i am already logged in?
I know this may sound a daft question but I'm wanting to save Serialized XML into a databse but for the life of me I cant do it.
So far I have my class
public static void SerializeToXML(Candidate candidate)
XmlSerializer serializer = new XmlSerializer(typeof(Candidate));
TextWriter textWriter = new StreamWriter(@"C:\movie.xml");
This basically save the serialized properties in the Candidate class into the movie.xml file which is great but I want it to return XML (so it can be re-used) so I can store the XML in the XML database field
Any help would be greatly appreciated
I need to show the URL like this http://www.saffronrouge.com/face/moisturizers
for me http://www.mysite.com/products/
i need to list all the products. please help me on this.
See what the Interactive Visual Media Group at Microsoft Research is up to these days.
MSDN Magazine July 2007
Find out the best way to store large amounts of XML data in SQL Server, along with the performance implications. What's the maximum length of an XML query to SQL Server in a URL?
Edited by Nancy Michell
MSDN Magazine May 2003
Hello,ÃÂ ÃÂ New to SharePoint.ÃÂ We just started migrating directories to our SharePoint server, and have encountered an issue storing .EXE files.ÃÂ The error message says that it is denied by the administrator, however our IT team believes you can not store .EXE in SharePoint and that it is a system limitation.ÃÂ ÃÂ Could someone please confirm whether or not there is a restriction for the storage of .EXE files in SharePoint?ÃÂ ÃÂ ÃÂ ÃÂ If this is just an administrator setup issue, is there a doc that would direct us how to remore this setting?Thank you,Dan.
I want to show all the activities of the logged in user in a gridview. I am using VS 2010. please suggest some good ways of doing it.
Using asp.net visual studio 2008 prof and writing in C#, and I'd like to learn a simple technique to lay out text with graphics sprinkled through it. I was thinking of something where I place graphics in the text, and the graphic is about 40% of the containing window, and alternate graphic boxes allign to the left and right. This seems simple and dynamically resizable.
Ok, so for that, how would one structure the code? A little sample of a paragraph or two with a left and a right alligned image would be perfect! Could you try writing a sample for me...
I come from corporate asp.net development, and I am now working on a public website which will get a lot of traffic, perhaps a million users a day. So I am faced with a ton of performance and scalability questions.
I would like to share some thoughts and see if my approaches resonate with any good practices, or perhaps I am heading down the wrong path... Either way, I want to hear opinions.
(My number one concern is the fact that I am using asp.net for a public website. I don't know of a lot of websites using asp.net)
I am using asp.net 2.0 (I know, its not the latest technology but I don't need any advanced features of asp.net 3.5 or 4, unless there are significant improvements geared towards what I am doing)
On launch date, this will be running on a dedicated Windows Server 2008 running on Intel ATOM 330 1MB L2 Cache 1.6Ghz Dual-Core with 2GB DDR RAM. Its fully managed by a full service hosting company which gives me an option to upgrade to a bigger server within a few hours. I can even move the site to a webfarm if the traffic demands it.
So I have a User Dashboard, where users can create albums and upload pictures. So what I am doing