Click here to Skip to main content
15,919,245 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: a type can not be used as an expression Pin
Christian Graus20-Jun-07 12:36
protectorChristian Graus20-Jun-07 12:36 
QuestionServer Error in '/' Application. Pin
Amr M. K.20-Jun-07 6:53
Amr M. K.20-Jun-07 6:53 
AnswerRe: Server Error in '/' Application. Pin
badgrs20-Jun-07 7:19
badgrs20-Jun-07 7:19 
QuestionCannot find Server or DNS Error Pin
BGadhia20-Jun-07 6:34
BGadhia20-Jun-07 6:34 
AnswerRe: Cannot find Server or DNS Error Pin
badgrs20-Jun-07 7:17
badgrs20-Jun-07 7:17 
GeneralRe: Cannot find Server or DNS Error Pin
BGadhia20-Jun-07 7:46
BGadhia20-Jun-07 7:46 
QuestionPlease Help with a Web Service! Pin
BigBlueEye20-Jun-07 6:08
BigBlueEye20-Jun-07 6:08 
QuestionCan't access functions Pin
MartyExodus20-Jun-07 5:30
MartyExodus20-Jun-07 5:30 
Hello, I'm new to ASP.NET. I 've ben a C# programmer for about a year, but I'm just touching on the realms of web development.

Anyhow... I'm having a problem. Everytime I try to compile and run my page, I get the following message: "CS0117: 'ASP.index_aspx' does not contain a definition for 'MyScript'"

This is the code on my page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Page Language="C#" %>
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test</title>
<link rel="stylesheet" type="text/css" href="default.css" />

<script type="text/c#" id="MyScript">
private void MyFunc(object sender, EventArgs e)
{
TextBox1.Text = "Test";
}
</script>
</head>
<body>

<form id="form1" runat="server">
<asp:Button runat="server" Text="Button" id="Button1" onClick="MyScript.MyFunc()"/>
<asp:TextBox runat="server" id="TextBox1" MaxLength="10" Rows="1" Columns="10"/>
</form>
</body>
</html>

If it helps any, I'm using Microsoft Expression Web, because I don't have anything else other than C# Express (No asp.net support)

I'd appreciate any help.
AnswerRe: Can't access functions Pin
Not Active20-Jun-07 6:05
mentorNot Active20-Jun-07 6:05 
NewsRe: Can't access functions Pin
MartyExodus20-Jun-07 6:27
MartyExodus20-Jun-07 6:27 
QuestionShift-Click: trap/prevent opening new browser - possible? Pin
Yab (Yet Another Bob)20-Jun-07 5:21
Yab (Yet Another Bob)20-Jun-07 5:21 
Questionabout popup window Pin
mredaghaly20-Jun-07 5:08
mredaghaly20-Jun-07 5:08 
QuestionPopup calendar Maser Page Pin
kjosh20-Jun-07 5:06
kjosh20-Jun-07 5:06 
QuestionHow do I make my DLL available on remote Server?? Pin
Cfer8320-Jun-07 5:05
Cfer8320-Jun-07 5:05 
AnswerRe: How do I make my DLL available on remote Server?? Pin
Cfer8320-Jun-07 5:57
Cfer8320-Jun-07 5:57 
GeneralRe: How do I make my DLL available on remote Server?? Pin
Cfer8320-Jun-07 7:39
Cfer8320-Jun-07 7:39 
GeneralRe: How do I make my DLL available on remote Server?? Pin
Not Active20-Jun-07 7:45
mentorNot Active20-Jun-07 7:45 
QuestionHow to Pin
alwinSCH20-Jun-07 4:52
alwinSCH20-Jun-07 4:52 
AnswerRe: How to Pin
ednrgc20-Jun-07 5:04
ednrgc20-Jun-07 5:04 
AnswerRe: How to Pin
badgrs20-Jun-07 5:04
badgrs20-Jun-07 5:04 
GeneralRe: How to Pin
alwinSCH20-Jun-07 5:06
alwinSCH20-Jun-07 5:06 
GeneralRe: How to Pin
badgrs20-Jun-07 5:14
badgrs20-Jun-07 5:14 
Questiondeployment in VB.net VS 2003??? Pin
Vimalsoft(Pty) Ltd20-Jun-07 4:21
professionalVimalsoft(Pty) Ltd20-Jun-07 4:21 
AnswerRe: deployment in VB.net VS 2003??? Pin
MartyExodus20-Jun-07 5:54
MartyExodus20-Jun-07 5:54 
GeneralRe: deployment in VB.net VS 2003??? Pin
Vimalsoft(Pty) Ltd20-Jun-07 19:37
professionalVimalsoft(Pty) Ltd20-Jun-07 19:37 

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.