Click here to Skip to main content
15,919,479 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: DataTable.Merge() Pin
ChrisKo23-Aug-07 7:50
ChrisKo23-Aug-07 7:50 
QuestionQuestion regarding Session abandon in case of closing a web page using task bar Pin
suryany7222-Aug-07 18:39
suryany7222-Aug-07 18:39 
AnswerRe: Question regarding Session abandon in case of closing a web page using task bar Pin
\laddie24-Aug-07 0:33
\laddie24-Aug-07 0:33 
QuestionFormView Issue Pin
cisco210322-Aug-07 17:02
cisco210322-Aug-07 17:02 
AnswerRe: FormView Issue Pin
chathu03j22-Aug-07 18:14
chathu03j22-Aug-07 18:14 
GeneralRe: FormView Issue Pin
cisco210323-Aug-07 4:27
cisco210323-Aug-07 4:27 
QuestionError when adding a CustomValidator control dynamically Pin
limdv (DVLITS)22-Aug-07 10:47
limdv (DVLITS)22-Aug-07 10:47 
QuestionModifying gridview data on the fly? Pin
Goalie3522-Aug-07 8:27
Goalie3522-Aug-07 8:27 
I'm returning data from a sql query that populates a gridview however I want to modify what's displayed in 1 of the gridview columns based on whether or not a value returned in the sql query is null.

Basically, if the value in a particular row of data is null, I want to return an imagebutton that says "Add". If the value is not null, I want to return an imagebutton that says "Edit".

For example, something like this:
if(SqlQuery.SqlRow(20).SqlColumn(4).Value = null)
{
gridView.gridRow(20).gridColumn(4).Value = "<a href='addData.aspx'><img src='images/add_button.jpg'></a>";
}
else
{
gridView.gridRow(20).gridColumn(4).Value = "<a href='editData.aspx'><img src='images/edit_button.jpg'></a>";
}


Any idea how I can do this?

Thanks.

-goalie35

AnswerRe: Modifying gridview data on the fly? Pin
jcdevnet22-Aug-07 10:45
jcdevnet22-Aug-07 10:45 
QuestionLogin controls help Pin
AhmadRock22-Aug-07 6:31
AhmadRock22-Aug-07 6:31 
AnswerRe: Login controls help Pin
Big Ralph22-Aug-07 22:30
Big Ralph22-Aug-07 22:30 
QuestionDynamic Buttons, many to many? Pin
Gump61922-Aug-07 5:45
Gump61922-Aug-07 5:45 
AnswerRe: Dynamic Buttons, many to many? Pin
Eduard Keilholz22-Aug-07 6:25
Eduard Keilholz22-Aug-07 6:25 
GeneralRe: Dynamic Buttons, many to many? Pin
Gump61922-Aug-07 8:19
Gump61922-Aug-07 8:19 
QuestionCross-Page Posback fired via ASP.NET Code Pin
gus_br22-Aug-07 5:33
gus_br22-Aug-07 5:33 
AnswerRe: Cross-Page Posback fired via ASP.NET Code Pin
Eduard Keilholz22-Aug-07 6:21
Eduard Keilholz22-Aug-07 6:21 
GeneralRe: Cross-Page Posback fired via ASP.NET Code Pin
gus_br22-Aug-07 7:32
gus_br22-Aug-07 7:32 
AnswerRe: Cross-Page Posback fired via ASP.NET Code Pin
DavidNohejl22-Aug-07 11:04
DavidNohejl22-Aug-07 11:04 
QuestionSSL on Production not Dev Pin
Richard Mancuso22-Aug-07 5:01
Richard Mancuso22-Aug-07 5:01 
AnswerRe: SSL on Production not Dev Pin
Vasudevan Deepak Kumar22-Aug-07 5:08
Vasudevan Deepak Kumar22-Aug-07 5:08 
GeneralRe: SSL on Production not Dev Pin
Richard Mancuso22-Aug-07 8:06
Richard Mancuso22-Aug-07 8:06 
QuestionSaving application configuration in database Pin
astv22-Aug-07 4:47
astv22-Aug-07 4:47 
QuestionExporting to Excel in ASP.Net Pin
meeram39522-Aug-07 4:19
meeram39522-Aug-07 4:19 
AnswerRe: Exporting to Excel in ASP.Net Pin
Vasudevan Deepak Kumar22-Aug-07 4:31
Vasudevan Deepak Kumar22-Aug-07 4:31 
QuestionHow to use FormView in my webForm ? Pin
hdv21222-Aug-07 4:09
hdv21222-Aug-07 4:09 

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.