Click here to Skip to main content
15,921,840 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionlogin problems in asp.net Pin
amaneet12-May-06 2:25
amaneet12-May-06 2:25 
AnswerRe: login problems in asp.net Pin
scott987uk12-May-06 2:35
scott987uk12-May-06 2:35 
GeneralRe: login problems in asp.net Pin
amaneet12-May-06 2:37
amaneet12-May-06 2:37 
GeneralRe: login problems in asp.net Pin
scott987uk12-May-06 2:42
scott987uk12-May-06 2:42 
Questiondatalist problem in asp.net Pin
amaneet12-May-06 2:17
amaneet12-May-06 2:17 
AnswerRe: datalist problem in asp.net Pin
Nitin198112-May-06 21:51
Nitin198112-May-06 21:51 
QuestionDynamically adding buttons and there events Pin
scott987uk12-May-06 2:07
scott987uk12-May-06 2:07 
AnswerRe: Dynamically adding buttons and there events Pin
minhpc_bk12-May-06 6:33
minhpc_bk12-May-06 6:33 
Below is a quick example for what you might want to do:
<%@ Page Language="C#" %>
<script runat="server">
                  
    protected void Page_Load(object sender, EventArgs e)
    {
        if (ViewState["DynamicButtonAdded"]!=null)
        {
            Button dynamicButton = new Button();
            dynamicButton.Text = "Dynamic Button";
            PlaceHolder1.Controls.Add(dynamicButton);
                     
            dynamicButton.Click += delegate { Response.Write("Dynamic Button Clicked"); };            
        }
    }
                   
    protected void Button1_Click(object sender, EventArgs e)
    {
        if (ViewState["DynamicButtonAdded"] == null)
        {
            Button dynamicButton = new Button();
            dynamicButton.Text = "Dynamic Button";
            PlaceHolder1.Controls.Add(dynamicButton);
                         
            ViewState["DynamicButtonAdded"] = true;
        }
    }
</script>
                 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Button ID="Button1" runat="server" Text="Add Dynamic Button" On_Click="Button1_Click" />
        <br />
        <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
    </div>
    </form>
</body>
</html>

QuestionHow to Create Custom Control ?? Pin
Abubakarsb12-May-06 1:11
Abubakarsb12-May-06 1:11 
AnswerRe: How to Create Custom Control ?? Pin
_AK_12-May-06 1:14
_AK_12-May-06 1:14 
Questionsmartnavigation Pin
amaneet12-May-06 0:52
amaneet12-May-06 0:52 
AnswerRe: smartnavigation Pin
_AK_12-May-06 0:57
_AK_12-May-06 0:57 
Questionrunning audio and video files in asp.net 1.1 Pin
amaneet12-May-06 0:35
amaneet12-May-06 0:35 
AnswerRe: running audio and video files in asp.net 1.1 Pin
Nable12-May-06 0:43
Nable12-May-06 0:43 
GeneralRe: running audio and video files in asp.net 1.1 Pin
amaneet12-May-06 1:03
amaneet12-May-06 1:03 
AnswerRe: running audio and video files in asp.net 1.1 Pin
_AK_12-May-06 1:04
_AK_12-May-06 1:04 
GeneralRe: running audio and video files in asp.net 1.1 Pin
amaneet12-May-06 1:15
amaneet12-May-06 1:15 
GeneralRe: running audio and video files in asp.net 1.1 Pin
_AK_12-May-06 1:21
_AK_12-May-06 1:21 
QuestionHow to cache DotNet charts in aspx Pin
nitgood0712-May-06 0:13
nitgood0712-May-06 0:13 
AnswerRe: How to cache charts in aspx Pin
Paddy Boyd12-May-06 0:25
Paddy Boyd12-May-06 0:25 
GeneralRe: How to cache charts in aspx Pin
Nable12-May-06 0:40
Nable12-May-06 0:40 
GeneralRe: How to cache charts in aspx Pin
nitgood0714-May-06 21:15
nitgood0714-May-06 21:15 
GeneralRe: How to cache charts in aspx Pin
nitgood0714-May-06 21:13
nitgood0714-May-06 21:13 
Questionasp.net 2.0 gridview Pin
fmardani11-May-06 23:31
fmardani11-May-06 23:31 
AnswerRe: asp.net 2.0 gridview Pin
minhpc_bk12-May-06 6:31
minhpc_bk12-May-06 6:31 

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.