ajaxtabcontainer with button postback problem

Posted by yousof on Stack Overflow See other posts from Stack Overflow or by yousof
Published on 2011-01-01T06:33:39Z Indexed on 2011/01/01 6:54 UTC
Read the original article Hit count: 282

I have a dropdownlist in my web page and two command buttons and a tabcontainer. The tabcontainer does not appear after the load of page according to my code.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load     
    If Not IsPostBack Then           
        TabContainer1.Visible = False          
        If CtvAct.GetRecords("Fill_RequestTypeTb") = True Then             
            ReqTypeCmbo.DataSource = CtvAct.MainDataset.Tables("tbOLRequestType").DefaultView             
            ReqTypeCmbo.DataTextField = "RequestTypeName"             
            ReqTypeCmbo.DataValueField = "RequestTypeId"             
            ReqTypeCmbo.DataBind()             
            Dim itm As New ListItem             
            itm.Text = "-- ??? ??? ????? --"             
            itm.Value = "-1"             
            itm.Selected = True             
            ReqTypeCmbo.Items.Insert(0, itm)             
            ReqTypeCmbo.SelectedIndex = 0         
        End If     
    End If 
End Sub   
Protected Sub PrntCmd_Click(ByVal sender As Object, ByVal e As EventArgs) Handles PrntCmd.Click     
    TextBox6.Text = "gggg" 
End Sub

If I press any button after page load the button work very selecting any item from dropdownlist make the tabcontainer appear but after the tabcontainer appear, the buttons does not work (postback) how can I solve these problems

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about vb.net