Click here to Skip to main content
15,887,746 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: save page state after post back Pin
Venkatesh Mookkan1-Apr-10 0:54
Venkatesh Mookkan1-Apr-10 0:54 
GeneralRe: save page state after post back Pin
Abdul Rahman Hamidy2-Apr-10 18:10
Abdul Rahman Hamidy2-Apr-10 18:10 
Questionhow to fetch html text into string variable Pin
Amit Spadez31-Mar-10 21:36
professionalAmit Spadez31-Mar-10 21:36 
AnswerRe: how to fetch html text into string variable Pin
Arindam Tewary31-Mar-10 22:02
professionalArindam Tewary31-Mar-10 22:02 
AnswerRe: how to fetch html text into string variable Pin
PSK_31-Mar-10 22:06
PSK_31-Mar-10 22:06 
AnswerRe: how to fetch html text into string variable Pin
MyDevBank31-Mar-10 22:18
MyDevBank31-Mar-10 22:18 
AnswerRe: how to fetch html text into string variable Pin
Mohan H Prajapati5-Apr-10 23:51
Mohan H Prajapati5-Apr-10 23:51 
Question[help]ListView Layout Problem [modified] Pin
calvenyow31-Mar-10 21:30
calvenyow31-Mar-10 21:30 
Hello,

I have a ListView with EditItemTemplate.
The problem is when I edit an Item, the EditItemTemplate showing out,
but the items layout below the EditItemTemplate become weird.
I attach my screenshot and code behind, hope any one can help me.

http://img28.imageshack.us/img28/3550/91358941.jpg[^]

