Click here to Skip to main content
15,882,464 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionObjectDataSource Pin
pollilop7-Jun-17 5:10
pollilop7-Jun-17 5:10 
AnswerRe: ObjectDataSource Pin
Richard Deeming7-Jun-17 6:12
mveRichard Deeming7-Jun-17 6:12 
GeneralRe: ObjectDataSource Pin
pollilop11-Jun-17 22:35
pollilop11-Jun-17 22:35 
SuggestionRe: ObjectDataSource Pin
Yoqueuris13-Jun-17 5:04
Yoqueuris13-Jun-17 5:04 
Questioni have writen c# code to render google map from server side at runtime. but when i execute this code, map is not getting displayed on browser. can any one please tell me what is a error or what changes i need to do. Pin
Member 107737173-Jun-17 20:32
Member 107737173-Jun-17 20:32 
AnswerRe: i have writen c# code to render google map from server side at runtime. but when i execute this code, map is not getting displayed on browser. can any one please tell me what is a error or what changes i need to do. Pin
Richard Deeming5-Jun-17 8:37
mveRichard Deeming5-Jun-17 8:37 
QuestionUsing Base Model in Shared View Pin
Farhad Eft2-Jun-17 23:16
Farhad Eft2-Jun-17 23:16 
AnswerRe: Using Base Model in Shared View Pin
User 41802543-Jun-17 3:40
User 41802543-Jun-17 3:40 
It's probably because -

1. you do not have constructor for BaseViewModel to assign any default value to FirstName(which you can access if no other value assigned to it), you have just declared the property for get and set.
2. In any of BaseController or DashboardController you do not have property which hold data for BaseViewModel. On BaseController you have created it but not assigned to anything.

Try something like below and then access "BaseController.baseModel" to pull value of FirstName

C#
public class BaseController : Controller
{
    BaseViewModel baseModel;

    public BaseController()
    {
        baseModel = new BaseViewModel()
        {
            FirstName = "John"
        };
    }
}


modified 20-Sep-20 21:01pm.

GeneralRe: Using Base Model in Shared View Pin
Farhad Eft3-Jun-17 5:39
Farhad Eft3-Jun-17 5:39 
QuestionHow codeproject registration page showing client timezone as selected in dropdown Pin
Mou_kol2-Jun-17 0:07
Mou_kol2-Jun-17 0:07 
AnswerRe: How codeproject registration page showing client timezone as selected in dropdown Pin
Richard Deeming2-Jun-17 1:14
mveRichard Deeming2-Jun-17 1:14 
GeneralRe: How codeproject registration page showing client timezone as selected in dropdown Pin
Mou_kol2-Jun-17 2:29
Mou_kol2-Jun-17 2:29 
QuestionNeed some help in binding DataTable that's returning from Web Api with an Html table using jquery Pin
indian14330-May-17 8:08
indian14330-May-17 8:08 
Questiontrouble sending message to the view from controller Pin
Hamiltonian1327-May-17 22:40
Hamiltonian1327-May-17 22:40 
AnswerRe: trouble sending message to the view from controller Pin
F-ES Sitecore29-May-17 22:47
professionalF-ES Sitecore29-May-17 22:47 
GeneralRe: trouble sending message to the view from controller Pin
Hamiltonian1330-May-17 7:23
Hamiltonian1330-May-17 7:23 
GeneralRe: trouble sending message to the view from controller Pin
F-ES Sitecore30-May-17 22:13
professionalF-ES Sitecore30-May-17 22:13 
AnswerRe: trouble sending message to the view from controller Pin
John C Rayan31-May-17 1:56
professionalJohn C Rayan31-May-17 1:56 
GeneralRe: trouble sending message to the view from controller Pin
Hamiltonian1331-May-17 9:16
Hamiltonian1331-May-17 9:16 
GeneralRe: trouble sending message to the view from controller Pin
John C Rayan31-May-17 22:17
professionalJohn C Rayan31-May-17 22:17 
GeneralRe: trouble sending message to the view from controller Pin
F-ES Sitecore1-Jun-17 0:41
professionalF-ES Sitecore1-Jun-17 0:41 
GeneralRe: trouble sending message to the view from controller Pin
John C Rayan1-Jun-17 22:05
professionalJohn C Rayan1-Jun-17 22:05 
GeneralRe: trouble sending message to the view from controller Pin
Hamiltonian139-Jun-17 6:28
Hamiltonian139-Jun-17 6:28 
GeneralRe: trouble sending message to the view from controller Pin
John C Rayan16-Jun-17 2:48
professionalJohn C Rayan16-Jun-17 2:48 
Questionadd small delete button or image to the options of select Pin
indian14326-May-17 13:51
indian14326-May-17 13:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.