Hello i'm manuel and I starting in C# asp.net recently.
I want to call a script function but I don't know  why not execute or
call my function, I'm doing all fine
please check my code.

------------------------------------

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace prueba2
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void bt_1_Click(object sender, EventArgs e)
        {
            radalertscript = "<script language='text/
javascript'>function f(){radalert('Welcome to RadWindow <b>Prometheus</
b>!', 330, 210); Sys.Application.remove_load(f);};
Sys.Application.add_load(f);</script>";
            Page.ClientScript.RegisterStartupScript(this.GetType(),
"radalert", radalertscript);
        }
    }
}



and my file.aspx



<%@ Page Language="C#" AutoEventWireup="true"
CodeBehind="Default.aspx.cs" Inherits="prueba2._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>Página sin título</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Button ID="bt_1" runat="server" Text="Prueba"
onclick="bt_1_Click" />
    </div>
    </form>
</body>
</html>


I think all is ok! but it  won't work , please can i hep me ?


thanks.


mlazo

-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to dotnetdevelopment@googlegroups.com
To unsubscribe from this group, send email to
dotnetdevelopment+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to