Click here to Skip to main content
15,891,253 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionrobots for fetche all link site Pin
apadana_198910-Jun-14 3:21
apadana_198910-Jun-14 3:21 
QuestionRe: robots for fetche all link site Pin
ZurdoDev10-Jun-14 3:42
professionalZurdoDev10-Jun-14 3:42 
AnswerRe: robots for fetche all link site Pin
Sibeesh KV29-Sep-14 1:56
professionalSibeesh KV29-Sep-14 1:56 
QuestionGroup box in asp.net and styling web forms Pin
akubue bona9-Jun-14 7:34
akubue bona9-Jun-14 7:34 
AnswerRe: Group box in asp.net and styling web forms Pin
ZurdoDev10-Jun-14 3:43
professionalZurdoDev10-Jun-14 3:43 
QuestionAutomatically add a numeric value to the SQL Server Database after the expiration of a certain date( Date will vary ) Pin
hilbiazhar9-Jun-14 5:57
hilbiazhar9-Jun-14 5:57 
AnswerRe: Automatically add a numeric value to the SQL Server Database after the expiration of a certain date( Date will vary ) Pin
Richard Deeming9-Jun-14 6:10
mveRichard Deeming9-Jun-14 6:10 
Question[ASP.NET C#] Postback and updatepanel issues. Pin
Member 79124618-Jun-14 11:11
Member 79124618-Jun-14 11:11 
I wrote a simple ASP/C# website using dynamic creation of controls, but when I updated VS2013, my project started having problem with displaying controls.

The problem is as follows:
http://i.imgur.com/KAwTy3e.jpg[^]


-On start, the page looks ok, but when I press any button (postback), the table on may page disappears, but the controls in cells are staying, but not in place because table disappeared, but one under the another. So the page breaks in half in my case.

It looks like this:



My Code:
C#
public partial class _Default : System.Web.UI.Page
    {
       
//-------------------------------------------------------------------------MAIN TABLE
        Table TblMainTop = new Table();

        //TblMainTop // Contains
        TableRow TblRow_Top = new TableRow(); //Logo and login
        //MainTableCells in TblRow_Top
        TableCell TblcT_Logo = new TableCell();
        TableCell TblcT_Status = new TableCell();

        Table TblMainCenter = new Table();
        //TblMainCenter // Contains
        TableRow TblRow_Center = new TableRow(); //Navigation and source
        //MainTableCells in TblRow_Center
        TableCell TblcC_Control = new TableCell();
        TableCell TblcC_Source = new TableCell();
            
//-----------------------------------------------------------------------
        PlaceHolder PHolder = new PlaceHolder();

        Control LOGO;
        Control STATUS;
        Control CONTROL;
        private void Create_MainTable()
        {
            
            LOGO = LoadControl("~/LOGO/Logo.ascx");
            STATUS = LoadControl("~/STATUS/Login.ascx");
            CONTROL = LoadControl("~/CONTROL/Navigation.ascx");

            TblcT_Logo.Controls.Add(LOGO);
            TblcT_Status.Controls.Add(STATUS);
            TblcC_Control.Controls.Add(CONTROL);

            TblRow_Top.Cells.Add(TblcT_Logo);
            TblRow_Top.Cells.Add(TblcT_Status);
            TblRow_Center.Cells.Add(TblcC_Control);

            TblMainTop.Rows.Add(TblRow_Top);
            TblMainTop.Rows.Add(TblRow_Center);
            TblMainTop.BorderWidth = 5;

            PHolder.Controls.Add(TblMainTop);
            PHolder.ID = "Test";

                
            UpdPanel_Main.ContentTemplateContainer.Controls.Add(PHolder);
   
        }


       


        protected void Page_Load(object sender, EventArgs e)
        {
            this.Create_MainTable();
        }
    }


That’s how it looks in browser before postback:
HTML
<div id="UpdPanel_Main">
    <table id="tojeID" border="0"     
style="border-width:5px;border-style:solid;">

<!--correct content in here-->

    </table>
</div>




That’s how it looks in browser after postback:
HTML
<div id="UpdPanel_Main">
        <style type="text/css"></style>
        <div id="ctl03_PnlMainLogo"     
style="height:221px;width:1171px;"></div>
        <style type="text/css"></style>
        <div id="ctl04_PnlMainLoginState"     
style="height:221px;width:529px;"></div>
        <style type="text/css"></style>
        <div id="ctl05_PnlMainNavigation"     
style="width:301px;"></div>
</div>





Here you can download light version of my project:
http://ge.tt/6xSPKBj1/v/0

Can someone gave me any advice ? I don’t know what is going on.
SuggestionRe: [ASP.NET C#] Postback and updatepanel issues. Pin
Dusara Maulik9-Jun-14 2:24
Dusara Maulik9-Jun-14 2:24 
GeneralRe: [ASP.NET C#] Postback and updatepanel issues. Pin
Member 79124619-Jun-14 2:53
Member 79124619-Jun-14 2:53 
GeneralRe: [ASP.NET C#] Postback and updatepanel issues. Pin
jkirkerx11-Jun-14 13:24
professionaljkirkerx11-Jun-14 13:24 
GeneralRe: [ASP.NET C#] Postback and updatepanel issues. Pin
Member 791246114-Jun-14 4:21
Member 791246114-Jun-14 4:21 
GeneralRe: [ASP.NET C#] Postback and updatepanel issues. Pin
jkirkerx14-Jun-14 8:33
professionaljkirkerx14-Jun-14 8:33 
QuestionSession for Listbox Pin
Dalina Cheriyan6-Jun-14 3:11
Dalina Cheriyan6-Jun-14 3:11 
AnswerRe: Session for Listbox Pin
ZurdoDev6-Jun-14 10:29
professionalZurdoDev6-Jun-14 10:29 
GeneralHow to increase .net application performance Pin
venumadhav.narla7776-Jun-14 0:39
venumadhav.narla7776-Jun-14 0:39 
GeneralRe: How to increase .net application performance Pin
Richard Deeming6-Jun-14 1:01
mveRichard Deeming6-Jun-14 1:01 
AnswerRe: How to increase .net application performance Pin
thatraja6-Jun-14 9:58
professionalthatraja6-Jun-14 9:58 
Question'Submit' button related errors Pin
Member 87616675-Jun-14 14:26
Member 87616675-Jun-14 14:26 
AnswerRe: 'Submit' button related errors Pin
Richard Deeming6-Jun-14 0:59
mveRichard Deeming6-Jun-14 0:59 
GeneralRe: 'Submit' button related errors Pin
Member 87616676-Jun-14 6:02
Member 87616676-Jun-14 6:02 
GeneralRe: 'Submit' button related errors Pin
Richard Deeming6-Jun-14 7:33
mveRichard Deeming6-Jun-14 7:33 
GeneralRe: 'Submit' button related errors Pin
Member 87616676-Jun-14 7:43
Member 87616676-Jun-14 7:43 
QuestionBeginner: using update_demo.asp - Datatype Mismatch Error Pin
Istteffanny Isloure Araujo4-Jun-14 22:49
Istteffanny Isloure Araujo4-Jun-14 22:49 
AnswerRe: Beginner: using update_demo.asp - Datatype Mismatch Error Pin
thatraja4-Jun-14 23:52
professionalthatraja4-Jun-14 23:52 

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.