Click here to Skip to main content
16,016,759 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: error in reading file Pin
meghamaharshi24-Feb-09 22:38
meghamaharshi24-Feb-09 22:38 
QuestionImage Saving into SQL Database Pin
Robymon24-Feb-09 21:23
Robymon24-Feb-09 21:23 
AnswerRe: Image Saving into SQL Database Pin
N a v a n e e t h24-Feb-09 21:28
N a v a n e e t h24-Feb-09 21:28 
GeneralRe: Image Saving into SQL Database Pin
Robymon24-Feb-09 22:03
Robymon24-Feb-09 22:03 
AnswerRe: Image Saving into SQL Database Pin
N a v a n e e t h24-Feb-09 22:04
N a v a n e e t h24-Feb-09 22:04 
QuestionAdd control in UpdatePanel Pin
mehrdadc4824-Feb-09 20:36
mehrdadc4824-Feb-09 20:36 
AnswerRe: Add control in UpdatePanel Pin
sarang_k24-Feb-09 22:47
sarang_k24-Feb-09 22:47 
AnswerRe: Add control in UpdatePanel Pin
Mark Graham25-Feb-09 1:01
Mark Graham25-Feb-09 1:01 
So, am I right in saying that your button is doing a postback and your page is reloading(no ajax)? If this is the case then I think it's the Triggers section of the UpdatePanel that you're missing. See my sample code below (you can ignore the content, it's just a report I knocked up). I've made bold and italic the Triggers section I think you could be missing. Also, the code where your dynamic control will be added will have to go in the ContentTemplate section of your UpdatePanel.

My apologies if I've missed the point and you're already doing this.

    <asp:Button ID="btnRun_TopHopFaults" runat="server" Text="Run Report"
        OnClick="btnRun_TopHopFaults_Click" />
    <asp:UpdatePanel id="pnlTopHopFaultsResults" runat="server" UpdateMode="Conditional">        
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnRun_TopHopFaults" />
        </Triggers>
        <ContentTemplate>                        
            <asp:Repeater ID="repTopHopFaults" runat="server">
                <HeaderTemplate>
                    <table>
                        <tr>
                            <th></th>
                            <th>Guidance Ref</th>
                            <th>Guidance</th>
                            <th>Quantity</th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                        <tr>
                            <td><%#DataBinder.Eval(Container.DataItem, "Position") %></td>
                            <td><a href='<%#string.Concat("javascript:showHopDrillDown(", DataBinder.Eval(Container.DataItem, "ID"), ")")%>'>
                                <%#DataBinder.Eval(Container.DataItem, "FieldRef") %>
                                </a>                                                    
                            </td>
                            <td><%#DataBinder.Eval(Container.DataItem, "Field") %></td>
                            <td><%#DataBinder.Eval(Container.DataItem, "FaultCount") %></td>
                        </tr>                            
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
        </ContentTemplate>
    </asp:UpdatePanel>



Let me know how you get on...

Mark Graham (MCP) // The Doodler
blogging about C#, Asp.Net, and Design Patterns at: csCoffee[^]
and contributing at dotNet Notepad[^]

Questionstring Encryption/Decryption using AES Algorithm in asp.net Pin
mani.thirumalai24-Feb-09 19:46
mani.thirumalai24-Feb-09 19:46 
AnswerRe: string Encryption/Decryption using AES Algorithm in asp.net Pin
Christian Graus24-Feb-09 20:15
protectorChristian Graus24-Feb-09 20:15 
GeneralRe: string Encryption/Decryption using AES Algorithm in asp.net Pin
mani.thirumalai24-Feb-09 20:40
mani.thirumalai24-Feb-09 20:40 
GeneralRe: string Encryption/Decryption using AES Algorithm in asp.net Pin
N a v a n e e t h24-Feb-09 21:18
N a v a n e e t h24-Feb-09 21:18 
GeneralRe: string Encryption/Decryption using AES Algorithm in asp.net Pin
mani.thirumalai24-Feb-09 22:17
mani.thirumalai24-Feb-09 22:17 
QuestionImport Excel Option Pin
Guvera24-Feb-09 19:34
Guvera24-Feb-09 19:34 
AnswerRe: Import Excel Option Pin
Christian Graus24-Feb-09 19:39
protectorChristian Graus24-Feb-09 19:39 
AnswerRe: Import Excel Option Pin
Jörgen Andersson24-Feb-09 20:38
professionalJörgen Andersson24-Feb-09 20:38 
AnswerRe: Import Excel Option Pin
Abhishek Sur24-Feb-09 21:22
professionalAbhishek Sur24-Feb-09 21:22 
GeneralRe: Import Excel Option Pin
Jörgen Andersson24-Feb-09 21:55
professionalJörgen Andersson24-Feb-09 21:55 
GeneralRe: Import Excel Option Pin
Greg Chelstowski24-Feb-09 22:28
Greg Chelstowski24-Feb-09 22:28 
GeneralRe: Import Excel Option Pin
Jörgen Andersson24-Feb-09 23:46
professionalJörgen Andersson24-Feb-09 23:46 
GeneralRe: Import Excel Option Pin
Greg Chelstowski25-Feb-09 1:06
Greg Chelstowski25-Feb-09 1:06 
GeneralRe: Import Excel Option Pin
Jörgen Andersson25-Feb-09 1:10
professionalJörgen Andersson25-Feb-09 1:10 
GeneralRe: Import Excel Option Pin
Abhishek Sur27-Feb-09 4:15
professionalAbhishek Sur27-Feb-09 4:15 
GeneralRe: Import Excel Option Pin
Jörgen Andersson27-Feb-09 4:19
professionalJörgen Andersson27-Feb-09 4:19 
GeneralRe: Import Excel Option Pin
Jörgen Andersson27-Feb-09 4:31
professionalJörgen Andersson27-Feb-09 4:31 

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.