OnDeleteCommand not working?

I'm trying to call a sub procedure called dgFileList_DeleteFile() but when I click the delete linkbutton it doesn't go to the subprocedure, it just posts back to the page.

Here's my code:
<asp:DataGrid id="dgFileList" runat="server" DataKeyField="FullName" Width="100%" AutoGenerateColumns="False" OnDeleteCommand="dgFileList_DeleteFile">
<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#3B465B"></HeaderStyle>
<Columns>
    <asp:TemplateColumn ItemStyle-Width="16px" ItemStyle-HorizontalAlign="Center">
        <ItemTemplate>
            <asp:Image ID="imgIcon" ImageUrl='<%# Container.DataItem("icon") %>' Runat="server"></asp:Image>
        </ItemTemplate>
    </asp:TemplateColumn>
    <asp:TemplateColumn HeaderText="Filename">
        <ItemTemplate>
            <asp:HyperLink ID="hypLocation" NavigateUrl='<%# Container.DataItem("Location") %>' text='<%# Container.DataItem("Name") %>' Target="_blank" Runat="server"></asp:HyperLink>
        </ItemTemplate>
    </asp:TemplateColumn>
    <asp:BoundColumn DataField="Length" HeaderText="Length (bytes)"></asp:BoundColumn>
    <asp:BoundColumn DataField="LastAccessTime" HeaderText="Last Accessed"></asp:BoundColumn>
    <asp:ButtonColumn Text="Delete" CommandName="Delete" ButtonType="LinkButton">
        <ItemStyle HorizontalAlign="Center" Width="40px"></ItemStyle>
    </asp:ButtonColumn>
</Columns>
</asp:DataGrid>

Code behind the page:
    Sub dgFileList_DeleteFile(ByVal sender As Object, ByVal e As DataGridCommandEventArgs)
        Dim fileName As String = dgFileList.DataKeys(e.Item.ItemIndex)
        Dim sPath As String

        sPath = "content/" & sCode & "/"

        If Request.QueryString("sub") <> "" Then
            sPath &= Request.QueryString("dir") & "/" & Request.QueryString("sub") & "/"
        ElseIf Request.QueryString("dir") <> "" Then
            sPath &= Request.QueryString("dir") & "/"
        End If

        Try
            File.Delete(fileName)
        Catch ex As Exception
            Response.Write(ex)
        End Try

        getFileInfo(sPath)
    End Sub

Any help with this would be greatly appreciated! I need to know how to fix this before Monday afternoon!
LVL 1
CompmouseAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ihenryCommented:
Add a handle procedure dgFileList.DeleteCommand statement to the declaration line of the event handler, like so

   Sub dgFileList_DeleteFile(ByVal sender As Object, ByVal e As DataGridCommandEventArgs) Handles dgFileList.DeleteCommand
        Dim fileName As String = dgFileList.DataKeys(e.Item.ItemIndex)
        Dim sPath As String
        ...
        ...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CompmouseAuthor Commented:
I added the handler exactly as you had it and it still won't run the sub proc.
0
ihenryCommented:
If you are using asp.net code behind, you also have to recompiled the code.
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

CompmouseAuthor Commented:
I did recompile the code, several times in fact just to be sure.
0
CompmouseAuthor Commented:
Can anyone else please help me with this? It is very important that I get this working by Monday afternoon.
0
ihenryCommented:
Compmouse,

I don't see other reason why the event can't fire. One last try, right click on the page, select "View Source". And please post the raw html here.
0
CompmouseAuthor Commented:
I'm beginning to think it's my version of .NET that's doing it, I'm running .NET 2003...

--------------------------------------------------------------------------------------------
Before clicking on "Delete":
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>
      <HEAD>
            <title>Reach Learning System</title><!-- InstanceBegin template="/Templates/main.dwt" codeOutsideHTMLIsLocked="false" -->
            <!-- InstanceBeginEditable name="doctitle" -->
            <!-- InstanceEndEditable -->
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
            <!-- InstanceBeginEditable name="head" -->
            <!-- InstanceEndEditable -->
            <style type="text/css">BODY {
      BACKGROUND-IMAGE: url(images/bg.gif); MARGIN: 0px
}
</style>
            <LINK href="style.css" type="text/css" rel="stylesheet">
      </HEAD>
      <body>
            <form name="Form1" method="post" action="courseContent.aspx?code=GRAF240" id="Form1" enctype="multipart/form-data">
