Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:630506
More Search Options
RSS Available
Matching Posts
Do I need to pass two objects to a View?
HI, I have a UserDetails object which correctly displays in the View, but now I have created a Location table that contains countries and have made a foreign key relationship between the two tables. In the UserDetails table I have the foreign key of LocationId as an int. So now when I come to display the user details back in the View I'd also like to show the Location. Obviously my UserDetails object only contains the the foreign key to the Location table and not the actual country name, so how
Posted to
ASP.NET MVC
(Forum)
by
jimmy_fingers
on 6/25/2009
Re: Do I need to pass two objects to a View?
Perfect many thanks!
Posted to
ASP.NET MVC
(Forum)
by
jimmy_fingers
on 6/25/2009
Re: Getting null values from database and displaying as an empty field in the View
Awsome thats it. Many thanks!
Posted to
ASP.NET MVC
(Forum)
by
jimmy_fingers
on 6/24/2009
Getting null values from database and displaying as an empty field in the View
Hi, I'm able to get the UserDetails object back in my model, but if the field is null in the database I can't seem to display a blank textbox or field in the View. Do you have to cast the individual properties as nullable in the model? My model method is as follows: //Select UserDetails by id public UserDetail SelectUserDetails(int id) { return _context.UserDetails.SingleOrDefault(u => u.UserId == id); } My view: I get a null ref exception as all three properties are empty until the user
Posted to
ASP.NET MVC
(Forum)
by
jimmy_fingers
on 6/23/2009
Re: Extending LogOnUserControl in MVC site
As simple as that. Many thanks indeed!
Posted to
ASP.NET MVC
(Forum)
by
jimmy_fingers
on 6/17/2009
Extending LogOnUserControl in MVC site
Hi, I was wondering if it's possible to change the LogOnUserControl so that it displays the Users email address instead of Username? Unfortunately I've switched around both Username and email address in the database, so that the user logs in with an email address and not Username (email address is now Username in the aspnet_Membership and username appears in the aspnet_Users table. So now on the webpage is says "Welcome [email address] rather than "Welcome [username]". Is there
Posted to
ASP.NET MVC
(Forum)
by
jimmy_fingers
on 6/16/2009
Re: Adding data to two tables using MVC Repository
Hi, Yes that was what I ended up doing. Many thanks
Posted to
ASP.NET MVC
(Forum)
by
jimmy_fingers
on 6/8/2009
Re: Newbie MVC date of birth dropdownlists
Wonderful! Many thank indeed
Posted to
ASP.NET MVC
(Forum)
by
jimmy_fingers
on 6/8/2009
Re: Newbie MVC date of birth dropdownlists
Does that mean that I should create a table for each of day, month, year to hold the data?
Posted to
ASP.NET MVC
(Forum)
by
jimmy_fingers
on 6/8/2009
Adding data to two tables using MVC Repository
Hi, I'm trying to customise the ASP.NET default membership provider and login controls so that when the 'register' method is called within the AccountController.cs it also adds data to two of my own tables, User and UserDetails. I want to use the UserId giud that ASP creates in its own dbo.aspnet_Users table and use it as a foreign key in both of my tables. I want to pass data like username, email etc into my tables but I'm not sure how to do it with the repository pattern.
Posted to
ASP.NET MVC
(Forum)
by
jimmy_fingers
on 6/7/2009
Page 1 of 18 (178 items) 1
2
3
4
5
Next >
...
Last »
WindowsClient:
Snoop with 64 bit support
ASP.NET:
jQuery Hide/Close Link
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Channel 9:
Channel 9 Live at PDC09: Dr Brian Brooks (3M)
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 13 of 13
Silverlight:
Information for Silverlight HVP Developers…
WindowsClient:
Custom Content Loaders in Silverlight 4.0
WindowsClient:
MVVM Links\Info
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Silverlight:
A Silverlight HVP Update
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Channel 9:
Channel 9 Live at PDC09: Loic Le Meur
Channel 10:
How to Delete Jump List Items
Channel 10:
Roll Back to Classic Network Indicator in Win7
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 2
Channel 9:
Ping 42: Is Microsoft cool? Photo DNA, Win7 tool, 10k MIX contest
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online