Click here to Skip to main content
15,793,118 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Generalpage.loadControl(string virtualpath) Pin
ptvce27-Apr-08 20:36
ptvce27-Apr-08 20:36 
GeneralRe: page.loadControl(string virtualpath) Pin
Moghan27-Apr-08 20:52
Moghan27-Apr-08 20:52 
GeneralRe: page.loadControl(string virtualpath) Pin
ptvce27-Apr-08 21:36
ptvce27-Apr-08 21:36 
GeneralDate time Conversion- Help! Pin
Moghan27-Apr-08 20:33
Moghan27-Apr-08 20:33 
GeneralRe: Date time Conversion- Help! Pin
Christian Graus27-Apr-08 20:47
protectorChristian Graus27-Apr-08 20:47 
GeneralImplement CAPTCHA on LogInControl Pin
AlexeiXX327-Apr-08 20:30
AlexeiXX327-Apr-08 20:30 
Questionhow to handle javascript in the when drop down control is in update panel Pin
lakshmichawala27-Apr-08 19:34
lakshmichawala27-Apr-08 19:34 
AnswerRe: how to handle javascript in the when drop down control is in update panel Pin
AlexeiXX327-Apr-08 19:51
AlexeiXX327-Apr-08 19: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 20:08
lakshmichawala27-Apr-08 20:08 
AnswerRe: how to handle javascript in the when drop down control is in update panel Pin
Dotnetkanna28-Apr-08 0:55
Dotnetkanna28-Apr-08 0:55 
QuestionHow to refresh data on Web User Control after a pop up is closed ? Pin
pvphuc27-Apr-08 19:25
pvphuc27-Apr-08 19:25 
GeneralPassing the value from parent to child Pin
Rena7727-Apr-08 15:38
Rena7727-Apr-08 15:38 
GeneralRe: Passing the value from parent to child Pin
Moghan27-Apr-08 20:46
Moghan27-Apr-08 20:46 
GeneralRe: Passing the value from parent to child Pin
Rena7728-Apr-08 3:22
Rena7728-Apr-08 3:22 
GeneralRe: Passing the value from parent to child Pin
Moghan29-Apr-08 20:31
Moghan29-Apr-08 20:31 
GeneralRe: Passing the value from parent to child Pin
Rena7730-Apr-08 3:54
Rena7730-Apr-08 3:54 
GeneralAsp.net Treeview control Pin
mcirosoftmohan27-Apr-08 13:47
mcirosoftmohan27-Apr-08 13:47 
GeneralAccessing master page controls Pin
Farhad Eft27-Apr-08 10:55
Farhad Eft27-Apr-08 10:55 
GeneralRe: Accessing master page controls Pin
Farhad Eft27-Apr-08 10:59
Farhad Eft27-Apr-08 10:59 
GeneralRe: Accessing master page controls Pin
Christian Graus27-Apr-08 12:26
protectorChristian Graus27-Apr-08 12:26 
Questionhow to use ajax in asp.net 2.0 Pin
salil_k_singh27-Apr-08 10:15
salil_k_singh27-Apr-08 10:15 
GeneralRe: how to use ajax in asp.net 2.0 Pin
Blue_Boy27-Apr-08 10:20
Blue_Boy27-Apr-08 10:20 
GeneralRe: how to use ajax in asp.net 2.0 Pin
Christian Graus27-Apr-08 12:24
protectorChristian Graus27-Apr-08 12:24 
Generaljavascript function work with on project and another one nooooo !!! Pin
kindman_nb27-Apr-08 9:44
kindman_nb27-Apr-08 9:44 
GeneralRe: javascript function work with on project and another one nooooo !!! Pin
Christian Graus27-Apr-08 12:30
protectorChristian Graus27-Apr-08 12: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.