<input type="hidden" name="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" value="dDwzMTY5Nzg4NzM7dDw7bDxpPDE+Oz47bDx0PHA8bDxlbmN0eXBlOz47bDxtdWx0aXBhcnQvZm9ybS1kYXRhOz4+O2w8aTwzPjtpPDU+O2k8Nz47PjtsPHQ8O2w8aTwwPjtpPDI+O2k8ND47PjtsPHQ8QDA8cDxwPGw8U0Q7PjtsPGw8U3lzdGVtLkRhdGVUaW1lLCBtc2NvcmxpYiwgVmVyc2lvbj0xLjAuNTAwMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODk8MjAwNC0xMS0yOD47Pjs+Pjs+Ozs7Ozs7Ozs7Oz47Oz47dDxwPHA8bDxWaXNpYmxlOz47bDxvPHQ+Oz4+Oz47bDxpPDE+Oz47bDx0PHA8bDxfIUl0ZW1Db3VudDs+O2w8aTwyPjs+PjtsPGk8MD47aTwxPjs+O2w8dDw7bDxpPDE+O2k8Mz47aTw0PjtpPDU+Oz47bDx0PHA8cDxsPFRleHQ7PjtsPEdSQUYyNDA7Pj47Pjs7Pjt0PHA8cDxsPFRleHQ7PjtsPFRyYWluZXI7Pj47Pjs7Pjt0PEA8R1JBRjI0MDtUeXBvZ3JhcGh5IERpZ2l0YWw7Pjs7Pjt0PHA8cDxsPFZpc2libGU7PjtsPG88dD47Pj47PjtsPGk8MD47aTwxPjs+O2w8dDxAPEdSQUYyNDA7R1JBRjI0MDtHUkFGMjQwOz47Oz47dDxwPHA8bDxWaXNpYmxlOz47bDxvPHQ+Oz4+Oz47bD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zR0MuYm1wO2xvYmxhd3NHQy5ibXA7Pj47Pjs7Pjs+Pjt0PHA8cDxsPFRleHQ7PjtsPDQ1NzA3ODs+Pjs+Ozs+O3Q8cDxwPGw8VGV4dDs+O2w8MTEvMjgvMjAwNCAzOjU3OjE5IFBNOz4+Oz47Oz47dDw7bDxpPDA+Oz47bDx0PHA8O3A8bDxvbmNsaWNrOz47bDxqYXZhc2NyaXB0OnJldHVybiBjb25maXJtKCdBcmUgeW91IHN1cmUgeW91IHdhbnQgdG8gZGVsZXRlIHRoZSBmaWxlIGxvYmxhd3NHQy5ibXA/Jyk7Pj4+Ozs+Oz4+Oz4+Oz4+Oz4+Oz4+O3Q8cDxwPGw8VmlzaWJsZTs+O2w8bzxmPjs+Pjs+O2w8aTwxPjs+O2w8dDxAMDxwPHA8bDxEYXRhS2V5cztfIUl0ZW1Db3VudDs+O2w8bDw+O2k8LTE+Oz4+Oz47Ozs7Ozs7Oz47Oz47Pj47Pj47Pj47PoO7Yo9l6JogDipuSSWuDwjNwKW+" />

<script language="javascript" type="text/javascript">
<!--
      function __doPostBack(eventTarget, eventArgument) {
            var theform;
            if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
                  theform = document.Form1;
            }
            else {
                  theform = document.forms["Form1"];
            }
            theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
            theform.__EVENTARGUMENT.value = eventArgument;
            theform.submit();
      }
// -->
</script>

                  <table cellSpacing="0" cellPadding="0" width="100%" border="0">
                        <tr>
                              <td align="center">
                                    <TABLE cellSpacing="0" cellPadding="0" width="778" border="0">
                                          <TR>
                                                <TD rowSpan="2"><IMG height="69" alt="" src="images/headertop_01.gif" width="527" useMap="#Map" border="0"></TD>
                                                <TD colSpan="2"><IMG height="18" alt="" src="images/headertop_02.gif" width="251"></TD>
                                          </TR>
                                          <TR>
                                                <TD vAlign="middle" align="left" width="224" background="images/headertop_03.gif">
                                                      <div align="center">
