Click here to Skip to main content
15,885,782 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionGridView Editing with VB.NET Pin
MacIntyre1-Jun-09 6:47
MacIntyre1-Jun-09 6:47 
AnswerRe: GridView Editing with VB.NET Pin
ToddHileHoffer1-Jun-09 10:28
ToddHileHoffer1-Jun-09 10:28 
GeneralRe: GridView Editing with VB.NET Pin
MacIntyre1-Jun-09 11:03
MacIntyre1-Jun-09 11:03 
GeneralRe: GridView Editing with VB.NET Pin
ToddHileHoffer1-Jun-09 12:21
ToddHileHoffer1-Jun-09 12:21 
GeneralRe: GridView Editing with VB.NET Pin
MacIntyre1-Jun-09 12:57
MacIntyre1-Jun-09 12:57 
QuestionHow to create forum in asp.net Pin
Saiyed Alam1-Jun-09 6:11
Saiyed Alam1-Jun-09 6:11 
AnswerRe: How to create forum in asp.net Pin
Christian Graus1-Jun-09 11:32
protectorChristian Graus1-Jun-09 11:32 
Questionsql query Pin
jainiraj1-Jun-09 6:06
jainiraj1-Jun-09 6:06 
I have a table "custmsgrecieved" with columns as-
CustId,Message,DateofMsg,Subject,Status,FromBrokerId(may have NULL value),FromAdminId,MsgId(may have NULL value)

I have a gridview with diff columns.One of column is binded with "Name".This "Name" is defined below in sql quey.I have to pick up this table in my gridview.I have a query-

"select cust.*,brok.FirstName+' '+brok.LastName as Name,
from custmsgrecieved as cust,brokerdetails as brok
where cust.CustId='1001' and brok.BrokerId=cust.FromBrokerId"

here "brokerdetails" is another table which contains BrokerId,FirstName,LastName as columns.

Now problem is arising that when there is a NULL value in FromBrokerId in custmsgrecieved table then that row is not appearing in gridview.

and if following sql is used-
"select cust.*,brok.FirstName+' '+brok.LastName as Name,
from custmsgrecieved as cust,brokerdetails as brok
where cust.CustId='1001' or brok.BrokerId=cust.FromBrokerId"

then that row is appeared no. of times equal to no. of rows in brokerdetails.

I want that in gridview row correspondimg to FromBrokerId=NULL in custmsgrecieved appears as it is that is appear one time and also that column of gridview binded with "Name" has text "administrator".

plz help me...
AnswerRe: sql query Pin
Not Active1-Jun-09 7:31
mentorNot Active1-Jun-09 7:31 
QuestionPassing an ID to an external .js file Pin
dwolver1-Jun-09 4:44
dwolver1-Jun-09 4:44 
AnswerRe: Passing an ID to an external .js file Pin
RajeevKumarSharma1-Jun-09 23:19
RajeevKumarSharma1-Jun-09 23:19 
QuestionGridview in ASP.Net with C# [modified] Pin
mahichandu1-Jun-09 4:18
mahichandu1-Jun-09 4:18 
AnswerRe: Gridview in ASP.Net with C# Pin
Ibrahim Bello1-Jun-09 9:24
Ibrahim Bello1-Jun-09 9:24 
QuestionRe: Gridview in ASP.Net with C# Pin
mahichandu1-Jun-09 9:40
mahichandu1-Jun-09 9:40 
AnswerRe: Gridview in ASP.Net with C# Pin
Ibrahim Bello1-Jun-09 22:04
Ibrahim Bello1-Jun-09 22:04 
QuestionRe: Gridview in ASP.Net with C# Pin
mahichandu2-Jun-09 6:36
mahichandu2-Jun-09 6:36 
AnswerRe: Gridview in ASP.Net with C# Pin
Ibrahim Bello2-Jun-09 7:03
Ibrahim Bello2-Jun-09 7:03 
QuestionRe: Gridview in ASP.Net with C# Pin
mahichandu2-Jun-09 7:19
mahichandu2-Jun-09 7:19 
AnswerRe: Gridview in ASP.Net with C# Pin
Ibrahim Bello2-Jun-09 7:31
Ibrahim Bello2-Jun-09 7:31 
QuestionRe: Gridview in ASP.Net with C# Pin
mahichandu2-Jun-09 7:48
mahichandu2-Jun-09 7:48 
AnswerRe: Gridview in ASP.Net with C# Pin
Ibrahim Bello2-Jun-09 8:09
Ibrahim Bello2-Jun-09 8:09 
AnswerRe: Gridview in ASP.Net with C# Pin
Ibrahim Bello3-Jun-09 22:08
Ibrahim Bello3-Jun-09 22:08 
QuestionUnable to connect to SQL Server database. Pin
Koss_G1-Jun-09 4:01
Koss_G1-Jun-09 4:01 
AnswerRe: Unable to connect to SQL Server database. Pin
Herman<T>.Instance2-Jun-09 21:54
Herman<T>.Instance2-Jun-09 21:54 
QuestionHidden Field problem Pin
ais071-Jun-09 3:58
ais071-Jun-09 3:58 

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.