http://img202.imageshack.us/img202/3694/62318841.jpg[^]

            <LayoutTemplate>
                                                      <table border="0" width="100%" style="background-color: #FFFFFF; border-collapse: collapse;
                                                          border-color: #999999; border-style: none; border-width: 1px; font-family: Verdana, Arial, Helvetica, sans-serif;">
                                                          <thead>
                                                              <tr style="background-color: #E4E4E4; color: #FFFFFF;">
                                                                  <td align="left" width="55%">
                                                                      <asp:Label ID="docLabel" runat="server" Font-Size="10" Font-Names="Arial">DOCUMENT</asp:Label>
                                                                  </td>
                                                                  <td align="left" width="30%">
                                                                      <asp:Label ID="Label8" runat="server" Font-Size="10" Font-Names="Arial">LAST UPDATE</asp:Label>
                                                                  </td>
                                                                  <td width="15%">
                                                                  </td>
                                                              </tr>
                                                          </thead>
                                                          <tbody>
                                                              <tr id="itemPlaceholder" runat="server" width="100%" />
                                                          </tbody>
                                                          <tfoot>
                                                              <table width="100%">
                                                                  <tr>
                                                                      <td align="center" width="100%" style="text-align: center; background-color: #E4E4E4;
                                                                          font-family: Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF">
                                                                          <asp:DataPager ID="DataPager1" runat="server">
                                                                              <Fields>
                                                                                  <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowNextPageButton="False"
                                                                                      ShowPreviousPageButton="False" />
                                                                                  <asp:NumericPagerField />
                                                                                  <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" ShowNextPageButton="False"
                                                                                      ShowPreviousPageButton="False" />
                                                                              </Fields>
                                                                          </asp:DataPager>
                                                                      </td>
                                                                  </tr>
                                                              </table>
                                                          </tfoot>
                                                      </table>

                                                  </LayoutTemplate>
                                                  <EditItemTemplate>
                                                      <table width="100%" border="1" cellspacing="0" cellpadding="0" style="border: thin dotted #FF0000">
                                                          <tr>
                                                              <td align="center">
                                                                  <table border="0" cellspacing="0" cellpadding="0">
                                                                      <tr>
                                                                          <br />
                                                                          <td align="right">
                                                                              Name
                                                                          </td>
                                                                          <td>
                                                                              :
                                                                          </td>
                                                                          <td align="left">
                                                                              <asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' Visible="false" />
                                                                              <asp:TextBox ID="namebox" runat="server" Text='<%# Bind("Name") %>'></asp:TextBox>
                                                                          </td>
                                                                      </tr>
                                                                      <tr>
                                                                          <td align="right">
                                                                              Permission
                                                                          </td>
                                                                          <td>
                                                                              :
                                                                          </td>
                                                                          <td>
                                                                              <br />
                                                                              <table border="0" cellpadding="0" cellspacing="0" style="width: 68%">
                                                                                  <tr>
                                                                                      <td align="center">
                                                                                          Available Group
                                                                                      </td>
                                                                                      <td>
                                                                                          &nbsp;
                                                                                      </td>
                                                                                      <td width="47%" align="center">
                                                                                          Selected Group
                                                                                      </td>
                                                                                  </tr>
                                                                                  <tr>
                                                                                      <td>
                                                                                          <asp:ListBox ID="GroupListBox" runat="server" Width="125px" DataSourceID="SqlDataSource5"
                                                                                              DataTextField="Name" DataValueField="ID" Height="160px"></asp:ListBox>
                                                                                      </td>
                                                                                      <td>
                                                                                          <asp:Button ID="selectAllBtn" runat="server" Text="&gt;&gt;" CommandName="SelectAll" />
                                                                                          <br />
                                                                                          <asp:Button ID="selectBtn" runat="server" Text=" &gt; " CommandName="SelectOne" />
                                                                                          <br />
                                                                                          <br />
                                                                                          <asp:Button ID="deSelectAllBtn" runat="server" Text="&lt;&lt;" CommandName="DeselectAll" />
                                                                                          <br />
                                                                                          <asp:Button ID="deselectBtn" runat="server" Text=" &lt; " CommandName="DeselectOne" />
                                                                                      </td>
                                                                                      <td>
                                                                                          <asp:ListBox ID="selectedGroupListBox" runat="server" Width="125px" DataSourceID="SqlDataSource6"
                                                                                              DataTextField="Name" DataValueField="ID" Height="160px"></asp:ListBox>
                                                                                      </td>
                                                                                  </tr>
                                                                              </table>
                                                                          </td>
                                                                      </tr>
                                                                      <tr>
                                                                          <td align="right">
                                                                              PDF File
                                                                          </td>
                                                                          <td>
                                                                              :
                                                                          </td>
                                                                          <td align="left">
                                                                              <asp:LinkButton ID="pdfFile" runat="server" Text='<%# Bind("pdfPath") %>' />
                                                                              <cc1:AsyncFileUpload ID="pdfFileUpload1" runat="server"/>
                                                                          </td>
                                                                      </tr>
                                                                      <tr>
                                                                          <td align="right">
                                                                              Source File
                                                                          </td>
                                                                          <td>
                                                                              :
                                                                          </td>
                                                                          <td align="left">
                                                                              <asp:LinkButton ID="sourceFile" runat="server" Text='<%# Bind("docPath") %>' />
                                                                              <cc1:AsyncFileUpload ID="sourceFileUpload1" runat="server" />
                                                                          </td>
                                                                      </tr>
                                                                  </table>
                                                              </td>
                                                          </tr>
                                                          <tr>
                                                              <td align="center">
                                                                  <asp:Button ID="updateBtn" runat="server" Text="Update" CommandName="Updated" />
                                                                  <asp:Button ID="CancelBtn" runat="server" Text="Cancel" CommandName="Cancel" />
                                                              </td>
                                                          </tr>
                                                      </table>
                                                  </EditItemTemplate>