Welcome Cheri</span>!<br>
<a href="logout.aspx">Click Here to Logout</a></div>
                                                </TD>
                                                <TD><IMG height="51" alt="" src="images/headertop_04.gif" width="27"></TD>
                                          </TR>
                                    </TABLE>
                                    <table cellSpacing="0" cellPadding="0" width="100" border="0">
                                          <tr>
                                                <td class="repeatleft" align="left" width="22" bgColor="#ffffff"><IMG height="5" src="interface/newside_02.gif" width="22"></td>
                                                <td width="736" bgColor="#ffffff"><br> <!-- InstanceBeginEditable name="Navigigation" --> <!-- #BeginLibraryItem "/Templates/navigationTop.lbi" -->
                                                      <table cellSpacing="0" cellPadding="0" width="99%" border="0">
                                                            <tr>
                                                                  <td align="left" width="9"><IMG height="22" src="images/headernav_01.gif" width="9"></td>
                                                                  <td align="left" width="720" background="images/headernav_04.gif"><A href="main.aspx"><IMG height="22" src="images/_btnmyhome.gif" width="72" border="0"></A><A href="courses.aspx"><IMG height="22" src="images/_btnCourses.gif" width="72" border="0"></A><A href="calendar.aspx"><IMG height="22" src="images/_btnCalender.gif" width="72" border="0"></A><A href="tasks.aspx"><IMG height="22" src="images/_btnTasks.gif" width="72" border="0"></A><A href="grades.aspx"><IMG height="22" src="images/_btnGrades.gif" width="72" border="0"></A><A href="options.aspx"><IMG height="22" src="images/_btnOptions.gif" width="72" border="0"></A><A href="admin.aspx"><IMG height="22" src="images/_btnAdmin.gif" width="72" border="0"></A></td>
                                                                  <td align="right" width="7" background="images/headernav_04.gif"><IMG height="22" src="images/headernav_06.gif" width="7"></td>
                                                            </tr>
                                                      </table>
                                                      <!-- #EndLibraryItem --> <!-- InstanceEndEditable -->
                                                      <table cellSpacing="0" cellPadding="0" width="100%" border="0">
                                                            <tr>
                                                                  <td vAlign="top" align="left" width="24%"><br>
                                                                        <table class="leftCopy" cellSpacing="0" cellPadding="3" width="175" border="0">
                                                                              <tr>
                                                                                    <td>
                                                                                          <div align="center"><table id="calMain" cellspacing="0" cellpadding="2" border="0" style="border-width:1px;border-style:solid;width:183px;border-collapse:collapse;">
      <tr><td colspan="7" style="background-color:Silver;"><table cellspacing="0" border="0" style="width:100%;border-collapse:collapse;">
            <tr><td style="width:15%;"><a href="javascript:__doPostBack('SubMenu1$calMain','V1735')" style="color:Black">&lt;</a></td><td align="Center" style="width:70%;">November 2004</td><td align="Right" style="width:15%;"><a href="javascript:__doPostBack('SubMenu1$calMain','V1796')" style="color:Black">&gt;</a></td></tr>
      </table></td></tr><tr><td align="Center">Sun</td><td align="Center">Mon</td><td align="Center">Tue</td><td align="Center">Wed</td><td align="Center">Thu</td><td align="Center">Fri</td><td align="Center">Sat</td></tr><tr><td align="Center" style="width:14%;"></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1766')" style="color:Black">1</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1767')" style="color:Black">2</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1768')" style="color:Black">3</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1769')" style="color:Black">4</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1770')" style="color:Black">5</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1771')" style="color:Black">6</a></td></tr><tr><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1772')" style="color:Black">7</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1773')" style="color:Black">8</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1774')" style="color:Black">9</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1775')" style="color:Black">10</a></td><td align="Center" style="background-color:PaleVioletRed;width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1776')" style="color:Black">11</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1777')" style="color:Black">12</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1778')" style="color:Black">13</a></td></tr><tr><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1779')" style="color:Black">14</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1780')" style="color:Black">15</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1781')" style="color:Black">16</a></td><td align="Center" style="background-color:PaleVioletRed;width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1782')" style="color:Black">17</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1783')" style="color:Black">18</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1784')" style="color:Black">19</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1785')" style="color:Black">20</a></td></tr><tr><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1786')" style="color:Black">21</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1787')" style="color:Black">22</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1788')" style="color:Black">23</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1789')" style="color:Black">24</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1790')" style="color:Black">25</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1791')" style="color:Black">26</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1792')" style="color:Black">27</a></td></tr><tr><td align="Center" style="color:White;background-color:Silver;width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1793')" style="color:White">28</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1794')" style="color:Black">29</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1795')" style="color:Black">30</a></td><td align="Center" style="width:14%;"></td><td align="Center" style="width:14%;"></td><td align="Center" style="width:14%;"></td><td align="Center" style="width:14%;"></td></tr><tr><td align="Center" style="width:14%;"></td><td align="Center" style="width:14%;"></td><td align="Center" style="width:14%;"></td><td align="Center" style="width:14%;"></td><td align="Center" style="width:14%;"></td><td align="Center" style="width:14%;"></td><td align="Center" style="width:14%;"></td></tr>
</table>
<div id="SubMenu1_panContent">
      
      <DIV class="header">Courses</DIV>
      
                  <div align="left">
                        
                        
                        <a href='courseDetail.aspx?code=GRAF240'>
                              Typography Digital
                        </a>
                        <br />
                  </div>
                  <div id="SubMenu1_rptCourses__ctl0_panSubLinks">
            
                        <div style="text-align: left; margin-left: 10px;">
                              - <a href='courseContent.aspx?code=GRAF240'>Content</a><br />
                              - <a href='grades.aspx?code=GRAF240'>Grades</a><br />
                              - <a href='courseNews.aspx?code=GRAF240'>News</a><br />
                              <div id="SubMenu1_rptCourses__ctl0_panSubLinksTrain">
                  
                              - <a href='classList.aspx?code=GRAF240'>Class List</a><br />
                              
            </div>
                        </div>
                  
      </div>
            
                  <div align="left">
                        
                        
                        <a href='courseDetail.aspx?code=PHOT333'>
                              Camera Basics
                        </a>
                        <br />
                  </div>
                  
            

