Click here to Skip to main content
15,889,565 members
Home / Discussions / C#
   

C#

 
AnswerRe: Prevent my application from End Process [modified] Pin
Blikkies27-Jul-09 21:21
professionalBlikkies27-Jul-09 21:21 
AnswerRe: Prevent my application from End Process PinPopular
Christian Graus27-Jul-09 21:44
protectorChristian Graus27-Jul-09 21:44 
Answerjust like yesterday... Pin
J4amieC27-Jul-09 23:29
J4amieC27-Jul-09 23:29 
GeneralRe: just like yesterday... Pin
Christian Graus27-Jul-09 23:59
protectorChristian Graus27-Jul-09 23:59 
GeneralRe: just like yesterday... Pin
DoctorMick28-Jul-09 0:41
DoctorMick28-Jul-09 0:41 
AnswerRe: Prevent my application from End Process Pin
Ian Shlasko28-Jul-09 2:52
Ian Shlasko28-Jul-09 2:52 
AnswerRe: Prevent my application from End Process Pin
PIEBALDconsult28-Jul-09 5:48
mvePIEBALDconsult28-Jul-09 5:48 
QuestionProblem with add linkbutton to a footer of a gridview runtime!!! Pin
Nafiseh Salmani27-Jul-09 20:59
Nafiseh Salmani27-Jul-09 20:59 
I use the following code to add linkbutton to footer of a grideview, but it cause error sometimes!!!!!

In my computer as local server it works, but another users see the error.

LinkButton lbtn = new LinkButton();
lbtn.Text = "   |<   ";
Panel pnl = GridView1.FooterRow.FindControl("pnlFooter") as Panel ;
lbtn.CommandArgument = (pageindex).ToString();
lbtn.Command += new CommandEventHandler(lbtn_Command);
pnl.Controls.Add(lbtn);



the error accurs at line

Panel pnl = GridView1.FooterRow.FindControl("pnlFooter") as Panel ;


what could I do to solve it?!!!! D'Oh! | :doh:
any help would be useful!!

HTML For footer gridview:

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AllowPaging="False" GridLines="None" ShowHeader="False" onpageindexchanged="GridView1_PageIndexChanged" ShowFooter="True" FooterStyle-Font-Bold="True">
                     <Columns>
                         <asp:TemplateField>
                         <ItemTemplate>
                         <table style="width:100%">
                         <tr>
                         <td>
                         
                        <!-- <asp:LinkButton Text='<%# Eval("Title")  %>' ID="libtnGRV" CommandArgument='<%# Eval("URLProduct") +"&Companyurl="+ Eval("URLCompany")%>' runat="server" oncommand="libtnGRVcommand" Font-Bold="True"></asp:LinkButton>-->
                         <!--<a href='<%# Eval("Title")  %>' style="text-decoration: none; font-weight: bold" runat="server"><%# Eval("Title")  %></a>-->
                         <asp:HyperLink ID="HyperLink1" runat="server" 
                                 NavigateUrl='<%# "ShowProductDetails.aspx?ARG="+(Eval("URLProduct") +"&Companyurl="+ Eval("URLCompany")).Replace("./?", "http://www.sme.ir/&") %>' 
                                 Text='<%# Eval("Title") %>' Font-Bold="True"></asp:HyperLink>
                         </td>
                         </tr>
                         <tr>
                         <td>
                         <label runat="server" visible="false"><%# Eval("Price")%></label>
                             
                         </td>
                         </tr>
                         <tr><td>
                     <!--    <a href='<%# Eval("URLCompany") %>' runat="server"> <%#  Eval("CompanyName")%></a> -->
                     <asp:LinkButton ID="liCompany" Text='<%#  Eval("CompanyName")%>' CommandArgument='<%# Eval("URLProduct") +"&Companyurl="+ Eval("URLCompany") %>' OnCommand="libtnGRVcommand" runat="server"  ></asp:LinkButton>
                          <%#Eval("Location") %>
                         
                         </td></tr>
                         <tr>
                         <td>
                         <label id="Label1" runat="server" ><%# Eval("RESOURCE") %></label>
                             <br />
                             <br />
                         </td></tr>
                             
                         </table>
                         </ItemTemplate>
                             <FooterTemplate>
                                 <asp:Panel ID="pnlFooter" runat="server">
                                 </asp:Panel>
                             </FooterTemplate>
                         </asp:TemplateField>
                     </Columns>
                 </asp:GridView>

Questionhow do i convert cmd.executenonscalar to int Pin
Vivek Vijayan27-Jul-09 20:52
Vivek Vijayan27-Jul-09 20:52 
AnswerRe: how do i convert cmd.executenonscalar to int Pin
Christian Graus27-Jul-09 20:59
protectorChristian Graus27-Jul-09 20:59 
AnswerRe: how do i convert cmd.executenonscalar to int Pin
Pete O'Hanlon27-Jul-09 22:51
mvePete O'Hanlon27-Jul-09 22:51 
AnswerRe: how do i convert cmd.executenonscalar to int Pin
PIEBALDconsult28-Jul-09 5:56
mvePIEBALDconsult28-Jul-09 5:56 
AnswerRe: how do i convert cmd.executenonscalar to int Pin
Robin_Roy28-Jul-09 23:57
Robin_Roy28-Jul-09 23:57 
Questionwww.dofactory.com way of doing things Pin
Brendan Vogt27-Jul-09 20:50
Brendan Vogt27-Jul-09 20:50 
AnswerRe: www.dofactory.com way of doing things Pin
DoctorMick28-Jul-09 0:47
DoctorMick28-Jul-09 0:47 
QuestionRe: www.dofactory.com way of doing things Pin
Brendan Vogt28-Jul-09 1:08
Brendan Vogt28-Jul-09 1:08 
AnswerRe: www.dofactory.com way of doing things Pin
Pete O'Hanlon28-Jul-09 2:20
mvePete O'Hanlon28-Jul-09 2:20 
GeneralRe: www.dofactory.com way of doing things Pin
Brendan Vogt28-Jul-09 3:47
Brendan Vogt28-Jul-09 3:47 
GeneralRe: www.dofactory.com way of doing things Pin
Pete O'Hanlon28-Jul-09 4:47
mvePete O'Hanlon28-Jul-09 4:47 
AnswerRe: www.dofactory.com way of doing things Pin
BillWoodruff28-Jul-09 2:43
professionalBillWoodruff28-Jul-09 2:43 
GeneralRe: www.dofactory.com way of doing things Pin
Brendan Vogt28-Jul-09 3:42
Brendan Vogt28-Jul-09 3:42 
QuestionSoftware Testing Pin
CrimeanTurtle200827-Jul-09 20:48
CrimeanTurtle200827-Jul-09 20:48 
AnswerRe: Software Testing Pin
Luc Pattyn27-Jul-09 22:40
sitebuilderLuc Pattyn27-Jul-09 22:40 
AnswerRe: Software Testing Pin
Nagy Vilmos27-Jul-09 22:54
professionalNagy Vilmos27-Jul-09 22:54 
Questiondata from excel file Pin
Member 59031027-Jul-09 20:36
Member 59031027-Jul-09 20:36 

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.