473,322 Members | 1,526 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,322 software developers and data experts.

Script

hi,
below is the error i am getting, when i did a
Response.write in a ASPX HTML section. please let
me know on how to use the script tags in the
ASPX pages.

Compiler Error Message: CS0201: Only assignment, call,
increment, decrement, and new object expressions can be
used as a statement
Source Error:

Line 15: <td>
Line 16: <%
Line 17:
Response.write["from aspx Page"];
Line 18: %>

Nov 17 '05 #1
5 1904
When you are calling a function, you put the parameters between ( and ).
You don't use square brackets.

In general though, there are much better ways to accomplish what you are
doing. Such as placeholders, or databinding controls (depending on the
situation).

"scriptDelms" <an*********@hotmail.com> wrote in message
news:0b****************************@phx.gbl...
hi,
below is the error i am getting, when i did a
Response.write in a ASPX HTML section. please let
me know on how to use the script tags in the
ASPX pages.

Compiler Error Message: CS0201: Only assignment, call,
increment, decrement, and new object expressions can be
used as a statement
Source Error:

Line 15: <td>
Line 16: <%
Line 17:
Response.write["from aspx Page"];
Line 18: %>

Nov 17 '05 #2
Thanks for the info,..actually what i am trying to is i
have a ASP application which has the the code as listed
below and i was trying to do a smiliar thing and i am
getting an error.... CS0117

<%if ucase(Request("Add"))="TRUE" then %>
<td><b>ADD a Record</b></td>
<%
End if
%>

-----Original Message-----
When you are calling a function, you put the parameters between ( and ).You don't use square brackets.

In general though, there are much better ways to accomplish what you aredoing. Such as placeholders, or databinding controls (depending on thesituation).

"scriptDelms" <an*********@hotmail.com> wrote in message
news:0b****************************@phx.gbl...
hi,
below is the error i am getting, when i did a
Response.write in a ASPX HTML section. please let
me know on how to use the script tags in the
ASPX pages.

Compiler Error Message: CS0201: Only assignment, call,
increment, decrement, and new object expressions can be
used as a statement
Source Error:

Line 15: <td>
Line 16: <%
Line 17:
Response.write["from aspx Page"];
Line 18: %>

.

Nov 17 '05 #3
Thanks for the info,..actually what i am trying to is i
have a ASP application which has the the code as listed
below and i was trying to do a smiliar thing and i am
getting an error.... CS0117

<%if ucase(Request("Add"))="TRUE" then %>
<td><b>ADD a Record</b></td>
<%
End if
%>

-----Original Message-----
When you are calling a function, you put the parameters between ( and ).You don't use square brackets.

In general though, there are much better ways to accomplish what you aredoing. Such as placeholders, or databinding controls (depending on thesituation).

"scriptDelms" <an*********@hotmail.com> wrote in message
news:0b****************************@phx.gbl...
hi,
below is the error i am getting, when i did a
Response.write in a ASPX HTML section. please let
me know on how to use the script tags in the
ASPX pages.

Compiler Error Message: CS0201: Only assignment, call,
increment, decrement, and new object expressions can be
used as a statement
Source Error:

Line 15: <td>
Line 16: <%
Line 17:
Response.write["from aspx Page"];
Line 18: %>

.

Nov 17 '05 #4
Use a datalist or datagrid to achieve the same thing. The need for server
scripts in asp.net is almost non existent. Try not to approach problems the
same way as you would in ASP. Learn the new functionality and components
available.

"ScriptDelm" <an*********@hotmail.com> wrote in message
news:04****************************@phx.gbl...
Thanks for the info,..actually what i am trying to is i
have a ASP application which has the the code as listed
below and i was trying to do a smiliar thing and i am
getting an error.... CS0117

<%if ucase(Request("Add"))="TRUE" then %>
<td><b>ADD a Record</b></td>
<%
End if
%>

-----Original Message-----
When you are calling a function, you put the parameters

between ( and ).
You don't use square brackets.

In general though, there are much better ways to

accomplish what you are
doing. Such as placeholders, or databinding controls

(depending on the
situation).

"scriptDelms" <an*********@hotmail.com> wrote in message
news:0b****************************@phx.gbl...
hi,
below is the error i am getting, when i did a
Response.write in a ASPX HTML section. please let
me know on how to use the script tags in the
ASPX pages.

Compiler Error Message: CS0201: Only assignment, call,
increment, decrement, and new object expressions can be
used as a statement
Source Error:

Line 15: <td>
Line 16: <%
Line 17:
Response.write["from aspx Page"];
Line 18: %>

.

Nov 17 '05 #5
"ScriptDelm" <an*********@hotmail.com> wrote
Thanks for the info,..actually what i am trying to is i
have a ASP application
Note this is the ASP.NET newsgroup. If you are using ASP,
then please ask your questions in the ASP newsgroup.
microsoft.public.inetserver.asp.general
which has the the code as listed
below and i was trying to do a smiliar thing and i am
getting an error.... CS0117

<%if ucase(Request("Add"))="TRUE" then %>


If UCase(Request.Form("Add")) = "TRUE" Then

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP
http://www.able-consulting.com


Nov 17 '05 #6

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

Similar topics

6
by: Mike Daniel | last post by:
I am attempting to use document.write(pageVar) that displays a new html page within a pop-up window and the popup is failing. Also note that pageVar is a complete HTML page containing other java...
1
by: bayouprophet | last post by:
Cant get menu script to to put linked page in the same frame. I am new to Java and I am wondering what am I doing wrong? below are my java applet file, frame.html file, and my text file and one...
1
by: Allen | last post by:
I am trying to add an additional photo/hyperlink to the company web site (I didn't create it) without any luck. The mouseover feature 'highlights' pics by swapping them with another pic using this...
3
by: Water Cooler v2 | last post by:
Questions: 1. Can there be more than a single script block in a given HEAD tag? 2. Can there be more than a single script block in a given BODY tag? To test, I tried the following code. None...
2
by: bilaribilari | last post by:
Hi all, I am using Tidy (C) for parsing html pages. I encountered a page that has some script as follows: <script> .... var abc = "<script>some stuff here</" + "script>"; .... </script>
19
by: thisis | last post by:
Hi All, i have this.asp page: <script type="text/vbscript"> Function myFunc(val1ok, val2ok) ' do something ok myFunc = " return something ok" End Function </script>
3
by: rsteph | last post by:
I have a script that shows the time and date. It's been working on my site for quite a while now. Suddenly it stops showing up, after getting my drop down menu to work. If I put text between the...
3
by: Angus | last post by:
I have a web page with a toolbar containing a Save button. The Save button can change contextually to be a Search button in some cases. Hence the button name searchsavechanges. The snippet of...
7
by: imtmub | last post by:
I have a page, Head tag Contains many Scripts and style sheet for Menu and Page. This code working fine and displaying menus and page as i wanted. Check this page for reference....
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.