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

Passing embedded string to Response.Write

3
I need to pass the following to Response.Write:

style="display:none;"

Can't get it to accept this correctly...
Feb 26 '16 #1
5 2041
Rabbit
12,516 Expert Mod 8TB
Please post the code, difficult to say what you did wrong without seeing what you tried.
Feb 26 '16 #2
tim8w
3
Rabbit,

Was trying to do something like this:

Expand|Select|Wrap|Line Numbers
  1. <tr <%If ((rsScheduleItem.Fields.Item("FormatID").Value) = 36) Then Response.Write("style=display:inline;") : Response.Write("style=display:none;")%>>
But I couldn't get it to work...

I ended up doing this instead:

Expand|Select|Wrap|Line Numbers
  1. <%If ((rsScheduleItem.Fields.Item("FormatID").Value) =  36) Then %>
  2. <tr> 
  3. </tr>
  4. <% End If %>
Feb 26 '16 #3
Rabbit
12,516 Expert Mod 8TB
Please use code tags when posting code or formatted data.

Your code block doesn't have those double quotes that you have in your first post.
Feb 26 '16 #4
tim8w
3
Rabbit,
That's because what's in the first post is what I was trying to put in the Response.Write, but It won't take it that way. What I showed in the second post was an attempt to get it to work. I also tried it with double-quotes and triple quotes. None worked...
Feb 27 '16 #5
Rabbit
12,516 Expert Mod 8TB
If you're going to put double quotes inside double quotes, you need to escape them, otherwise it has no idea you want it as part of a string rather than ending or starting a string.
Feb 27 '16 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Ricardo | last post by:
Hi. How should I pass a " (doble-quote) character to response.write() in order for it to be sent to the output ? Thanks in advance for the help.
11
by: Dave Anderson | last post by:
Consider the following: var GUID = Server.CreateObject("Scriptlet.TypeLib").GUID Let's assume GUID is {9A46FCC9-A7A1-4C96-9394-B1A966CEC081}. I happened to notice that if I concatenate this...
2
by: Jack | last post by:
Hi, I am trying to check for the final sql statement before passing it to a database. I want to build the statement using user input in three text boxes. However, the sql statement does not give...
5
by: matthew | last post by:
Hi all, I am now writing a aspx that get a session variable (string) and then write it out using Response.Write. The string length is: 494710. But Response.Write only write the string...
4
by: Toby Boogerd | last post by:
Below I note that my response.write is adding spaces after the characters. I use this code as Middleware, an application calls this page passing the LogonID and the page is suppose to returen the...
2
by: John Cosmas | last post by:
If I included a UserControl in a form, and them tell it to Response.Write some code, will the resulting client script work after the page is rendered. Let's say that I instructed the User Control...
1
by: chanko | last post by:
Hello all, i'm having a little problem while adding script blocks from my codebehind i have a page that registers a new product in my database, and upon finishing, this page should open a popup...
3
by: John A Grandy | last post by:
When writing rss xml to the client browser , is there any reason to load the rss xml string into an XmlDocument and then Response.Write() the XmlDocument.OuterXML.ToString() ? option 1: ...
4
by: | last post by:
Hi all, I want to create a method that does the following: 1) Programmatically instantiate a new XmlDataSource control 2) For each file in a named directory, make a "FileSystemItem" element 3)...
5
by: satyabhaskar | last post by:
hi all, In my web page i have created radio buttons dynamically on to the page .....following is my code string Course, Semester, Section; int rowsCount; string con =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.