</div>
<DIV class="header"><img src="images/links.jpg"></DIV>
<table id="SubMenu1_dlLinks" cellspacing="0" align="Left" border="0" style="border-collapse:collapse;">
      <tr>
            <td align="Left">
            <a href='http://www.fanshawec.ca' target="_blank">
                  Academy of Design Homepage
            </a>
      </td>
      </tr><tr>
            <td align="Left">
            <a href='http://webadvisor.fanshawec.ca' target="_blank">
                  Web Advisor
            </a>
      </td>
      </tr><tr>
            <td align="Left">
            <a href='http://www.AODslum.com' target="_blank">
                  AOD Alumni
            </a>
      </td>
      </tr>
</table>
</div>
                                                                                    </td>
                                                                              </tr>
                                                                              <tr>
                                                                                    <td>&nbsp;
                                                                                    </td>
                                                                              </tr>
                                                                        </table>
                                                                  </td>
                                                                  <td vAlign="top" width="76%"><!-- InstanceBeginEditable name="maincontent" -->
                                                                        <div align="center"><br>
                                                                              <table class="maintable" cellSpacing="3" cellPadding="0" width="97%" border="0">
                                                                                    <TBODY>
                                                                                          <tr>
                                                                                                <td align="left" bgColor="#3b465b"><IMG height="13" src="images/_mainHeader.gif" width="296"></td>
                                                                                          </tr>
                                                                                          <tr>
                                                                                                <td align="left">Course Content<BR>
                                                                                                      <div id="panViewTrain">
Click on a link
                        below to download the course content or add a new folder
                        or directory using the form.
                        <TABLE cellSpacing="0" cellPadding="0" width="100%">
                                                                                                                  <TR>
                                                                                                                        <TD>      <input name="fUpload" id="fUpload" type="file" />
                                                                                                                              <BR>
                                                                                                                              <input type="submit" name="btnUpload" value="Upload a File" id="btnUpload" /></TD>
                                                                                                                        <TD vAlign="bottom" align="right">
                                                                                                                              <input name="txtAddFolder" type="text" id="txtAddFolder" />&nbsp;
                                                                                                                              <input type="submit" name="btnAddFolder" value="Add Folder" id="btnAddFolder" /></TD>
                                                                                                                  </TR>
                                                                                                            </TABLE>
                        <HR>
                        Current Directory:
<span id="lblCurDirectory">Root</span>
<table cellspacing="0" rules="all" border="1" id="dgFileList" style="width:100%;border-collapse:collapse;">
            <tr style="color:White;background-color:#3B465B;font-weight:bold;">
                  <td>&nbsp;</td><td>Filename</td><td>Length (bytes)</td><td>Last Accessed</td><td>&nbsp;</td>
            </tr><tr>
                  <td align="Center" style="width:16px;">
                                                                                                                                    <img id="dgFileList__ctl2_imgIcon" src="images/folder.gif" alt="" border="0" />
                                                                                                                              </td><td>
                                                                                                                                    <a id="dgFileList__ctl2_hypLocation" href="courseContent.aspx?code=GRAF240&amp;dir=Assignments" target="_self">Assignments</a>
                                                                                                                              </td><td>0</td><td>&nbsp;</td><td align="Center" style="width:40px;"><a onclick="javascript:return confirm('Are you sure you want to delete the file Assignments?')" href="javascript:__doPostBack('dgFileList$_ctl2$_ctl0','')">Delete</a></td>
            </tr><tr>
                  <td align="Center" style="width:16px;">
                                                                                                                                    <img id="dgFileList__ctl3_imgIcon" src="images/folder.gif" alt="" border="0" />
                                                                                                                              </td><td>
                                                                                                                                    <a id="dgFileList__ctl3_hypLocation" href="courseContent.aspx?code=GRAF240&amp;dir=Info" target="_self">Info</a>
                                                                                                                              </td><td>0</td><td>&nbsp;</td><td align="Center" style="width:40px;"><a onclick="javascript:return confirm('Are you sure you want to delete the file Info?')" href="javascript:__doPostBack('dgFileList$_ctl3$_ctl0','')">Delete</a></td>
            </tr><tr>
                  <td align="Center" style="width:16px;">
                                                                                                                                    <img id="dgFileList__ctl4_imgIcon" src="images/folder.gif" alt="" border="0" />
                                                                                                                              </td><td>
                                                                                                                                    <a id="dgFileList__ctl4_hypLocation" href="courseContent.aspx?code=GRAF240&amp;dir=Misc" target="_self">Misc</a>
                                                                                                                              </td><td>0</td><td>&nbsp;</td><td align="Center" style="width:40px;"><a onclick="javascript:return confirm('Are you sure you want to delete the file Misc?')" href="javascript:__doPostBack('dgFileList$_ctl4$_ctl0','')">Delete</a></td>
            </tr><tr>
                  <td align="Center" style="width:16px;">
                                                                                                                                    <img id="dgFileList__ctl5_imgIcon" src="images/folder.gif" alt="" border="0" />
                                                                                                                              </td><td>
                                                                                                                                    <a id="dgFileList__ctl5_hypLocation" href="courseContent.aspx?code=GRAF240&amp;dir=Tests" target="_self">Tests</a>
                                                                                                                              </td><td>0</td><td>&nbsp;</td><td align="Center" style="width:40px;"><a onclick="javascript:return confirm('Are you sure you want to delete the file Tests?')" href="javascript:__doPostBack('dgFileList$_ctl5$_ctl0','')">Delete</a></td>
            </tr><tr>
                  <td align="Center" style="width:16px;">
                                                                                                                                    <img id="dgFileList__ctl6_imgIcon" src="images/spacer.gif" alt="" border="0" />
                                                                                                                              </td><td>
                                                                                                                                    <a id="dgFileList__ctl6_hypLocation" href="content/GRAF240//Bitmap1.bmp" target="_blank">Bitmap1.bmp</a>
                                                                                                                              </td><td>1270</td><td>11/28/2004 12:55:25 PM</td><td align="Center" style="width:40px;"><a onclick="javascript:return confirm('Are you sure you want to delete the file Bitmap1.bmp?')" href="javascript:__doPostBack('dgFileList$_ctl6$_ctl0','')">Delete</a></td>
            </tr><tr>
                  <td align="Center" style="width:16px;">
                                                                                                                                    <img id="dgFileList__ctl7_imgIcon" src="images/spacer.gif" alt="" border="0" />
                                                                                                                              </td><td>
                                                                                                                                    <a id="dgFileList__ctl7_hypLocation" href="content/GRAF240//loblawsGC.bmp" target="_blank">loblawsGC.bmp</a>
                                                                                                                              </td><td>457078</td><td>11/28/2004 3:57:19 PM</td><td align="Center" style="width:40px;"><a onclick="javascript:return confirm('Are you sure you want to delete the file loblawsGC.bmp?')" href="javascript:__doPostBack('dgFileList$_ctl7$_ctl0','')">Delete</a></td>
            </tr>
      </table>
