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

ASP.NET

 
GeneralRe: error in coding .... plz solve it Pin
nagu4u30-Mar-09 18:25
nagu4u30-Mar-09 18:25 
GeneralRe: error in coding .... plz solve it Pin
Christian Graus30-Mar-09 18:45
protectorChristian Graus30-Mar-09 18:45 
GeneralRe: error in coding .... plz solve it Pin
Eytukan30-Mar-09 19:01
Eytukan30-Mar-09 19:01 
AnswerRe: error in coding .... plz solve it Pin
Christian Graus30-Mar-09 18:25
protectorChristian Graus30-Mar-09 18:25 
QuestionSQL CE | SSCE | 3.5 SP1 | Unable to find the requested .Net Framework Data Provider. It may not be installed. Pin
Glen Harvy30-Mar-09 16:03
Glen Harvy30-Mar-09 16:03 
Question2 questions on an asp.net application with multiple subdomains? Pin
Goalie3530-Mar-09 13:29
Goalie3530-Mar-09 13:29 
AnswerRe: 2 questions on an asp.net application with multiple subdomains? Pin
Colin Angus Mackay30-Mar-09 13:35
Colin Angus Mackay30-Mar-09 13:35 
QuestionHiding <div> OnSelectedIndexChanged Pin
asipo30-Mar-09 12:27
asipo30-Mar-09 12:27 
OK, my problem is...

I dont know how to hide a <div> when a dropdownlist change the index
I thought I can use javascript to solve this problem, but somehow... i dont know how to use it.

Here the code
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>TESTING</title></head>

<script runat="server" language="C#">

    void Page_Load(Object s, EventArgs e){        
    }

    protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e){     
    }    
</script>

<body>

    <div id="div1"></div>
    <div id="div2"></div>

    <form id="Form1" action="TEST.aspx" runat="server">
        <asp:dropdownlist id="DropDownList1" runat="server" onselectedindexchanged="DropDownList1_SelectedIndexChanged" >
            <asp:listitem>Choose div to be hide
            <asp:listitem>Hide div1</asp:ListItem>
            <asp:listitem>Hide div2</asp:ListItem>
        </asp:DropDownList>
    </form>
</body>
</html>

When the user change the drop down into "Hide div2", the <div> with id div2 will hide which is style="DISPLAY: none"
How to use this thing like javascript where the page will not be refresh or postback<<

If i do like this
Inside the body tag:
<div id="div1" runat="server"></div>


Inside the script tag using c#:
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e){
    div1.Visible = false;
}

this way, it need to refresh the page. I want it to hide without hiding the page
AnswerRe: Hiding &lt;div&gt; OnSelectedIndexChanged Pin
Goalie3530-Mar-09 13:52
Goalie3530-Mar-09 13:52 
GeneralRe: Hiding &lt;div&gt; OnSelectedIndexChanged Pin
asipo30-Mar-09 14:54
asipo30-Mar-09 14:54 
GeneralRe: Hiding &lt;div&gt; OnSelectedIndexChanged Pin
Mogaambo30-Mar-09 19:13
Mogaambo30-Mar-09 19:13 
AnswerRe: Hiding &lt;div&gt; OnSelectedIndexChanged Pin
i gr830-Mar-09 21:26
i gr830-Mar-09 21:26 
QuestionManejo de frame en ASP.net Pin
viviana charcas cortez30-Mar-09 11:41
viviana charcas cortez30-Mar-09 11:41 
AnswerRe: Manejo de frame en ASP.net Pin
Yusuf30-Mar-09 11:58
Yusuf30-Mar-09 11:58 
QuestionDebuggubd ashx file Pin
OrsaPoison30-Mar-09 11:00
OrsaPoison30-Mar-09 11:00 
AnswerRe: Debuggubd ashx file Pin
Yusuf30-Mar-09 11:25
Yusuf30-Mar-09 11:25 
GeneralRe: Debuggubd ashx file Pin
OrsaPoison30-Mar-09 11:43
OrsaPoison30-Mar-09 11:43 
GeneralRe: Debuggubd ashx file Pin
Yusuf30-Mar-09 12:00
Yusuf30-Mar-09 12:00 
QuestionVisual Studio 2008 Code Behind Interface Pin
janetb9930-Mar-09 9:20
janetb9930-Mar-09 9:20 
AnswerRe: Visual Studio 2008 Code Behind Interface Pin
Shahdat Hosain30-Mar-09 9:32
Shahdat Hosain30-Mar-09 9:32 
GeneralRe: Visual Studio 2008 Code Behind Interface Pin
janetb9930-Mar-09 9:35
janetb9930-Mar-09 9:35 
Questionrandomly fetching multiple records from database using asp.net Pin
smady1830-Mar-09 8:49
smady1830-Mar-09 8:49 
AnswerRe: randomly fetching multiple records from database using asp.net Pin
Colin Angus Mackay30-Mar-09 13:29
Colin Angus Mackay30-Mar-09 13:29 
QuestionHow capture the event and go to some validation for Wizard Control . Pin
Shahdat Hosain30-Mar-09 8:24
Shahdat Hosain30-Mar-09 8:24 
Questionsubmitting form with select - question Pin
shukow30-Mar-09 8:04
shukow30-Mar-09 8:04 

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.