Ask a Question related to ASP.NET General, Design and Development.
-
AV #1
Script in WebForm
I am not able to use the script below,
its giving and Execption (MessageName Space)
THE TYPE OR NAMESPACE NAME 'MESSAGE' COULD NOT BE FOUND
this is an example from the GOTDOTNET site
[url]http://samples.gotdotnet.com/quickstart/util/srcview.aspx?[/url]
path=/quickstart/aspplus/samples/webforms/controls/controls
3.src&file=CS\controls3.aspx&font=3
<script language="C#" runat="server">
void EnterBtn_Click(Object Src, EventArgs E) {
Message.Text = "Hi " + HttpUtility.HtmlEncode
(Name.Text) + ", welcome to ASP.NET!";
}
</script>
AV Guest
-
asp.net how to login to AD from a webform
I have a webserver 2003 and a AD server 2003, I need to create an intranet app and I want the users login to the Webserver using their AD... -
Run .exe from WebForm
How can I run an .exe (located at the server) from within a WebForm? For example, run "word.exe mydoc.txt" -
Including WebForm Image Control in a Webform Table Control
What is the code for including an image control in a Table control of a WebForm ???? regards -
applet in a webform
I have an applet that I instantiate on a web form using an applet tag such as: <Applet> stuff in here </Applet> Assume the name of the applet... -
Hot to execute an visual basic script from a webform
hi, is it posible to call a .vbs from a webform? -
Kevin Spencer #2
Re: Script in WebForm
The script is referencing a Control (most likely a Label) named "Message".
If it isn't on your Page, that would cause the problem you describe.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
[url]http://www.takempis.com[/url]
Complex things are made up of
lots of simple things.
"AV" <anilvarmaen@hotmail.com> wrote in message
news:01b801c35b77$3bd163c0$a301280a@phx.gbl...> I am not able to use the script below,
> its giving and Execption (MessageName Space)
> THE TYPE OR NAMESPACE NAME 'MESSAGE' COULD NOT BE FOUND
>
> this is an example from the GOTDOTNET site
>
> [url]http://samples.gotdotnet.com/quickstart/util/srcview.aspx?[/url]
> path=/quickstart/aspplus/samples/webforms/controls/controls
> 3.src&file=CS\controls3.aspx&font=3
>
> <script language="C#" runat="server">
>
>
> void EnterBtn_Click(Object Src, EventArgs E) {
> Message.Text = "Hi " + HttpUtility.HtmlEncode
> (Name.Text) + ", welcome to ASP.NET!";
> }
>
> </script>
>
Kevin Spencer Guest
-
MS News #3
Re: Script in WebForm
System.Web.HttpUtility.HtmlEncode
"AV" <anilvarmaen@hotmail.com> wrote in message
news:01b801c35b77$3bd163c0$a301280a@phx.gbl...> I am not able to use the script below,
> its giving and Execption (MessageName Space)
> THE TYPE OR NAMESPACE NAME 'MESSAGE' COULD NOT BE FOUND
>
> this is an example from the GOTDOTNET site
>
> [url]http://samples.gotdotnet.com/quickstart/util/srcview.aspx?[/url]
> path=/quickstart/aspplus/samples/webforms/controls/controls
> 3.src&file=CS\controls3.aspx&font=3
>
> <script language="C#" runat="server">
>
>
> void EnterBtn_Click(Object Src, EventArgs E) {
> Message.Text = "Hi " + HttpUtility.HtmlEncode
> (Name.Text) + ", welcome to ASP.NET!";
> }
>
> </script>
>
MS News Guest



Reply With Quote