</div>
                                                                                                            
                                                                                                            </td>
                                                                                          </tr>
                                                                                    </TBODY></table>
                                                                        </div>
                                                                        <!-- InstanceEndEditable --></td>
                                                            </tr>
                                                      </table>
                                                </td>
                                                <td width="20" background="interface/newside_06.gif"><IMG height="3" src="interface/newside_06.gif" width="20"></td>
                                          </tr>
                                          <tr>
                                                <td colSpan="3"><IMG height="37" src="interface/interface_09.gif" width="778"></td>
                                          </tr>
                                    </table>
                              </td>
                        </tr>
                  </table>
            </form>
            <map name="Map">
                  <area shape="RECT" coords="19,16,167,65" href="index.aspx">
            </map>
            <!-- InstanceEnd -->
      </body>
</HTML>
--------------------------------------------------------------------------------------------
After Clicking Delete:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>
      <HEAD>
            <title>Reach Learning System</title><!-- InstanceBegin template="/Templates/main.dwt" codeOutsideHTMLIsLocked="false" -->
            <!-- InstanceBeginEditable name="doctitle" -->
            <!-- InstanceEndEditable -->
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
            <!-- InstanceBeginEditable name="head" -->
            <!-- InstanceEndEditable -->
            <style type="text/css">BODY {
      BACKGROUND-IMAGE: url(images/bg.gif); MARGIN: 0px
}
</style>
            <LINK href="style.css" type="text/css" rel="stylesheet">
      </HEAD>
      <body>
            <form name="Form1" method="post" action="courseContent.aspx?code=GRAF240" id="Form1" enctype="multipart/form-data">
