Click here to Skip to main content
11,581,186 members (65,075 online)
   

ASP.NET

 
AnswerRe: DataBase Problem @@ Pin
PIEBALDconsult21-Apr-13 6:29
memberPIEBALDconsult21-Apr-13 6:29 
GeneralRe: DataBase Problem @@ Pin
Michael†Cheong21-Apr-13 6:36
groupMichael†Cheong21-Apr-13 6:36 
GeneralRe: DataBase Problem @@ Pin
PIEBALDconsult21-Apr-13 7:19
memberPIEBALDconsult21-Apr-13 7:19 
GeneralRe: DataBase Problem @@ Pin
Jasmine250122-Apr-13 9:21
memberJasmine250122-Apr-13 9:21 
AnswerRe: DataBase Problem @@ Pin
Aner Bautista22-Apr-13 8:07
memberAner Bautista22-Apr-13 8:07 
Questionasp.net. webPages, webForms, MVC, ... oh my god Pin
Frygreen20-Apr-13 9:34
memberFrygreen20-Apr-13 9:34 
AnswerRe: asp.net. webPages, webForms, MVC, ... oh my god Pin
Sandeep Mewara20-Apr-13 23:26
mvpSandeep Mewara20-Apr-13 23:26 
AnswerRe: asp.net. webPages, webForms, MVC, ... oh my god Pin
Richard MacCutchan20-Apr-13 23:38
mvpRichard MacCutchan20-Apr-13 23:38 
GeneralRe: asp.net. webPages, webForms, MVC, ... oh my god Pin
Frygreen26-Apr-13 7:45
memberFrygreen26-Apr-13 7:45 
Questionhow to create YES/NO buttons in a popup? Pin
Qadri Jillani19-Apr-13 20:57
memberQadri Jillani19-Apr-13 20:57 
AnswerRe: how to create YES/NO buttons in a popup? Pin
Abhishek Sur20-Apr-13 1:37
professionalAbhishek Sur20-Apr-13 1:37 
Questionsetup file Pin
Ashwini kumbhar19-Apr-13 19:31
memberAshwini kumbhar19-Apr-13 19:31 
AnswerRe: setup file Pin
Karthik Harve19-Apr-13 19:56
professionalKarthik Harve19-Apr-13 19:56 
Questionjavascript __dopostback System.NullReferenceException Pin
jojoba201119-Apr-13 18:36
memberjojoba201119-Apr-13 18:36 
Here's the problem :
When the gvWorkReportList is invisble and gvWorkReportList.FooterRow =null in page loading i get the bellow error :
Quote:
System.NullReferenceException: Object reference not set to an instance of an object.
the error is on this part of code :
__doPostBack('<%=gvWorkReportList.FooterRow.FindControl("lnkAdd").UniqueID%>', '');


Quote:
this is the piece of my code!

<script type="text/javascript">
 
        function KeyDownHandler() {
 
            // process only the Enter key
            if (event.keyCode == 13) {
                 
                    __doPostBack('<%=gvWorkReportList.FooterRow.FindControl("lnkAdd").UniqueID%>', '');
 
                
            }
        }
 
    </script>

This doesn't seem like it should be that hard, so if someone could just give me a kick in the right direction, that'd be awesome.

I have used these solution but it dosen't work :

var grid = document.getElementById('<%=gvWorkReportList.FooterRow.FindControl("lnkAdd").UniqueID%>');
                if (grid != null) {
                    __doPostBack('<%=gvWorkReportList.FooterRow.FindControl("lnkAdd").UniqueID%>', '');
 
                }


var grid = document.getElementById("ctl00_ContentPlaceHolderContent_gvWorkReportList");
                if (grid != null) {
                    __doPostBack('<%=gvWorkReportList.FooterRow.FindControl("lnkAdd").UniqueID%>', '');
 
                }


var gridFooter = gvWorkReportList.FooterRow;
                if (gridFooter != null) {
                    __doPostBack('<%=gvWorkReportList.FooterRow.FindControl("lnkAdd").UniqueID%>', '');
 
                }

