Yes of course I googled it :) Haven't had any luck so far with .net components or examples, maybe I am not using the right keywords to search for it, who knows. To me it’s more like a task for a Psychology student to come up with questions and answers and some formula to give a personality profile, its just funny to me that I am asked to do it lol. But you would think it would be pretty trivial to have examples for stuff like that since its so common in community type websites.
Taurian110
Posts
-
Personality Profilling with ASP.NET? -
Changing Date FormatAre you talking about updating the date format the way it is stored in the database? Or when you are retrieving it? Also what is the data type of your date column is it varchar or DateTime? If you just want to change the date format when retrieving the data then something like this will work:
SELECT Convert(varchar, DATEPART(yyyy, UploadDate)) + '/' + Convert(varchar, DATEPART(mm, UploadDate)) + '/' + Convert(varchar, DATEPART(dd, UploadDate)) as MyNewFormat FROM dbo.[MytableName]
*Change the MytableName to your table and UploadeDate to your column name hth
-
Div inside another div not sizing correctly in the user controlI dont see the html tags i think its blocked by the editor. When you are posting HTML tags there is an option below the editor "Ignore HTML tags in this message (good for code snippets)" I think if you click that, it will allow you to post the HTML source code. HTH
-
Div inside another div not sizing correctly in the user controlIt will be helpfull if you right click ur page and copy and paste the HTML so we can see how the page is being rendered.
-
Personality Profilling with ASP.NET?I am working on a project where I need to make a personality profiling application. Are there any examples out there that I can benefit from? Like I need to ask several questions and somehow come up with a personality profile very similar to things seen on dating websites etc. Also if there are any 3rd party components for personality profile then I can try to sell it to my boss (not sure if he will buy into that) it doesn’t hurt to try :) Thanks.
-
Confused by eventsSorry, Item.Name = Category[i].CategoryName Item being a drop down list item. This can be done with a call to a method but there is some other stuff that can be accomplished once I have a specific category available. I tried to omit the details out to keep the question simple. But for argument's sake, for each category there are several other child records that need to get processed. Some of them are shown on the UI and some of them are more like calculation type results. I thought using event would simplify the process and would also increase the performance (not sure if this is true) by completing the task on a separate thread. Thanks
-
Confused by eventsI have a windows app and on form_load i am calling a funciton that is building a list but this function gets called on other ocassions also (when there is change in data (i.e. add, update or delete)). I want to raise an event when I have the item.Name available so I can populate the drop down box with the item names. So essentially I want an OnItemLoad event to be fired and when its fired I want the drop down box to populate the items.
for (int i = 0; i < Category.Length; i++) { #region This section needs to be replaced by the event if (populateCategoryDropDownList) { ddlCategory.Items.Add(Category[i].CategoryName); } #endregion ... txtControl.AutoCompleteCustomSource.Add(temp); ... }
I have tried working with examples available on msdn etc but it gets soo confusing! this seem like a very simple task but I just can't seem to figure it out. Please help !
-
Help with Implementing custom MemebershipProviderI needed to implement a custom MembershipProvider cuz we already have a database with user information in it; also I need to get a list of users. In my DAL I have a method that I can call which will populate the business entity and returh a List<>. However since I am using MembershipProvider I thought I should use the Memebership.GetAllUsers() method to do the same.
Do you think that the following implementation is acceptable or is it a programming NO NO...?
public override MembershipUserCollection GetAllUsers(int pageIndex, int pageSize, out int totalRecords)
{
List<UsersEntity> users = DAL.GetUsers();
foreach(UserEntity user in users)
{
MembershipUser members = new MembershipUser(this.Name,
user.username,
user.providerUserKey,/*I dont have this in my database*/
user.email,
user.passwordQuestion,
user.comment,/*I dont have this in my database*/
user.isApproved,/*I dont have this in my database*/
user.isLockedOut,
user.creationDate,
user.lastLoginDate,
user.lastActivityDate,
user.lastPasswordChangedDate,
user.lastLockedOutDate/*I dont have this in my database*/);}
}
Can you tell me what I need to to do about the fields that I donot have in my database? Do I need to update the database? or should I just pass in a null or String.Empty or something like that? Please help.
-
Street Mapping SoftwareA friend of mine is trying to *CREATE AND PUBLISH* a street map for his Non-US City (Google, Mapquest or Yahoomaps do not have any *STREET LEVEL* information regarding that city). I would like to know if any of you are familiar with a software that can be used to create street maps like Maspquest and or Google. The tricky part is to make this map searchable by address (like google maps or mapquest etc.) Perheps a plugin for maps.live.com where we can create the map and let Microsoft publish it on their website or Google or some one else. Please direct us in the right direction as to where we need to start this work. Thanks. P.S. Just curious to know what technology does Mapquest and Google use for their street maps?
-
GridView Delete() with ObjectDataSourceThanks a lot for your help, DataKeyNames did the trick:). Also on a seperate note: what would you suggesst i should do diffrently to make the code less complex?
-
GridView Delete() with ObjectDataSourceI am using ObjectDataSource to display records on a Gridview. In my BLL I have three functions GetAll() [returns MyEntity], Save(MyEntity entity) and Delete(MyEntity entity) which make use of a business entity called MyEntity. The GetAll() and Save(MyEntity entity) works perfectly fine but the Delete(MyEntity entity) does not work at all. This is what my BLL Delete(MyEntity entity) looks like: [System.ComponentModel.DataObjectMethod(DataObjectMethodType.Delete,true)] public Boolean Delete(UserEntity tblUserXref) { UserXrefDAL dal = new UserXrefDAL(); return dal.Delete(tblUserXref); } And my DAL Delete(MyEntity entity) looks like this: public Boolean Delete(GlobalClassLibrary.Site.Entities.UserXrefEntity entity) { try { SqlDatabase dbHelper = new SqlDatabase(ConnectionString.GetConnectionString()); SqlCommand dbCommand = (SqlCommand)dbHelper.GetStoredProcCommand("tblUserXrefD"); dbHelper.AddInParameter(dbCommand, "@XrefId", SqlDbType.Int, entity.XrefId); dbHelper.ExecuteNonQuery(dbCommand); return true; } catch (Exception) { throw; } } Now, when I put a break point I found out that Delete button on GridView does call the BLL's Delete(MyEntity entity) method, but, all the values of my entity are null. Please help. Thanks.
-
Referencing Enterprise LibraryProbably a dumb question but hopefully someone can help me. I just installed MS Enterprise Library to use Data Access Application Block. I can't seem to find the .dll file under "Add Reference" dialog box to make reference in my project. I found the .dll under "C:\Program Files\Microsoft Enterprise Library January 2006\bin" folder but I am not sure if this is what I need to reference! Should it not appear in the "Add Reference" dialog box? Thanks in advance.
-
Chaning Culture from UserControlA- I am trying to change the culture from a user control but the problem is that I can't overrride InitializeCulture() in user control. Any ideas? B- Also all the examples I have seen are using the dropdown box's index change property, how can we use a button control to chang the culture? The problem is that button_click fires after InitializeCulture() ... Thanks.
-
Extending MasterPageThanks a lot:)
-
Extending MasterPageI am trying to create a base MasterPage class that all the other MasterPages will inherit from. This base class will have some controls so the inheriting MasterPages get those controls automatically. My problem is that whenever I add controls to my base class it doesnt get added withing the "FORM" tag and I get errors like "Calendar control must be within FORM tag". What am I doing wrong? this is how I am doing it:
protected override void OnPreRender(EventArgs e) { base.OnPreRender(e); string Header = " some text "; this.Controls.Add(new LiteralControl(Header)); }
but when I look at the page it is something like this:... ... ... ... some text
Any help would be appreicated. Thanks. -
GetHashCodeWhat is GetHashCode method for? More importantly what is HashCode and why would we need it ? Thanks in advance.
-
exception handling in class librariesWhen designing classes is it a best practice to do exception handling within class or should it be taken care of at the UI level? In other words if my class is in ClassLibrary project should I check and throw exceptions there like this:
public MyClass { public MyClass(){...} GetSomeDataById(string id) { try { // Open connection and all that good stuff ... } Catch { /* Catch*/ } finallay { /* close connection */ } } } -------------------------------------------------------------- // in .aspx file MyClass myClass = new MyClass("whatever"); string someData = myClass.GetSomeDataGyId("10"); if(String.IsNullOrEmply(someData) { // Some code }
or should I do something like this:
public MyClass { public MyClass(){...} GetSomeDataById(string id) { // Open connection and all that good stuff .... // close connection } } ------------------------------------------------- //in aspx file try { MyClass myClass = new MyClass("whatever"); string someData = myClass.GetSomeDataGyId("10"); if(String.IsNullOrEmply(someData) { // Some code } } catch Exception(e) { // Call some function to display this message }
-
Binary to SQL using ASP.NETOk well I suspected that the cause might be the size of file so I changed the executionTimeout limit to 900000 and even then I got this message: "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. The statement has been terminated.0" Does any one how to use FTP instead of HTTP:confused:? I just read that in a thread and have no clue how to do that!!:wtf: You help will be highly appreciated. Thanks a lot for your replies.
-
Binary to SQL using ASP.NETThank you for your reply, the code works great for every other file but .MPG or .MPEG Do you have any Idea as to why i am unable to work with .MPG/.MPEG?? FYI: I am using ASP.NET 2.0
-
Binary to SQL using ASP.NETWhat is ntexg field? While at it I was trying something like this:
private void UploadFile() { if (fileUpload.HasFile) { string fileExt; fileExt = System.IO.Path.GetExtension(fileUpload.FileName).ToString(); //Response.Write(System.IO.Path.GetExtension(fileUpload.FileName).ToString()); //Response.Write(fileUpload.FileName Response.Write(fileExt); } } protected void Button1_Click(object sender, EventArgs e) { UploadFile(); }
It works for .rm, .img, .doc but when I try the same thing for .MPEG file and pages comes back with nothing! I mean it just dies:confused:, any one know why its doing that?