<input type="hidden" name="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" value="dDwzMTY5Nzg4NzM7dDw7bDxpPDE+Oz47bDx0PHA8bDxlbmN0eXBlOz47bDxtdWx0aXBhcnQvZm9ybS1kYXRhOz4+O2w8aTwzPjtpPDU+O2k8Nz47PjtsPHQ8O2w8aTwwPjtpPDI+O2k8ND47PjtsPHQ8QDA8cDxwPGw8U0Q7PjtsPGw8U3lzdGVtLkRhdGVUaW1lLCBtc2NvcmxpYiwgVmVyc2lvbj0xLjAuNTAwMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODk8MjAwNC0xMS0yOD47Pjs+Pjs+Ozs7Ozs7Ozs7Oz47Oz47dDxwPHA8bDxWaXNpYmxlOz47bDxvPHQ+Oz4+Oz47bDxpPDE+Oz47bDx0PHA8bDxfIUl0ZW1Db3VudDs+O2w8aTwyPjs+PjtsPGk8MD47aTwxPjs+O2w8dDw7bDxpPDE+O2k8Mz47aTw0PjtpPDU+Oz47bDx0PHA8cDxsPFRleHQ7PjtsPEdSQUYyNDA7Pj47Pjs7Pjt0PHA8cDxsPFRleHQ7PjtsPFRyYWluZXI7Pj47Pjs7Pjt0PEA8R1JBRjI0MDtUeXBvZ3JhcGh5IERpZ2l0YWw7Pjs7Pjt0PHA8cDxsPFZpc2libGU7PjtsPG88dD47Pj47PjtsPGk8MD47aTwxPjs+O2w8dDxAPEdSQUYyNDA7R1JBRjI0MDtHUkFGMjQwOz47Oz47dDxwPHA8bDxWaXNpYmxlOz47bDxvPHQ+Oz4+Oz47bDxpPDA+Oz47bDx0PEA8R1JBRjI0MDs+Ozs+Oz4+Oz4+Oz4+O3Q8O2w8aTwxPjtpPD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Pjs7Pjs+Pjs+Pjs+Pjs+YZgxyPKMFMH2f4ur1pniLOPneuM=" />

<script language="javascript" type="text/javascript">
<!--
      function __doPostBack(eventTarget, eventArgument) {
            var theform;
            if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
                  theform = document.Form1;
            }
            else {
                  theform = document.forms["Form1"];
            }
            theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
            theform.__EVENTARGUMENT.value = eventArgument;
            theform.submit();
      }
// -->
</script>

                  <table cellSpacing="0" cellPadding="0" width="100%" border="0">
                        <tr>
                              <td align="center">
                                    <TABLE cellSpacing="0" cellPadding="0" width="778" border="0">
                                          <TR>
                                                <TD rowSpan="2"><IMG height="69" alt="" src="images/headertop_01.gif" width="527" useMap="#Map" border="0"></TD>
                                                <TD colSpan="2"><IMG height="18" alt="" src="images/headertop_02.gif" width="251"></TD>
                                          </TR>
                                          <TR>
                                                <TD vAlign="middle" align="left" width="224" background="images/headertop_03.gif">
                                                      <div align="center">
Welcome Cheri</span>!<br>
<a href="logout.aspx">Click Here to Logout</a></div>
                                                </TD>
                                                <TD><IMG height="51" alt="" src="images/headertop_04.gif" width="27"></TD>
                                          </TR>
                                    </TABLE>
                                    <table cellSpacing="0" cellPadding="0" width="100" border="0">
                                          <tr>
                                                <td class="repeatleft" align="left" width="22" bgColor="#ffffff"><IMG height="5" src="interface/newside_02.gif" width="22"></td>
                                                <td width="736" bgColor="#ffffff"><br> <!-- InstanceBeginEditable name="Navigigation" --> <!-- #BeginLibraryItem "/Templates/navigationTop.lbi" -->
                                                      <table cellSpacing="0" cellPadding="0" width="99%" border="0">
                                                            <tr>
                                                                  <td align="left" width="9"><IMG height="22" src="images/headernav_01.gif" width="9"></td>
                                                                  <td align="left" width="720" background="images/headernav_04.gif"><A href="main.aspx"><IMG height="22" src="images/_btnmyhome.gif" width="72" border="0"></A><A href="courses.aspx"><IMG height="22" src="images/_btnCourses.gif" width="72" border="0"></A><A href="calendar.aspx"><IMG height="22" src="images/_btnCalender.gif" width="72" border="0"></A><A href="tasks.aspx"><IMG height="22" src="images/_btnTasks.gif" width="72" border="0"></A><A href="grades.aspx"><IMG height="22" src="images/_btnGrades.gif" width="72" border="0"></A><A href="options.aspx"><IMG height="22" src="images/_btnOptions.gif" width="72" border="0"></A><A href="admin.aspx"><IMG height="22" src="images/_btnAdmin.gif" width="72" border="0"></A></td>
                                                                  <td align="right" width="7" background="images/headernav_04.gif"><IMG height="22" src="images/headernav_06.gif" width="7"></td>
                                                            </tr>
                                                      </table>
                                                      <!-- #EndLibraryItem --> <!-- InstanceEndEditable -->
                                                      <table cellSpacing="0" cellPadding="0" width="100%" border="0">
                                                            <tr>
                                                                  <td vAlign="top" align="left" width="24%"><br>
                                                                        <table class="leftCopy" cellSpacing="0" cellPadding="3" width="175" border="0">
                                                                              <tr>
                                                                                    <td>
                                                                                          <div align="center"><table id="calMain" cellspacing="0" cellpadding="2" border="0" style="border-width:1px;border-style:solid;width:183px;border-collapse:collapse;">
      <tr><td colspan="7" style="background-color:Silver;"><table cellspacing="0" border="0" style="width:100%;border-collapse:collapse;">
            <tr><td style="width:15%;"><a href="javascript:__doPostBack('SubMenu1$calMain','V1735')" style="color:Black">&lt;</a></td><td align="Center" style="width:70%;">November 2004</td><td align="Right" style="width:15%;"><a href="javascript:__doPostBack('SubMenu1$calMain','V1796')" style="color:Black">&gt;</a></td></tr>
      </table></td></tr><tr><td align="Center">Sun</td><td align="Center">Mon</td><td align="Center">Tue</td><td align="Center">Wed</td><td align="Center">Thu</td><td align="Center">Fri</td><td align="Center">Sat</td></tr><tr><td align="Center" style="width:14%;"></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1766')" style="color:Black">1</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1767')" style="color:Black">2</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1768')" style="color:Black">3</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1769')" style="color:Black">4</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1770')" style="color:Black">5</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1771')" style="color:Black">6</a></td></tr><tr><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1772')" style="color:Black">7</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1773')" style="color:Black">8</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1774')" style="color:Black">9</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1775')" style="color:Black">10</a></td><td align="Center" style="background-color:PaleVioletRed;width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1776')" style="color:Black">11</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1777')" style="color:Black">12</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1778')" style="color:Black">13</a></td></tr><tr><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1779')" style="color:Black">14</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1780')" style="color:Black">15</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1781')" style="color:Black">16</a></td><td align="Center" style="background-color:PaleVioletRed;width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1782')" style="color:Black">17</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1783')" style="color:Black">18</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1784')" style="color:Black">19</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1785')" style="color:Black">20</a></td></tr><tr><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1786')" style="color:Black">21</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1787')" style="color:Black">22</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1788')" style="color:Black">23</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1789')" style="color:Black">24</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1790')" style="color:Black">25</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1791')" style="color:Black">26</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1792')" style="color:Black">27</a></td></tr><tr><td align="Center" style="color:White;background-color:Silver;width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1793')" style="color:White">28</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1794')" style="color:Black">29</a></td><td align="Center" style="width:14%;"><a href="javascript:__doPostBack('SubMenu1$calMain','1795')" style="color:Black">30</a></td><td align="Center" style="width:14%;"></td><td align="Center" style="width:14%;"></td><td align="Center" style="width:14%;"></td><td align="Center" style="width:14%;"></td></tr><tr><td align="Center" style="width:14%;"></td><td align="Center" style="width:14%;"></td><td align="Center" style="width:14%;"></td><td align="Center" style="width:14%;"></td><td align="Center" style="width:14%;"></td><td align="Center" style="width:14%;"></td><td align="Center" style="width:14%;"></td></tr>
