Height Wildcard?
I am trying to show a series of movies on a web page. All of the movies are the same width, but have different heights. When I take out the width and height parameters, the pictures display fine, but the movies get the bottom cut off. When I put the parameters back, it stretches out the images to fit the entire box. Any way to make the height parameter a wildcard?
<<%=whattouse%> src="Upload/<%=(RS1.Fields.Item("xmedia_asset").Value)%>"
width="320" height="300" align="left" loop="false" controller="true"
autoplay="false"></<%=whattouse%>>
View Replies
ADVERTISEMENT
I have a script which checks the current page name and write out a certain class if it's true to achieve an active menu item effect.
I want to expand upon it a little and have it check for any pages beginning with business rather than list business_dir_info.asp?id=2517 where there are loads of ids. At the moment it's just set to check for business.asp which is the top level page, is there any sort of wildcard character I can use?
View Replies
View Related
Var1 's content can be "errorone" o "errortwo" or "good". I need to detect if there is "errorone" or "errortwo" with the If clause. How can I do that using the wildcard?
Example that doesnt work: if var1 = *"error"* then
View Replies
View Related
Dear all, if in asp. i wanna to use the command request.querystring to check the URl. For example, my item when passing to next form will be either 4 or 6 character. How do i tell asp what to do if the string pass 4 character and if it pass 6 character.
My code example for 4 character is A100, 6 character is A10001. different number of character will have to perform different task for me.
I try to use "?" as wildcard but it fail Btw if i had stored chiense character in ACCESS, but when it go thru asp n display on IE, it show "???" instead of the chinese character.
View Replies
View Related
I have the following SQL statement that returns a result set based on the exact input stored in a session variable
If reqname <> "" Then
strSQL = strSQL & "AND(ABR_REQUESTOR='" & reqname & "')"
The variable “reqname” is set to a session variable.
I amended the SQL to do a wildcard search instead of searching for the exact string stored in the Session variable:
I altered the SQL as follows:
strSQL = strSQL & "AND(ABR_REQUESTOR LIKE '" & reqname & "%')"
The problem is the field ABR_REQUESTOR stores the first and last name separated by a space...i.e. John Smith
Using the above SQL will return John Smith if I use J, Jo, Joh.
But, if I want to search for Smith by using S, or Sm, etc. it won't work.
I need to alter the statement to look for anything after a space?
View Replies
View Related
I have an Access database. I am using a dropdown search box. One of the options is "Search All States" and I set the value to %. In the recordset on the results page, I have the default set to %. Here is the SQL statement:
SELECT *
FROM ClientInfo
WHERE State = 'varState'
and varState = Request.Form("State")
However, I get no results when choosing this option in the dropdown Code:.
View Replies
View Related
In an ecommerce situation, when a category link is clicked, my results page shows the category name at the top of the page
This is working great apart from when a search is done without specifying category eg from the search page
So for example Results.asp?Category=%25&Keyword=&Submit=Search
This gives all products in the results page but just gives the last category name in the table as the heading
I would like to write a condition that just presents a static message eg �Results� when the search wildcard % is passed Code:
View Replies
View Related
I want to post a wildcard IP in a varchar field in my mysql table so when I call it in the script it shows up giving that entire range of IP's. I've tried doing it like.
24.129.184.* but it doesn't seem to work.
View Replies
View Related
Not sure if this is possible but, is there any way to search a variable like,
var = "I like to play jazz"
If "jazz" * = var then ( If the word jazz is included in the variable then)
response.write "Found Match"
end if
View Replies
View Related
what I want to do is get read a database entry and if it doesn't start with http:// then I want to include it.
I can't figure out what to use as a wildcard in the first line though
IF rsGuestbook("VisitorHome") = "http://" THEN
%>
<a href="<%=rsGuestbook("VisitorHome")%>" target="_blank">Name:
<%
ELSE
%>
<a href="http://<%=rsGuestbook("VisitorHome")%>" target="_blank">Name:
<%
END IF
View Replies
View Related
I'm trying to compare a form field from the previous page & write a response in the html on the current page. e.g
if (form field value) is like "Custom" then write Correct or else write Incorrect. Here's the code I have curently Code:
<%If (Request("RangeColour")) = ("Custom*") Then Response.Write("Correct") : Response.Write("")else Response.Write("Incorrect")%>
I've tried *, &, ? but they don't appear to work. I've also tried like "Custom*" but I receive an error about a sub or function not being declared.
View Replies
View Related
I have a little script that is supposed to check for a certain value in a db column, and then do something if that particular calue is present:Code:
...<%ElseIf rsIDK.Fields.Item("my_column").Value = "/default.asp" then ...
The problem is that my_column can contain up to 300 characters, so the code above doesn't work. What I really need is a wildcard at the end of "/default.asp" but I don't really know the correct way of doing this.
View Replies
View Related
I have a form where a user can choose one or more options from drop-down menus to search the db :
service
town
county
The id's are all numbers in a MySql database. I have put the default param for each search as % and this only changes if the relevant search option is chosen: Code:
View Replies
View Related
I created an ISAPI dll application to prevent SQL Injection attempts by
intercepting the HTTP requests and sanitizing both GET and POST variables (or
any combination of both) before the request reaches the intended code. This
is especially useful for legacy applications not designed to deal with MS SQL
Server Injection attempts. Though this application was designed with MS SQL
Server in mind, it can be used with no or minimal changes with other database
engines.
This ISAPI is only compatible with Internet Information Server (IIS) 6.0
which comes with Windows 2003. Windows XP uses IIS 5 engine which DOES NOT
support ISAPI Wildcard.
View Replies
View Related
I'm trying to pass the wildcard variable % to another page via
request.querystring.
When I go to pick up the variable through request.querystring, it will
never diplay the "%" if one is included. It will diplay any other
characters included in the variable though.
Code from page 1:
<%response.write "<a href='Page_2.asp?Severity=" & varCombo_Severity &
"&Owner=" & varCombo_Owner & "'>" & "<i> Go to Page 2 </i>" & "</a>"
%>
Code from page 2:
<%varCombo_Severity = Request.Querystring ("Severity")%>
<%varCombo_Owner = Request.Querystring ("Owner")%>
Result: No % wildcards are passed though to page 2
Any ideas?
View Replies
View Related
Is there an ASP way of extracting the height and width of a swf file so that
I can specify these dims when adding the whole OBJECT code to the web page?
View Replies
View Related
I've put a div red with some text inside a TD, but its height is less than 100% of TD height as you can see.
I've defined the following styles:
div.test { background-color:red; height:100%; width: 100%; }
table.test { border: 1px solid #CCCCCC; background-color:yellow; }
td.test { border: 1px solid #CCCCCC; }
does anyone know a solution ? Code:
View Replies
View Related
What css property can make a font taller or shorter?
View Replies
View Related
I used the iframe in main page. Everytime user click on any link in the page, only the content inside the iframe will be change. The problem is, the content's size(height) that will display in iframe is different. So i can't fix the size for the iframe. (i tried to put the iframe without fix the height for it, only part of content can be display - may be cause of i have few iframes in iframe).
If i fix the size for the iframe, some of page are unable to display nicely(as i don't want to use scrollbar). Anyone know how to solve this problem so the iframe can show it's content with it's height?
View Replies
View Related
Does anybody know of a way to get an image width and height without using a custom dll? we have aspJPEG on the server, and there are methods to fetch image width and height with that, but it only works with JPEG and i need to get dimensions for gif and png, too.
View Replies
View Related
I want to add image width and height into database when i am upload an image, i am using ASP script upload class how can i do this.
View Replies
View Related
I have an asp webpage that loads a few records from a recordset into a
table (each recordset a row). The table has 2 columns, the first
column is sort of a menu with menu items and a background color. The
second column contains the rows (ie. recordset rows).
When there are 1 or 2 rows in the table, I would like to expand the
height of the table to fit the height of the browser control, so that the
first column's background fills up the whole length.
View Replies
View Related
I have an ASP page which displays different images according to the querystring and the images are all of different sizes. However, in some browsers the image overlaps with the text next to it occasionally.
I guess by specifying the "width" and "height" of the image in the HTML should solve the problem. However, I do not want to store the width and height of each image in the database. (There are too many of them!) Is there any function I can use in my ASP page to obtain the width and height of an image?
View Replies
View Related
how to set a specific size for a page that you are linking with a hypertext link to open in a new browser?
View Replies
View Related
how can ASP automatically find out the width & height of an image? I want to create a Web page which automatically shows images from a folder and I want it to have a fixed size for the <IMG> tags, as well as listing the width & height below each image. Does it make any difference if I have both JPEG and GIF images?
View Replies
View Related
When I display the content of a table using a recordSet, I have trouble adjusting the height of my table to what it should be. If I have height="100%" my table is very small and nothing in it is displayed. I could use fixed size, but then if the size of my display changes with the recordSet, I don't want to go and change my height in all pages.
View Replies
View Related
is there any way of determining an image's width or height through ASP code alone and without the need of a third-party object?
View Replies
View Related
I want to make frame 100% Hight and 100% Width. (The user will not know that it's a frame) Please Tell me the Html code of this type of frame. I try to search Google about this. But I found only frame that split into 2 frames or 3 frames.
View Replies
View Related
I know there must be a JavaScript way, but is there a VBScript way? I asked here, because if there's a javascript way I need to also use VB with it...since I want to trim an image if it's over a certain size...
For example:
Picture from database: width = ? height = ?
Detect image size as width = 300 height = 250
Trim image down to 200 x 150
Example 2:
Image width = 300 but height is OK, at 150
Trim width to 200 ....
View Replies
View Related
I have a page where users can upload images, but sometimes the images are too small. How can get the height and width (in pixels) for an image? I've seen it done in PHP but never in ASP.
View Replies
View Related
Working in asp (not asp.net) I need to read the width and height of an image before they are displayed on the page.
I have a folder full of images that are dynamically put on a page and I need to read if they are landscape or protrait.
View Replies
View Related
I have a popup where I scale the image to a smaller size than original. Iused to set the img tag to width="50%". This no longer works in the current edition of IE on MS. On Mac IE it still does. Go figure.
So... I now need to set the width to a fixed value. I also need to adjust the popup to the value of the image height + some value to allow for text etc.
The quandry? How can I get the height and width of an image into a variable for use on the calling asp page.
View Replies
View Related
I need to show an image in the header of an asp page. If the image's width
is greater then 82 pixels, the header gets mis-formed. If I specify the
height for the image and it is smaller then 82 pixels it gets stretched and
misformed.
How do I solve this? At first I planned to write a vb-dll that checks the
image's height but since the image come's as a BLOD from sql-server tat is
a no-go.
Can I find the original height in the binary data from the blob itself?
View Replies
View Related