Click here to Skip to main content
15,906,947 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: SQL database in a .NET asp environment Pin
i.j.russell18-Aug-06 10:22
i.j.russell18-Aug-06 10:22 
QuestionASP.NET 2.0 Webservice call from ASP Pin
seee sharp18-Aug-06 8:04
seee sharp18-Aug-06 8:04 
QuestionHow to insert data into database from data set or datatable Pin
micydon18-Aug-06 5:49
micydon18-Aug-06 5:49 
AnswerRe: How to insert data into database from data set or datatable Pin
leckey18-Aug-06 6:19
leckey18-Aug-06 6:19 
AnswerRe: How to insert data into database from data set or datatable Pin
Not Active18-Aug-06 7:44
mentorNot Active18-Aug-06 7:44 
QuestionIs it possible to "Enable = false" on all a pages ASP.NET controls with a single command or loop? Pin
Red_Wizard_Shot_The_Food18-Aug-06 5:37
Red_Wizard_Shot_The_Food18-Aug-06 5:37 
AnswerRe: Is it possible to "Enable = false" on all a pages ASP.NET controls with a single command or loop? Pin
Colin Angus Mackay18-Aug-06 5:50
Colin Angus Mackay18-Aug-06 5:50 
AnswerRe: Is it possible to "Enable = false" on all a pages ASP.NET controls with a single command or loop? Pin
Mike Ellison18-Aug-06 7:19
Mike Ellison18-Aug-06 7:19 
Colin's suggestion is a good one. I'd add another - you could put all your controls inside a Panel object, then set the Panel's Enabled property to true or false. Something like this:
<%@ Page Language="C#" %>

<script runat="server">
  
  void CheckboxChanged(object o, EventArgs e)
  {
    panel2.Enabled = Checkbox1.Checked;
  }
  
</script>

<html>
  <head>
    <title></title>
  </head>
  
  <body>
    <form runat="server">
    
        <asp:CheckBox id="Checkbox1" runat="server"
                      AutoPostBack="true"
                      Text="Enable the panel"
                      OnCheckedChanged="CheckboxChanged"
                      />
        <br /><br />                      
  
        <asp:Panel id="panel2" runat="server" enabled="false"
                   Width="400" BackColor="#EFEFEF"
                   Style="padding: 4px;"
                   BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1">            
            <asp:TextBox runat="server" text="some textbox" />
            <asp:DropDownList runat="server" >
                <asp:ListItem text="Item1" />
                <asp:ListItem text="Item2" />
                <asp:ListItem text="Item3" />
            </asp:DropDownList>
            <asp:Button runat="server" text="some button" /><br />
        </asp:Panel>               

    </form>
  </body>
  
</html>

QuestionGridView visibility issue Pin
Vipul Mehta18-Aug-06 5:11
Vipul Mehta18-Aug-06 5:11 
AnswerRe: GridView visibility issue Pin
Not Active18-Aug-06 5:49
mentorNot Active18-Aug-06 5:49 
QuestionGridView event fired twice Pin
Talal Sultan18-Aug-06 4:42
Talal Sultan18-Aug-06 4:42 
AnswerRe: GridView event fired twice Pin
minhpc_bk19-Aug-06 4:02
minhpc_bk19-Aug-06 4:02 
GeneralRe: GridView event fired twice Pin
Talal Sultan20-Aug-06 20:15
Talal Sultan20-Aug-06 20:15 
GeneralRe: GridView event fired twice Pin
Talal Sultan20-Aug-06 20:59
Talal Sultan20-Aug-06 20:59 
QuestionProblem using PreviousPage Property Pin
Jay_se18-Aug-06 3:43
Jay_se18-Aug-06 3:43 
AnswerRe: Problem using PreviousPage Property Pin
minhpc_bk18-Aug-06 12:27
minhpc_bk18-Aug-06 12:27 
GeneralRe: Problem using PreviousPage Property [modified] Pin
Jay_se18-Aug-06 18:05
Jay_se18-Aug-06 18:05 
Questiondatagrid binding with database table rows as columns Pin
gbabu1718-Aug-06 3:05
gbabu1718-Aug-06 3:05 
AnswerRe: datagrid binding with database table rows as columns Pin
minhpc_bk18-Aug-06 12:28
minhpc_bk18-Aug-06 12:28 
Questiondropdownlist value from dataset is displayed incorrectly Pin
digsy_18-Aug-06 2:59
digsy_18-Aug-06 2:59 
AnswerRe: dropdownlist value from dataset is displayed incorrectly Pin
Naveed Kamboh18-Aug-06 3:07
Naveed Kamboh18-Aug-06 3:07 
GeneralRe: dropdownlist value from dataset is displayed incorrectly Pin
digsy_18-Aug-06 5:25
digsy_18-Aug-06 5:25 
AnswerRe: dropdownlist value from dataset is displayed incorrectly Pin
postmaster@programmingknowledge.com18-Aug-06 3:18
postmaster@programmingknowledge.com18-Aug-06 3:18 
QuestionAsp.net + Hiding Tree View nodes ? Pin
Naveed Kamboh18-Aug-06 2:58
Naveed Kamboh18-Aug-06 2:58 
AnswerRe: Asp.net + Hiding Tree View nodes ? Pin
Ryomin18-Aug-06 7:30
professionalRyomin18-Aug-06 7:30 

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.