AnswerRe: javascript __dopostback System.NullReferenceException Pin
Karthik Harve19-Apr-13 20:21
professionalKarthik Harve19-Apr-13 20:21 
QuestionRe: javascript __dopostback System.NullReferenceException Pin
jojoba201119-Apr-13 20:47
memberjojoba201119-Apr-13 20:47 
AnswerRe: javascript __dopostback System.NullReferenceException Pin
Karthik Harve19-Apr-13 21:26
professionalKarthik Harve19-Apr-13 21:26 
QuestionRe: javascript __dopostback System.NullReferenceException Pin
jojoba201119-Apr-13 22:04
memberjojoba201119-Apr-13 22:04 
QuestionRe: javascript __dopostback System.NullReferenceException Pin
jojoba201121-Apr-13 17:41
memberjojoba201121-Apr-13 17:41 
Questionhow to append text on textarea T_T no people reply Pin
Michael†Cheong19-Apr-13 5:21
groupMichael†Cheong19-Apr-13 5:21 
AnswerRe: how to append text on textarea T_T no people reply Pin
Jasmine250119-Apr-13 9:45
memberJasmine250119-Apr-13 9:45 
AnswerRe: how to append text on textarea T_T no people reply Pin
mark merrens19-Apr-13 10:57
membermark merrens19-Apr-13 10:57 
GeneralRe: how to append text on textarea T_T no people reply Pin
Michael†Cheong19-Apr-13 18:39
groupMichael†Cheong19-Apr-13 18:39 
QuestionCode migration to VB to C# Pin
creatives.system18-Apr-13 19:15
membercreatives.system18-Apr-13 19:15 
AnswerRe: Code migration to VB to C# Pin
Karthik Harve18-Apr-13 20:07
professionalKarthik Harve18-Apr-13 20:07 
GeneralRe: Code migration to VB to C# Pin
dusty_dex18-Apr-13 21:48
memberdusty_dex18-Apr-13 21:48 
AnswerRe: Code migration to VB to C# Pin
Richard Deeming19-Apr-13 2:01
professionalRichard Deeming19-Apr-13 2:01 
QuestionHELP T_T save image into database (binary format) Pin
Michael†Cheong18-Apr-13 7:04
groupMichael†Cheong18-Apr-13 7:04 
AnswerRe: HELP T_T save image into database (binary format) Pin
Richard Deeming18-Apr-13 7:09
professionalRichard Deeming18-Apr-13 7:09 
GeneralRe: HELP T_T save image into database (binary format) Pin
Michael†Cheong18-Apr-13 9:44
groupMichael†Cheong18-Apr-13 9:44 
GeneralRe: HELP T_T save image into database (binary format) Pin
Richard Deeming18-Apr-13 10:03
professionalRichard Deeming18-Apr-13 10:03 
GeneralRe: HELP T_T save image into database (binary format) Pin
Michael†Cheong18-Apr-13 19:52
groupMichael†Cheong18-Apr-13 19:52 
Questionasp.net handler asking Pin
Michael†Cheong18-Apr-13 4:31
groupMichael†Cheong18-Apr-13 4:31 
AnswerRe: asp.net handler asking Pin
Richard Deeming18-Apr-13 5:20
professionalRichard Deeming18-Apr-13 5:20 
QuestionASP.NET performance Pin
Kalim_mughal18-Apr-13 1:38
memberKalim_mughal18-Apr-13 1:38 
AnswerRe: ASP.NET performance Pin
Richard MacCutchan18-Apr-13 1:48
mvpRichard MacCutchan18-Apr-13 1:48 
GeneralRe: ASP.NET performance Pin
Kalim_mughal18-Apr-13 2:06
memberKalim_mughal18-Apr-13 2:06 
GeneralRe: ASP.NET performance Pin
Richard MacCutchan18-Apr-13 2:10
mvpRichard MacCutchan18-Apr-13 2:10 
AnswerRe: ASP.NET performance Pin
ryanb3118-Apr-13 2:22
memberryanb3118-Apr-13 2:22 
GeneralRe: ASP.NET performance Pin
Kalim_mughal18-Apr-13 2:45
memberKalim_mughal18-Apr-13 2:45 
AnswerRe: ASP.NET performance Pin
ryanb3118-Apr-13 2:48
memberryanb3118-Apr-13 2:48 
AnswerRe: ASP.NET performance Pin
Marco Bertschi18-Apr-13 5:51
professionalMarco Bertschi18-Apr-13 5:51 
Questionparallel programming Pin
vasanth2vasu17-Apr-13 10:57
membervasanth2vasu17-Apr-13 10:57 
AnswerRe: parallel programming Pin
Member6117-Apr-13 18:25
memberMember6117-Apr-13 18:25 
AnswerRe: parallel programming Pin
Member6117-Apr-13 18:27
memberMember6117-Apr-13 18:27 
AnswerRe: parallel programming Pin
Richard MacCutchan17-Apr-13 22:41
mvpRichard MacCutchan17-Apr-13 22:41 
GeneralRe: parallel programming Pin
vasanth2vasu18-Apr-13 1:24
membervasanth2vasu18-Apr-13 1:24 
GeneralRe: parallel programming Pin
Richard MacCutchan18-Apr-13 1:30
mvpRichard MacCutchan18-Apr-13 1:30 
GeneralRe: parallel programming Pin
vasanth2vasu18-Apr-13 1:46
membervasanth2vasu18-Apr-13 1:46 
GeneralRe: parallel programming Pin
Richard MacCutchan18-Apr-13 2:08
mvpRichard MacCutchan18-Apr-13 2:08 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 6 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid