I've noticed that most examples offered in this group tend to use Response.Write to spit out the HTML rather than switch between script and HTML. I also came across an article intimating the same idea. Is this considered inefficient? Code:
Basically we all write code which you may think could be improved. So heres the answer. Basically attatch your page to this thread and other members can look over it and see how it could be improved.
I have a table having 3 columns. There is a checkbox for each line. I need to get those lines whose checkboxes are checked, and show those lines to another webpage. Is there any way to do that? My concern is that all information in the table are in <tb></tb> pairs without any name tag. Any idea?
I'm doing a content management system, whereby the user can enter the HTML code for a currency symbol, eg £ for £.y . when I bring this data backup, say they want to edit the settings, then my ASP/HTML page is rendering the HTML code, eg £, rather than showing the original value, eg £.
If for example I put a space between the '&' and the 'pound;', eg & pound; then this will cause me problems because the user will think that they have to a put a space in or they file it with the space, which means the HTML code won't work any more. Is there a way round this?
i need to include the html inside another html, though it might appear simple, the catch is this, my one html is in one server and my another html is in another server.I cannot read the html and stream it as it has images and their path gets changed when i do that.
More over i donot have any control over the html which i am going to include all i have is a url http:abcxx.htm whose content i want to show in another asp page. The technology is ASP (vbscript and javascript).
I've created a form, using ASP to pull through first and last names from a database into another database. I cannot get it to put a space between the names it pulls through!!! Can anyone suggest what a put between the two to get a space!!
I have an asp file that I made and I want to have it when you come to my site, the index.html redirects you to the .asp file, what is the code to do this?
ASP is server-side technology.All it does is process data sent from a client in a Request and generate html to be sent to the client via Response. You'll probably get a quicker response by posting to a relevant newsgroup. http://groups.google.com/groups/dir?sel=33584039
What is the difference between HTML and ASP? Apart from this,i know that ASP can display data from the text file of the server.Can HTML do such thing too?
I need to make a javascript include file using asp. I know how to make the include file with a .asp extention, but I am haveing other truobles How can I make the < in html code be displayed as < not hidden and executed as normal code? Ex. <body><font color="red">this is text</font></body> would be displayed as that not this is text (but colored red). There's some function... ...can't think of it... ...I kind of does replace(pghtml,">",">"), etc... since I am getting the data from a database, I need it ALL to go on one line when I response.write it, how would I do this?
I have an index.asp which consists of frameset and frames. The sub-frames also consists of frameset and frames. This way, I can set the layout of my webpages.
In one of the frames, I load Login.asp. When it is submitted to doLogin.asp, I validate the login information. When I validate the password successfully, I want the whole webpage (the index.asp and down) to reload because it has to re-draw the menus on top. When the login is failed, it redirects to Login.asp.
I am having a hard time doing this from my ASP page right after I validate the login information.
If this is the wrong group, please post a more relevant group. My problem is that I have a .hex file (basically a text file) shown on a web page for download. If one left clicks on the link for this file, the text content is displayed. Someone in my organization wants to prevent this display. Any ideas on how to do this? I hope this is not an ignorant question but I am not a web developer, ... yet.
I have to pass the valut of an HTML text box through POST method but for some reason i m unable to get that value through Response.Form of asp I have to get the value by response.querystring but for that i need to send that value through parameter in URL i dont know how to pass that value of textbox through parameter by post method.
I'm proficient with HTML. Been using it for many years now. I haven't had time to learn any of the newer languages but for what I need, I don't think I have to. I'm hoping someone can point me in the right direction of a tutorial or chunk of code I can simply paste into my existing page.
I've got a website I'm working on which requires *many* new pages within the same site. What I need to know is how to keep my navigational menu, header, logos, etc. in place while only refreshing the body of the text when links are clicked.
I got an ASP application and we need to figure out how to deal with this problem. Users sees text and images via his/her browser and he/she should have a possibility to create a .doc or .rtf file out of what he/she sees. So practically .html page should be converted to .doc or .rtf.
a) converting to .pdf is easier I know, but that's another story b) opening .html -file inside word is not what I want
For example: user could view certain changing data, and then convert it to .doc/.rtf and save to his/her computer and view/change it offline. ASP component would be nice, but practically anything goes that can be attached to a www-application. It doesn't need to be free.
I have create search field in that user can enter student number in that field and if database could find that number , it will display that student record in html designed form. What I am doing is that I have create student form also in below of search field so if user find record in database , it will immediately appear in that given form.
But what actually happening is that when my form is loading it will directly check search box and that time nothing appear in that list and it will disply an error msg :
Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80040E07) [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
Someone can suggest me that which event should I trigger.
You have a page. On top of the page, there are some search criteria and other input elements and a submit button. The submit button is clicked, sending a request to the server. Server-side code is executed to write client-side vars. Based on these vars, divs are shown or hidden.
Why not just write or not write the html stuff server-side? If other client-events were going to interact with the divs, I could see it. But they aren't. The page is always posted back to itself for any kinds of show/hide stuff.
I'm sending email using CDO Message in HTML Formatted. There is no problem if client side is HTML Enable. But if it doesnt not, its showing all html tags in message body.
The email doesn't have any of the formatting but I haven't a clue why. The css file has been tested on another page and it works so the css is fine. Can anyone help?
I have a form in my HTML page and I require a number of checkboxes. These are to be dynamically generated from an Access database. The code below will work but it will only create a single row. How can I include the <TR> tag inside the loop - I'd probably want 4 cells per row
I have a web page using frameset split into few pages. And I want to generate one page of HTML code and send it through email. My question is have to generate a HTML page using asp?
I have the start of a function inside <%...%> then half an HTML table, then some other (unrelated) asp code inside its own <%...%> tags, then the rest of the table, then the end of the function in its <%...%> tags. its not working, have I made a grave error? see below:
[CODE]<% function OutputForm() %> start of table HTML, then <% unrelated code which works on its own%> then the rest of the table, then <% end function %>
Is nesting some ASP code inside a function OK? I'm fairly certain certain the nested code is not the problem. I suspect I either have a syntax error (roll-on 4 hr debug) or you just can't do what I've done.
at index_left.asp there are menus and above the menu table, there is another table for me to display user's name once he/she logs into the system. to see the login page (login.asp), user has to click Login on the left and login page will appear on the right. but after user has logged in, his/her name never appear on the right place unless i refresh the page.
I am generating a report in HTML, that my users can look over AND if they want to, store in their own Access dbase. Thing is, I do not know how to "read" that whole html page into a var and store same in a field in Access.
This is really puzzling me; I am developing a site for a client and have uploaded it to a remote server with ASP enabled; I and my friends do not have a problem diplaying the output HTML from my ASP statements however, my client is unable to see it. He says he can see all the other page (CSS layout) but is unable to view the content (output HTML) from my ASP statement. Now I am clever enough to know that ASP is server side, so I cannot understand why he can't see it- and he has tried this with two of his computers. The only possible explanation that I can come up with is that he may have Javascript disabled in his browser as my pages contain a small amount of Javascript.