Click here to Skip to main content
16,014,294 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPlease help me? Pin
v.surendrakumar30-Jul-07 20:07
v.surendrakumar30-Jul-07 20:07 
AnswerRe: Please help me? Pin
Christian Graus30-Jul-07 20:27
protectorChristian Graus30-Jul-07 20:27 
Questionsuggestion Pin
Yulianto.30-Jul-07 19:43
Yulianto.30-Jul-07 19:43 
Questionweb deployment in asp.net 2005 Pin
Sonia Gupta30-Jul-07 19:39
Sonia Gupta30-Jul-07 19:39 
AnswerRe: web deployment in asp.net 2005 Pin
N a v a n e e t h30-Jul-07 20:10
N a v a n e e t h30-Jul-07 20:10 
QuestionrRetaining Data in web form after transfer to another form and back Pin
Sakshi Smriti30-Jul-07 18:58
Sakshi Smriti30-Jul-07 18:58 
AnswerRe: rRetaining Data in web form after transfer to another form and back Pin
Christian Graus30-Jul-07 19:08
protectorChristian Graus30-Jul-07 19:08 
QuestionGridView Issue Pin
Brendan Vogt30-Jul-07 18:50
Brendan Vogt30-Jul-07 18:50 
Hi,

I am using a gridview to display user information, and one column I am trying to display the user's first name and last name together. They are 2 seperate properties in the UserInfo class.


<Columns>
<asp:TemplateField HeaderText="Name">
<ItemTemplate>
<a href='MemberDetails.aspx?MemberID=<%# DataBinder.Eval(Container.DataItem, "ID") %>'><%# GetMemberName(UserInfo)%></a>
</ItemTemplate>
<HeaderStyle CssClass="gridview_header" />
<ItemStyle CssClass="gridview_cell" />
</asp:TemplateField>
</Columns>

The GetMemberName method looks like this:

protected string GetMemberName(UserInfo info)
{
string strName = string.Empty;

// Check for a first and last name
if ((info.FirstName == string.Empty) && (info.LastName == string.Empty))
strName = "Unknown";

strName = info.FirstName + " " + info.LastName;

// Return
return strName;
}

I do not know how to call the GetMemberName method correctly from the gridview. Please can someone help me?

Regards
ma se
AnswerRe: GridView Issue Pin
Christian Graus30-Jul-07 19:12
protectorChristian Graus30-Jul-07 19:12 
QuestionLock question [modified] Pin
perrin486930-Jul-07 17:26
perrin486930-Jul-07 17:26 
QuestionGetting data from two tables in a repeater Pin
phoeno2930-Jul-07 17:18
phoeno2930-Jul-07 17:18 
AnswerRe: Getting data from two tables in a repeater Pin
daniel__c30-Jul-07 20:21
daniel__c30-Jul-07 20:21 
GeneralRe: Getting data from two tables in a repeater Pin
phoeno2930-Jul-07 20:40
phoeno2930-Jul-07 20:40 
GeneralRe: Getting data from two tables in a repeater Pin
daniel__c30-Jul-07 20:47
daniel__c30-Jul-07 20:47 
Questionfinding the index of datagrid using the selected item templates Pin
A.Vishal30-Jul-07 15:37
A.Vishal30-Jul-07 15:37 
AnswerRe: finding the index of datagrid using the selected item templates Pin
N a v a n e e t h30-Jul-07 20:06
N a v a n e e t h30-Jul-07 20:06 
GeneralRe: finding the index of datagrid using the selected item templates Pin
A.Vishal1-Aug-07 16:06
A.Vishal1-Aug-07 16:06 
QuestionWhy the exception "Object reference not set to an instance of an object." occurs? Pin
hurrem30-Jul-07 14:41
hurrem30-Jul-07 14:41 
AnswerRe: Why the exception "Object reference not set to an instance of an object." occurs? Pin
Christian Graus30-Jul-07 17:49
protectorChristian Graus30-Jul-07 17:49 
AnswerRe: Why the exception "Object reference not set to an instance of an object." occurs? Pin
daniel__c30-Jul-07 20:34
daniel__c30-Jul-07 20:34 
QuestionWHATS THAT PROBLEMS Pin
Neo_Shehpar30-Jul-07 14:21
Neo_Shehpar30-Jul-07 14:21 
AnswerRe: WHATS THAT PROBLEMS Pin
Christian Graus30-Jul-07 17:48
protectorChristian Graus30-Jul-07 17:48 
GeneralRe: WHATS THAT PROBLEMS [modified] Pin
Neo_Shehpar3-Aug-07 3:17
Neo_Shehpar3-Aug-07 3:17 
QuestionSetting file ContentType dynamically [modified] Pin
ASPnoob30-Jul-07 13:09
ASPnoob30-Jul-07 13:09 
AnswerRe: Setting file ContentType dynamically Pin
Christian Graus30-Jul-07 17:50
protectorChristian Graus30-Jul-07 17:50 

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.