</table>
<div id="SubMenu1_panContent">
      
      <DIV class="header">Courses</DIV>
      
                  <div align="left">
                        
                        
                        <a href='courseDetail.aspx?code=GRAF240'>
                              Typography Digital
                        </a>
                        <br />
                  </div>
                  <div id="SubMenu1_rptCourses__ctl0_panSubLinks">
            
                        <div style="text-align: left; margin-left: 10px;">
                              - <a href='courseContent.aspx?code=GRAF240'>Content</a><br />
                              - <a href='grades.aspx?code=GRAF240'>Grades</a><br />
                              - <a href='courseNews.aspx?code=GRAF240'>News</a><br />
                              <div id="SubMenu1_rptCourses__ctl0_panSubLinksTrain">
                  
                              - <a href='classList.aspx?code=GRAF240'>Class List</a><br />
                              
            </div>
                        </div>
                  
      </div>
            
                  <div align="left">
                        
                        
                        <a href='courseDetail.aspx?code=PHOT333'>
                              Camera Basics
                        </a>
                        <br />
                  </div>
                  
            

</div>
<DIV class="header"><img src="images/links.jpg"></DIV>
<table id="SubMenu1_dlLinks" cellspacing="0" align="Left" border="0" style="border-collapse:collapse;">
      <tr>
            <td align="Left">
            <a href='http://www.fanshawec.ca' target="_blank">
                  Academy of Design Homepage
            </a>
      </td>
      </tr><tr>
            <td align="Left">
            <a href='http://webadvisor.fanshawec.ca' target="_blank">
                  Web Advisor
            </a>
      </td>
      </tr><tr>
            <td align="Left">
            <a href='http://www.AODslum.com' target="_blank">
                  AOD Alumni
            </a>
      </td>
      </tr>
</table>
</div>
                                                                                    </td>
                                                                              </tr>
                                                                              <tr>
                                                                                    <td>&nbsp;
                                                                                    </td>
                                                                              </tr>
                                                                        </table>
                                                                  </td>
                                                                  <td vAlign="top" width="76%"><!-- InstanceBeginEditable name="maincontent" -->
                                                                        <div align="center"><br>
                                                                              <table class="maintable" cellSpacing="3" cellPadding="0" width="97%" border="0">
                                                                                    <TBODY>
                                                                                          <tr>
                                                                                                <td align="left" bgColor="#3b465b"><IMG height="13" src="images/_mainHeader.gif" width="296"></td>
                                                                                          </tr>
                                                                                          <tr>
                                                                                                <td align="left">Course Content<BR>
                                                                                                      <div id="panViewTrain">
