Click here to Skip to main content
   

ASP.NET

 
AnswerRe: DataBase Problem @@ PinmemberPIEBALDconsult21-Apr-13 7:29 
GeneralRe: DataBase Problem @@ PingroupMichael†Cheong21-Apr-13 7:36 
GeneralRe: DataBase Problem @@ PinmemberPIEBALDconsult21-Apr-13 8:19 
GeneralRe: DataBase Problem @@ PinmemberJasmine250122-Apr-13 10:21 
AnswerRe: DataBase Problem @@ PinmemberAner Bautista22-Apr-13 9:07 
Questionasp.net. webPages, webForms, MVC, ... oh my god PinmemberFrygreen20-Apr-13 10:34 
AnswerRe: asp.net. webPages, webForms, MVC, ... oh my god PinmvpSandeep Mewara21-Apr-13 0:26 
AnswerRe: asp.net. webPages, webForms, MVC, ... oh my god PinmvpRichard MacCutchan21-Apr-13 0:38 
GeneralRe: asp.net. webPages, webForms, MVC, ... oh my god PinmemberFrygreen26-Apr-13 8:45 
Questionhow to create YES/NO buttons in a popup? PinmemberQadri Jillani19-Apr-13 21:57 
AnswerRe: how to create YES/NO buttons in a popup? PinprofessionalAbhishek Sur20-Apr-13 2:37 
Questionsetup file PinmemberAshwini kumbhar19-Apr-13 20:31 
AnswerRe: setup file PinprofessionalKarthik Harve19-Apr-13 20:56 
Questionjavascript __dopostback System.NullReferenceException Pinmemberjojoba201119-Apr-13 19: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 PinprofessionalKarthik Harve19-Apr-13 21:21 
QuestionRe: javascript __dopostback System.NullReferenceException Pinmemberjojoba201119-Apr-13 21:47 
AnswerRe: javascript __dopostback System.NullReferenceException PinprofessionalKarthik Harve19-Apr-13 22:26 
QuestionRe: javascript __dopostback System.NullReferenceException Pinmemberjojoba201119-Apr-13 23:04 
QuestionRe: javascript __dopostback System.NullReferenceException Pinmemberjojoba201121-Apr-13 18:41 
Questionhow to append text on textarea T_T no people reply [modified] PingroupMichael†Cheong19-Apr-13 6:21 
AnswerRe: how to append text on textarea T_T no people reply PinmemberJasmine250119-Apr-13 10:45 
AnswerRe: how to append text on textarea T_T no people reply Pinmembermark merrens19-Apr-13 11:57 
GeneralRe: how to append text on textarea T_T no people reply PingroupMichael†Cheong19-Apr-13 19:39 
QuestionCode migration to VB to C# Pinmembercreatives.system18-Apr-13 20:15 
AnswerRe: Code migration to VB to C# PinprofessionalKarthik Harve18-Apr-13 21:07 
GeneralRe: Code migration to VB to C# Pinmemberdusty_dex18-Apr-13 22:48 
AnswerRe: Code migration to VB to C# PinprofessionalRichard Deeming19-Apr-13 3:01 
QuestionHELP T_T save image into database (binary format) PingroupMichael†Cheong18-Apr-13 8:04 
AnswerRe: HELP T_T save image into database (binary format) PinprofessionalRichard Deeming18-Apr-13 8:09 
GeneralRe: HELP T_T save image into database (binary format) PingroupMichael†Cheong18-Apr-13 10:44 
GeneralRe: HELP T_T save image into database (binary format) PinprofessionalRichard Deeming18-Apr-13 11:03 
GeneralRe: HELP T_T save image into database (binary format) PingroupMichael†Cheong18-Apr-13 20:52 
Questionasp.net handler asking PingroupMichael†Cheong18-Apr-13 5:31 
AnswerRe: asp.net handler asking PinprofessionalRichard Deeming18-Apr-13 6:20 
QuestionASP.NET performance PinmemberKalim_mughal18-Apr-13 2:38 
AnswerRe: ASP.NET performance PinmvpRichard MacCutchan18-Apr-13 2:48 
GeneralRe: ASP.NET performance PinmemberKalim_mughal18-Apr-13 3:06 
GeneralRe: ASP.NET performance PinmvpRichard MacCutchan18-Apr-13 3:10 
AnswerRe: ASP.NET performance Pinmemberryanb3118-Apr-13 3:22 
GeneralRe: ASP.NET performance PinmemberKalim_mughal18-Apr-13 3:45 
AnswerRe: ASP.NET performance Pinmemberryanb3118-Apr-13 3:48 
AnswerRe: ASP.NET performance PinprofessionalMarco Bertschi18-Apr-13 6:51 
Questionparallel programming Pinmembervasanth2vasu17-Apr-13 11:57 
AnswerRe: parallel programming PinmemberMember6117-Apr-13 19:25 
AnswerRe: parallel programming PinmemberMember6117-Apr-13 19:27 
AnswerRe: parallel programming PinmvpRichard MacCutchan17-Apr-13 23:41 
GeneralRe: parallel programming Pinmembervasanth2vasu18-Apr-13 2:24 
GeneralRe: parallel programming PinmvpRichard MacCutchan18-Apr-13 2:30 
GeneralRe: parallel programming Pinmembervasanth2vasu18-Apr-13 2:46 
GeneralRe: parallel programming PinmvpRichard MacCutchan18-Apr-13 3: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
Web04 | 2.8.150327.1 | Last Updated 29 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid