Click here to Skip to main content
15,885,309 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Generalpage.loadControl(string virtualpath) Pin
ptvce27-Apr-08 19:36
ptvce27-Apr-08 19:36 
GeneralRe: page.loadControl(string virtualpath) Pin
Moghan27-Apr-08 19:52
Moghan27-Apr-08 19:52 
GeneralRe: page.loadControl(string virtualpath) Pin
ptvce27-Apr-08 20:36
ptvce27-Apr-08 20:36 
GeneralDate time Conversion- Help! Pin
Moghan27-Apr-08 19:33
Moghan27-Apr-08 19:33 
GeneralRe: Date time Conversion- Help! Pin
Christian Graus27-Apr-08 19:47
protectorChristian Graus27-Apr-08 19:47 
GeneralImplement CAPTCHA on LogInControl Pin
AlexeiXX327-Apr-08 19:30
AlexeiXX327-Apr-08 19:30 
Questionhow to handle javascript in the when drop down control is in update panel Pin
lakshmichawala27-Apr-08 18:34
lakshmichawala27-Apr-08 18:34 
AnswerRe: how to handle javascript in the when drop down control is in update panel Pin
AlexeiXX327-Apr-08 18:51
AlexeiXX327-Apr-08 18:51 
Page.aspx

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="Test_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    
    </div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                    <asp:ListItem>A</asp:ListItem>
                    <asp:ListItem>B</asp:ListItem>
                    <asp:ListItem>c</asp:ListItem>
                </asp:DropDownList>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>



Page.aspx.vb
Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
    ScriptManager.RegisterStartupScript(Me, Page.GetType, "X", "alert('" & Me.DropDownList1.SelectedValue & "')", True)
End Sub


Alexei Rodriguez

GeneralRe: how to handle javascript in the when drop down control is in update panel Pin
lakshmichawala27-Apr-08 19:08
lakshmichawala27-Apr-08 19:08 
AnswerRe: how to handle javascript in the when drop down control is in update panel Pin
Dotnetkanna27-Apr-08 23:55
Dotnetkanna27-Apr-08 23:55 
QuestionHow to refresh data on Web User Control after a pop up is closed ? Pin
pvphuc27-Apr-08 18:25
pvphuc27-Apr-08 18:25 
GeneralPassing the value from parent to child Pin
Rena7727-Apr-08 14:38
Rena7727-Apr-08 14:38 
GeneralRe: Passing the value from parent to child Pin
Moghan27-Apr-08 19:46
Moghan27-Apr-08 19:46 
GeneralRe: Passing the value from parent to child Pin
Rena7728-Apr-08 2:22
Rena7728-Apr-08 2:22 
GeneralRe: Passing the value from parent to child Pin
Moghan29-Apr-08 19:31
Moghan29-Apr-08 19:31 
GeneralRe: Passing the value from parent to child Pin
Rena7730-Apr-08 2:54
Rena7730-Apr-08 2:54 
GeneralAsp.net Treeview control Pin
mcirosoftmohan27-Apr-08 12:47
mcirosoftmohan27-Apr-08 12:47 
GeneralAccessing master page controls Pin
Farhad Eft27-Apr-08 9:55
Farhad Eft27-Apr-08 9:55 
GeneralRe: Accessing master page controls Pin
Farhad Eft27-Apr-08 9:59
Farhad Eft27-Apr-08 9:59 
GeneralRe: Accessing master page controls Pin
Christian Graus27-Apr-08 11:26
protectorChristian Graus27-Apr-08 11:26 
Questionhow to use ajax in asp.net 2.0 Pin
salil_k_singh27-Apr-08 9:15
salil_k_singh27-Apr-08 9:15 
GeneralRe: how to use ajax in asp.net 2.0 Pin
Blue_Boy27-Apr-08 9:20
Blue_Boy27-Apr-08 9:20 
GeneralRe: how to use ajax in asp.net 2.0 Pin
Christian Graus27-Apr-08 11:24
protectorChristian Graus27-Apr-08 11:24 
Generaljavascript function work with on project and another one nooooo !!! Pin
kindman_nb27-Apr-08 8:44
kindman_nb27-Apr-08 8:44 
GeneralRe: javascript function work with on project and another one nooooo !!! Pin
Christian Graus27-Apr-08 11:30
protectorChristian Graus27-Apr-08 11: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.