Click on a link
                        below to download the course content or add a new folder
                        or directory using the form.
                        <TABLE cellSpacing="0" cellPadding="0" width="100%">
                                                                                                                  <TR>
                                                                                                                        <TD>      <input name="fUpload" id="fUpload" type="file" />
                                                                                                                              <BR>
                                                                                                                              <input type="submit" name="btnUpload" value="Upload a File" id="btnUpload" /></TD>
                                                                                                                        <TD vAlign="bottom" align="right">
                                                                                                                              <input name="txtAddFolder" type="text" id="txtAddFolder" />&nbsp;
                                                                                                                              <input type="submit" name="btnAddFolder" value="Add Folder" id="btnAddFolder" /></TD>
                                                                                                                  </TR>
                                                                                                            </TABLE>
                        <HR>
                        Current Directory:
<span id="lblCurDirectory">Root</span>

</div>
                                                                                                            
                                                                                                            </td>
                                                                                          </tr>
                                                                                    </TBODY></table>
                                                                        </div>
                                                                        <!-- InstanceEndEditable --></td>
                                                            </tr>
                                                      </table>
                                                </td>
                                                <td width="20" background="interface/newside_06.gif"><IMG height="3" src="interface/newside_06.gif" width="20"></td>
                                          </tr>
                                          <tr>
                                                <td colSpan="3"><IMG height="37" src="interface/interface_09.gif" width="778"></td>
                                          </tr>
                                    </table>
                              </td>
                        </tr>
                  </table>
            </form>
            <map name="Map">
                  <area shape="RECT" coords="19,16,167,65" href="index.aspx">
            </map>
            <!-- InstanceEnd -->
      </body>
</HTML>
0
ihenryCommented:

Since you're using VS.NET 2003, remove the onDeleteCommand attribute.

      <asp:DataGrid
            id="dgFileList"
            runat="server"
            DataKeyField="FullName"
            Width="100%"
            AutoGenerateColumns="False" >

And in the code behind, on top you see two dropdownlists. Click on the "General" dropdownlist (left one)
and select dgFileList. Then click on the "Declaration" dropdownlist and select "DeleteCommand".  VS.NET will then creates
one event declaration name dgFileList_DeleteCommand. Copy your existing code, comment it out and paste it in the new
event. Then try again run the page.
0
CompmouseAuthor Commented:
It still doesn't even acknowledge that the dgFileList_deleteCommand sub exists. I have no idea why it's doing this, but thanks for trying to help me with this.
0
CompmouseAuthor Commented:
Ok... I'm pretty sure there's something very wrong with my version of .NET, I decided to give up on getting it to acknowledge the deleteCommand sub and have it simply go to a new  page complete the code and the redirect back to the original page and that worked out fine, but now it wont' acknowledge my ItemDataBound sub at all. I feel like I"m fighting a war with this program.
0
ihenryCommented:

One thing seems very obvious...after click the delete button then the datagrid disappears. So my question now is,
are you creating the datagrid programmatically? If the answer is yes, it most probably because you dont re-create
it during postback. Since no datagrid exists, no delete button is rendered and no deletecommand is fired.

To check ASP.NET version use this command

   aspnet_regiis -lv

The outuput should be something like

   1.1.4322.0      Valid (Root)    C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll

But I don't think that because of .NET Framework version.
0
ihenryCommented:

I see you don't create the datagrid programmatically, did you disable the page viewstate?
Please post more code.
0
CompmouseAuthor Commented:
That's because the datagrid doesn't have any data in it afterwards and thus doesn't display by default. I did manage to fix it somewhat,
think that this is just some weird thing that's going on especially since I dropped the idea all together it now doesn't acknowledge
the ItemDataBound sub. And that's when the datagrid is infact showing.
0
ihenryCommented:

Sounds even weird to me. Based on the raw html, I see 6 records in the datagrid. Then after one postback,
all records are removed.. Maybe I understood that wrongly or I missed out something here.
0
CompmouseAuthor Commented:
Well the fact that the records disappear is not a mystery to me though, it's because I have a piece of logic that
basically says if not is postback then get the data, it relies on the subs to make the next call to get the data again.
0
ihenryCommented:

As far as ViewState is enabled, even if you bind data to the datagrid once which is under not postback condition, afterwards
on every postback the datagrid will always show the same content. Unless the underlying data has changed. I don't see the
datagrid has viewstate disabled, maybe you're disabling the viewstate in page level. Or it might be something else that caused
the problem.
0
CompmouseAuthor Commented:
I haven't done anything to the viewstate as far as I know. The datagrid gets it's information from a datatable that I create instead of
from the data in a table. Regardless I have it working the way it needs to work despite how sloppy it is now. Thanks for your help!
And for taking the time to  work this out with me, even if .NET was acting weird.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.