<ItemTemplate>
                                                          <td runat="server" style="">
                                                              <table cellpadding="0" cellspacing="0" class="style14">
                                                                  <tr>
                                                                      <td>
                                                                          <img src="images/arrow.gif" style="width: 18px; height: 18px" />
                                                                      </td>
                                                                      <td>
                                                                          <asp:Label ID="subCatID" runat="server" Text='<%# Eval("ID") %>' Visible="False"></asp:Label>
                                                                          <asp:LinkButton ID="LinkButton3" runat="server" Font-Names="Arial" Font-Size="10pt"
                                                                              Font-Underline="False" ForeColor="Black" Text='<%# Eval("Name") %>' CommandName="Click"></asp:LinkButton>
                                                                      </td>
                                                                      <td width="2px">
                                                                          &nbsp;
                                                                      </td>
                                                                      <td align="right">
                                                                          <asp:ImageButton ID="editSubCatBtn" runat="server" ImageUrl="~/images/pencil_16.png"
                                                                              title="Edit" CommandName="Edit" Visible='<%# CBOOL(Eval("subCatModifyable")) %>' />
                                                                      </td>
                                                                      <td align="right">
                                                                          <asp:ImageButton ID="delSubCatBtn" runat="server" CommandName="Delete" ImageUrl="~/images/delete_16.png"
                                                                              title="Delete" Visible='<%# CBOOL(Eval("subCatModifyable")) %>' />
                                                                      </td>
                                                                  </tr>
                                                              </table>
                                                          </td>
                                                      </ItemTemplate>

C@lven Yow
modified on Thursday, April 1, 2010 3:47 AM

QuestionThe Client does not Download the Lastest Upload File Pin
Xiaoming Qian31-Mar-10 20:33
Xiaoming Qian31-Mar-10 20:33 
AnswerRe: The Client does not Download the Lastest Upload File Pin
Venkatesh Mookkan31-Mar-10 20:42
Venkatesh Mookkan31-Mar-10 20:42 
AnswerRe: The Client does not Download the Lastest Upload File [modified] Pin
Arindam Tewary31-Mar-10 20:44
professionalArindam Tewary31-Mar-10 20:44 
AnswerRe: The Client does not Download the Lastest Upload File Pin
PSK_31-Mar-10 22:11
PSK_31-Mar-10 22:11 
QuestionASP.NET Control in MVC Pin
M. K. BASHER31-Mar-10 19:30
M. K. BASHER31-Mar-10 19:30 
AnswerRe: ASP.NET Control in MVC Pin
Sandeep Mewara31-Mar-10 19:40
mveSandeep Mewara31-Mar-10 19:40 
QuestionWeb Service Not Working [modified] Pin
BlitzPackage31-Mar-10 16:42
BlitzPackage31-Mar-10 16:42 
AnswerRe: Web Service Not Working Pin
Sandeep Mewara31-Mar-10 19:43
mveSandeep Mewara31-Mar-10 19:43 
GeneralRe: Web Service Not Working Pin
BlitzPackage1-Apr-10 2:00
BlitzPackage1-Apr-10 2:00 
Questioncreating csv file in web serivce Pin
scorpio2231-Mar-10 10:15
scorpio2231-Mar-10 10:15 
AnswerRe: creating csv file in web serivce Pin
Not Active31-Mar-10 11:14
mentorNot Active31-Mar-10 11:14 
GeneralRe: creating csv file in web serivce Pin
scorpio2231-Mar-10 16:13
scorpio2231-Mar-10 16:13 
AnswerRe: creating csv file in web serivce Pin
Venkatesh Mookkan31-Mar-10 16:25
Venkatesh Mookkan31-Mar-10 16:25 
GeneralRe: creating csv file in web serivce Pin
scorpio2231-Mar-10 16:27
scorpio2231-Mar-10 16:27 
GeneralRe: creating csv file in web serivce Pin
scorpio2231-Mar-10 16:35
scorpio2231-Mar-10 16:35 
GeneralRe: creating csv file in web serivce Pin
Not Active31-Mar-10 16:31
mentorNot Active31-Mar-10 16:31 
Questionbutton field in gridview Pin
sunnu 231-Mar-10 7:13
sunnu 231-Mar-10 7:13 

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.