473,378 Members | 1,507 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

New to ASP.NET Please help

I get the following error:

Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name 'SPANComment'
could not be found (are you missing a using directive or an assembly
reference?)

Source Error:

Line 4: <SCRIPT LANGUAGE="C#" RUNAT="Server">
Line 5: void SubmitBtn_Click(Object sender,EventArgs e){
Line 6: SPANComment.InnerHtml="Here are the details we received:<BR/><BR/>"+
Line 7: "FirstName:"+textboxFirstName.Text+"<BR/>"+
Line 8: "LastName:"+textboxLastName.Text+"<BR/>"+
Source File: c:\inetpub\wwwroot\SubmitReceiveComments.aspx Line: 6

with the code that I have:

<%@Page Language="C#"%>
<HTML>
<HEAD>
<SCRIPT LANGUAGE="C#" RUNAT="Server">
void SubmitBtn_Click(Object sender,EventArgs e){
SPANComment.InnerHtml="Here are the details we received:<BR/><BR/>"+
"FirstName:"+textboxFirstName.Text+"<BR/>"+
"LastName:"+textboxLastName.Text+"<BR/>"+
"Comments:"+textareaComments.Value+"<BR/>";}
</SCRIPT>
</HEAD>
<BODY>
<FONT FACE="Verdana">
<H3>Welcome to my site!</H3>
What comments do you have about our site?
<FORM ACTION="SubmitReceiveComments.aspx" METHOD="POST" RUNAT="Server">
First Name: <ASP:TEXTBOX ID="textboxFirstName" RUNAT="Server"/><BR/>
Last Name: <ASP:TEXTBOX ID="textboxLastName" RUNAT="Server"/><P/>
Comments:<P/>
<TEXTAREA COLS="50" ROWS="5" ID="textareaComments" RUNAT="Server">
</TEXTAREA><P/>
<ASP:BUTTON TEXT="Send Comments" ONCLICK="SubmitBtn_Click"
RUNAT="Server" />
<BR/><BR/>
<SPAN ID="spanComment" RUNAT="Server" />

<H3> Thank You Your Comments were received.</H3>
Here are the details we received<BR/><BR/>
First Name. <%=Request.Form("textboxFirstName")%><BR/>
Last Name. <%=Request.Form("textboxLastName")%><BR/>
Comments. <%=Request.Form("textareaComments")%><BR/>

</FORM>
</FONT>
</BODY>
</HTML>
Nov 19 '05 #1
3 1277
Thank you, I manage myself. Anyhow i'm a true beginner :-).

"Cristina" wrote:
I get the following error:

Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name 'SPANComment'
could not be found (are you missing a using directive or an assembly
reference?)

Source Error:

Line 4: <SCRIPT LANGUAGE="C#" RUNAT="Server">
Line 5: void SubmitBtn_Click(Object sender,EventArgs e){
Line 6: SPANComment.InnerHtml="Here are the details we received:<BR/><BR/>"+
Line 7: "FirstName:"+textboxFirstName.Text+"<BR/>"+
Line 8: "LastName:"+textboxLastName.Text+"<BR/>"+
Source File: c:\inetpub\wwwroot\SubmitReceiveComments.aspx Line: 6

with the code that I have:

<%@Page Language="C#"%>
<HTML>
<HEAD>
<SCRIPT LANGUAGE="C#" RUNAT="Server">
void SubmitBtn_Click(Object sender,EventArgs e){
SPANComment.InnerHtml="Here are the details we received:<BR/><BR/>"+
"FirstName:"+textboxFirstName.Text+"<BR/>"+
"LastName:"+textboxLastName.Text+"<BR/>"+
"Comments:"+textareaComments.Value+"<BR/>";}
</SCRIPT>
</HEAD>
<BODY>
<FONT FACE="Verdana">
<H3>Welcome to my site!</H3>
What comments do you have about our site?
<FORM ACTION="SubmitReceiveComments.aspx" METHOD="POST" RUNAT="Server">
First Name: <ASP:TEXTBOX ID="textboxFirstName" RUNAT="Server"/><BR/>
Last Name: <ASP:TEXTBOX ID="textboxLastName" RUNAT="Server"/><P/>
Comments:<P/>
<TEXTAREA COLS="50" ROWS="5" ID="textareaComments" RUNAT="Server">
</TEXTAREA><P/>
<ASP:BUTTON TEXT="Send Comments" ONCLICK="SubmitBtn_Click"
RUNAT="Server" />
<BR/><BR/>
<SPAN ID="spanComment" RUNAT="Server" />

<H3> Thank You Your Comments were received.</H3>
Here are the details we received<BR/><BR/>
First Name. <%=Request.Form("textboxFirstName")%><BR/>
Last Name. <%=Request.Form("textboxLastName")%><BR/>
Comments. <%=Request.Form("textareaComments")%><BR/>

</FORM>
</FONT>
</BODY>
</HTML>

Nov 19 '05 #2
So what was your solution?
Patrick

"Cristina" <Cr******@discussions.microsoft.com> wrote in message
news:F5**********************************@microsof t.com...
Thank you, I manage myself. Anyhow i'm a true beginner :-).

"Cristina" wrote:
I get the following error:

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name 'SPANComment'
could not be found (are you missing a using directive or an assembly
reference?)

Source Error:

Line 4: <SCRIPT LANGUAGE="C#" RUNAT="Server">
Line 5: void SubmitBtn_Click(Object sender,EventArgs e){
Line 6: SPANComment.InnerHtml="Here are the details we received:<BR/><BR/>"+ Line 7: "FirstName:"+textboxFirstName.Text+"<BR/>"+
Line 8: "LastName:"+textboxLastName.Text+"<BR/>"+
Source File: c:\inetpub\wwwroot\SubmitReceiveComments.aspx Line: 6

with the code that I have:

<%@Page Language="C#"%>
<HTML>
<HEAD>
<SCRIPT LANGUAGE="C#" RUNAT="Server">
void SubmitBtn_Click(Object sender,EventArgs e){
SPANComment.InnerHtml="Here are the details we received:<BR/><BR/>"+
"FirstName:"+textboxFirstName.Text+"<BR/>"+
"LastName:"+textboxLastName.Text+"<BR/>"+
"Comments:"+textareaComments.Value+"<BR/>";}
</SCRIPT>
</HEAD>
<BODY>
<FONT FACE="Verdana">
<H3>Welcome to my site!</H3>
What comments do you have about our site?
<FORM ACTION="SubmitReceiveComments.aspx" METHOD="POST" RUNAT="Server">
First Name: <ASP:TEXTBOX ID="textboxFirstName" RUNAT="Server"/><BR/>
Last Name: <ASP:TEXTBOX ID="textboxLastName" RUNAT="Server"/><P/>
Comments:<P/>
<TEXTAREA COLS="50" ROWS="5" ID="textareaComments" RUNAT="Server">
</TEXTAREA><P/>
<ASP:BUTTON TEXT="Send Comments" ONCLICK="SubmitBtn_Click"
RUNAT="Server" />
<BR/><BR/>
<SPAN ID="spanComment" RUNAT="Server" />

<H3> Thank You Your Comments were received.</H3>
Here are the details we received<BR/><BR/>
First Name. <%=Request.Form("textboxFirstName")%><BR/>
Last Name. <%=Request.Form("textboxLastName")%><BR/>
Comments. <%=Request.Form("textareaComments")%><BR/>

</FORM>
</FONT>
</BODY>
</HTML>

Nov 19 '05 #3
In Line 6 I've changed the ID of the "SPANComment" in "spanComment" because
below I declared the SPAN ID=spanComment.
I've deleted some lines that were duplicated because i put them in the span
zone and at the end of the source code, of course with other ID's of the
controls because i'm an absolute beginner :-).
This are the rows that i've deleted:

<H3> Thank You Your Comments were received.</H3>
Here are the details we received<BR/><BR/>
First Name. <%=Request.Form("textboxFirstName")%><BR/>
Last Name. <%=Request.Form("textboxLastName")%><BR/>
Comments. <%=Request.Form("textareaComments")%><BR/>

And it worked.

I hope that the answer it will be helpful.

Cristina

"Patirck Ige" wrote:
So what was your solution?
Patrick

"Cristina" <Cr******@discussions.microsoft.com> wrote in message
news:F5**********************************@microsof t.com...
Thank you, I manage myself. Anyhow i'm a true beginner :-).

"Cristina" wrote:
I get the following error:

Compilation Error
Description: An error occurred during the compilation of a resource

required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name 'SPANComment'
could not be found (are you missing a using directive or an assembly
reference?)

Source Error:

Line 4: <SCRIPT LANGUAGE="C#" RUNAT="Server">
Line 5: void SubmitBtn_Click(Object sender,EventArgs e){
Line 6: SPANComment.InnerHtml="Here are the details we received:<BR/><BR/>"+ Line 7: "FirstName:"+textboxFirstName.Text+"<BR/>"+
Line 8: "LastName:"+textboxLastName.Text+"<BR/>"+
Source File: c:\inetpub\wwwroot\SubmitReceiveComments.aspx Line: 6

with the code that I have:

<%@Page Language="C#"%>
<HTML>
<HEAD>
<SCRIPT LANGUAGE="C#" RUNAT="Server">
void SubmitBtn_Click(Object sender,EventArgs e){
SPANComment.InnerHtml="Here are the details we received:<BR/><BR/>"+
"FirstName:"+textboxFirstName.Text+"<BR/>"+
"LastName:"+textboxLastName.Text+"<BR/>"+
"Comments:"+textareaComments.Value+"<BR/>";}
</SCRIPT>
</HEAD>
<BODY>
<FONT FACE="Verdana">
<H3>Welcome to my site!</H3>
What comments do you have about our site?
<FORM ACTION="SubmitReceiveComments.aspx" METHOD="POST" RUNAT="Server">
First Name: <ASP:TEXTBOX ID="textboxFirstName" RUNAT="Server"/><BR/>
Last Name: <ASP:TEXTBOX ID="textboxLastName" RUNAT="Server"/><P/>
Comments:<P/>
<TEXTAREA COLS="50" ROWS="5" ID="textareaComments" RUNAT="Server">
</TEXTAREA><P/>
<ASP:BUTTON TEXT="Send Comments" ONCLICK="SubmitBtn_Click"
RUNAT="Server" />
<BR/><BR/>
<SPAN ID="spanComment" RUNAT="Server" />

<H3> Thank You Your Comments were received.</H3>
Here are the details we received<BR/><BR/>
First Name. <%=Request.Form("textboxFirstName")%><BR/>
Last Name. <%=Request.Form("textboxLastName")%><BR/>
Comments. <%=Request.Form("textareaComments")%><BR/>

</FORM>
</FONT>
</BODY>
</HTML>


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: m3ckon | last post by:
Hi there, had to rush some sql and am now going back to it due to a slow db performance. I have a db for sales leads and have created 3 views based on the data I need to produce. However one...
6
by: James Walker | last post by:
Can some one help I get an error of 'checkIndate' is null or not an object can someone please help. I can't work out why Thanks in advance James <form> <td height="24" colspan="7"...
0
by: Kurt Watson | last post by:
I’m having a different kind of problem with Hotmail when I sign in it says, "Web Browser Software Limitations Your Current Software Will Limit Your Ability to Use Hotmail You are using a web...
7
by: Alan Bashy | last post by:
Please, guys, In need help with this. It is due in the next week. Please, help me to implement the functions in this programm especially the first three constructor. I need them guys. Please, help...
1
by: Steve | last post by:
Hi, I've asked this question a couple of times before on this forum but no one seems to be nice enough to point me to the right direction or help me out with any information, if possible. Please...
22
by: KitKat | last post by:
I need to get this to go to each folders: Cam 1, Cam 2, Cam 4, Cam 6, Cam 7, and Cam 8. Well it does that but it also needs to change the file name to the same folder where the file is being...
17
by: Saps | last post by:
Hi all. Can anyone help me here. I have loads of .sql files and i need a way to call these from my asp page so the user can run them from the browser. Meaning i have a page with a list of all...
8
by: CM | last post by:
Hi, Could anyone please help me? I am completing my Master's Degree and need to reproduce a Webpage in Word. Aspects of the page are lost and some of the text goes. I would really appreciate it....
1
SKJoy2001
by: SKJoy2001 | last post by:
PLEASE HELP ME!!! P E R L!!! I have a CGI (PERL) file namely 'test.cgi' and it has the correct permission (755) on the FTP server and it is within the CGI path. I have the following code in it:...
6
by: jenipriya | last post by:
Hi all... its very urgent.. please........i m a beginner in oracle.... Anyone please help me wit dese codes i hv tried... and correct the errors... The table structures i hav Employee (EmpID,...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.