Restrict The Size Of A Select Box

I have a select box that displays the phone numbers of an sms directory, Which has a limit of 100 . how do i restrict the size of the select box to 10 ? Code:

<select name="address_book" multiple id="address_book">

<option value="1234567">1234567</option>
<option value="1234567">1234567</option>
<option value="1234567">1234567</option>
<option value="1234567">1234567</option>
</select>

View Replies


ADVERTISEMENT

Changing Font Size On <Select> Tag

Is there a way that I can reduce the size of the font on the <select> html
tag? The reason is I have a data that have almost 100+ characters.

View Replies View Related

File Size And Folder Size

I'm using Windows 2000 server n IIS I'm Using FileSystemObject of ASP in Server Every File and Folder has 2 Size when we get properties of any 1 actual size and Size on Disk.now my problem is when i get the file size from ASP object it give Size value but when i try to get folder size it gives size on disk and both values are different.

I'm creating a size to access limited size to upload files so i just check the folder size and then get size for those which are going to update by user then i will less those size to actual folder size to get remaining size.

View Replies View Related

How To Restrict Pages

i need help about restricting pages other than home page

i have a project inserting resume details here

i have 4 pages include home page

if i want to restict all the pages except home page

while starting

how to write asp code for that one

View Replies View Related

Restrict Access Using Asp

i have a signup form in Macromedia flash which posts the details from input boxes to a database, this is the asp file Code:

View Replies View Related

Restrict Access By Ip

I have an ASP page that I want to allow access from only from a certain block of address, can someone get me started?

View Replies View Related

Restrict Acess

I'm trying to restrict access to a page based on a session variable called MemberUserID, so the way I thought of doing it was to say if MemberUserID is not equal to this value, then you would get an error page, but the operator I'm trying to use is giving me an error:

<%
If Session("MemberUserID") != Name Then
Response.Redirect "error.asp"
End If
%>

is there a better way to do this?

View Replies View Related

Restrict Browser

How can one restrict what kind of web browser users use to view your web site. I only want users to be able to browse my web site using firefox. I know this is possible because I've seen others do it. I'm just tired of it working fine on firefox and not right on other browsers.

View Replies View Related

Restrict Access

I know I'm doing something simple wrong here and it's doing my head in. Don't know if anyone can help without me posting yards of code? I am using normal login page in dreamweaver which uses record id as the username and users password as password.

This all works fine logs in and forwards to /ammend.asp?id=7295 which is also restricted, then the user can update their record, no problems so far. The problem is that if I change the ?id= to another number 7687 for instance in the browser then the user has access to that record 7687 when I though it should go back to the login page.

View Replies View Related

Restrict Asp Access To Resources

I am running a virtual hosting server. The configuration of server is
as follows:

Windows 2000
IIS 5.0

All the virtual hosting sites are running as seperate user ie for the
site www.xxx.com is running under xxxIIS and www.yyy.com is running as
yyyIIS. I have also taken some precautionary file system security
measures like the group everyone is not present in c: and directories
corresponding to sites. But at the same time I can not remove everyone
access from the full system, I will need to keep them in few
directories.

This can lead to an asp code that is present on the server to do stuff
like browsing through the file system, reading the contents of file
etc. For ex if I have everyone acccess to c:winntsystem32 then any
person on the server can write code to view the contents inside
folder.

I want to know if there is any way to restrict the script belonging to
one virtual hosting site to access only the contents of that site.
example the site www.xxx.com present inside

c:inetpubwwwrootwww.xxx.com directory and can access only the
contents inside this and the child directories. Is this possible? I
searched the on google but could not find any link that gives me any
information on this. It will really be a valuable information to me.

View Replies View Related

Restrict Site With Login...

I have big problem because i need to link site and one service. I have customer with his site and about 1000 html pages which he want to be restricted. So we prolly need to do changes in that html pages...

Other thing is that part of site would be avaliable via payment thorugh SMS service. SO basicaly u go to one site, send SMS with instructions, and that service send u SMS with random generated password.

Then user need to go back to site and login using that random generated password. Can this be done and in what way. We have this system working in php but i dont have much ideas how to use this in ASP specialy with random passwords. I have some asp scripts that restrict pages but ofc users and pwd must be defined in access/SQL which is problem here regarding i dont have user/pwd i only have random generated code:

View Replies View Related

Restrict Multiple Logins

I have a problem with restricting multiple users to get access to my site with the same username and password.

I allready set up a table getting the UserID of the user and putting it in the table, therefore restricting access for future logins as long as the users Session is still valid.

Now to my problem. When the user logs out everything is great, but when he just closes IE the session is still valid and the field in the DB will not be deleted. I have put a SQL in the Sessoin_OnEnd in the global.asa file, but since this site is a micro site in another folder than the root, the global.asa can effect the main site aswell. And it will take at least 15 minutes before he can login again (and I do not want to set session.timeout any lower).

View Replies View Related

How To Restrict Unauthorized Downloads

I have a website setup which also provide ability to download latest version
of our Software by logging into the webpage. All latest softwares (ONLY ONE
FILE .EXE for each Software) are located in the "/Download" folder of my
website. Customer will login to website and the ASP page decide the software
that this user has purchased and privide ONLY that Hyperlink to download the
latest Version file.

My problem is if somoe body know the path and file name then they directly
put the URL in address bar and will get latest file. How do I restrict that?
Please suggest all possible solutions.

View Replies View Related

Restrict A File IP Address

i would like to know if it is possible to restict a file to an
IP address. i.e: It would only open on a system based on its IP
address.

View Replies View Related

Restrict Access Problem

My problem, I've combined "log in" and "access levels" to restrict access to
certain pages, using the built in "log in" and "user authentication,
restrict access to page" features. But I find the after login I constantly
get redirected from the restricted pages. Code:

View Replies View Related

Restrict Access To PDF Files

I would like to restrict access to certain PDF files on my webserver. How can they be protected if they are in a "public" directory? For example, lets assume you have your html and asp pages for http://www.xyz.com saved on the server's hdd @ c:xyz.comhtdocs. If you place thefile.pdf in that directory, then all the "unauthorized" person would need to know is the pdf file url, i.e., http://www.xyz.com/thefile.pdf.

Assume I place the pdf file in the following directory on the server c:xyz.compdfs. Is there a way in ASP that I can allow certain visitors to view that file Remember, the asp file would be located on at c:xyz.comhtdocs.

View Replies View Related

Restrict Number Of Characters

How can I prevent a user from entering more characters than are allowed in a database field.For instance,if a field only allows 6 characters,how do I prevent the user from trying to submit the form in a user friendly way?

View Replies View Related

Restrict Accessing All Pages

i need help about restrict page in asp

i have one project RESUMES INSERTING INTO DATABASE

for that one i have 3 pages in that one while starting.it must show 1 page only how to do that one.

View Replies View Related

Restrict Page To Open By Date????

I'm trying to find out how I can make a page to be restricted to open
between Saturdays 12:05 pm until Sundays10: pm... and that.. EVERY WEEK...
is there any way at all to do this or is it just simply impossible.???

View Replies View Related

Forms: Restrict User Selection - How?

My boss wants me to create a form that will contain about 50 condo listings. He wants me to place a restriction on the form as to the number of Condo listings a user can select/request. Is that possible? If so, what will I need to do or use to make this stunt possible?

There will be several pages that will make up the form. There will be data being passed between the forms. To do that I would use ASP (I guess).

The items on each page would be different. Lets say on page1 there are 20 available condos located in area A. On page2 there are 20 available condos located in area B. On page3 there are 10 available condos located in area C.

The user goes to page2 sees a condo that he/she would like information about. They select that condo.

The user has now selected -one- condo from page2.

If the user goes to page 1 or 3 and selects a condo from those pages when the user hits the Submit button, the program should not allow the page(s) to submit since they have selected more than one condo. How can I make this possible?

View Replies View Related

Restrict Insert If Record Exsists

Can someone point me in the right direction on this? There are 3
fields in the DB: model, rma, bagqty. If the values on a certain row
are I530, 1108, 50 and a user goes to input the same data I dont want
the insert to be allowed and force a new insert.

I dont need someone to do this for nor do I want that, just need a push
in the right direction.

View Replies View Related

Total Restrict In My If Statement, Not Take Into Account &?

I want to display something strictly if the value of pid = 4, except anything after this, for example index.asp?pid=4&nid=3.

Still the if statement continues to display I am sure because pid=4 still exists is there a method to be strict, for example not & ....

View Replies View Related

Restrict Linked Image Width

I'm creating a forum based site with basic BBCode features, but am concerned that misuse of the [ img ] tag will mess up my layout. I do not want to go down to road of users uploading images, but want to allow them to embed images from flickr, photobucket etc.

So, is it possible to restrict all linked images that are say, over 400 pixels wide? I've been racking my brains and have had trouble coming up with any solutions. Is it possible?

View Replies View Related

How To Restrict Access Level To Specific Web Page Using ASP

how can i retrict user to only access the web page iif and only if they have the username and password, they neeed to login before can access the certain pages. How is the coding for that web pages?

View Replies View Related

How To Restrict Running Multiple Copies Of A Web Application?

I have developed an ASP web application. If I sell this out to my client, how can I make sure that he doesn't run multiple copies of it. That is when I sell the web application my client should be restricted from running more than one copy.

View Replies View Related

Restrict Non ASCII Character In Text Area On Postback

Am trying to restrict user from entering non ASCII character in the text area. Say if the user entered non ASCII character then on the form post back it should show them the message like:

"non ASCII character between the word1+word2"

View Replies View Related

Error Using <select></select>

I have written some code which should dynamically build a table which is then populated with questionas and possible answers. The format of the answers will vary ie they may be in the form of a radio button which will be rated from 1-5, checkbox or a selectbox.

The first problem I have is if I do not comment out <select></select> I get an error message saying the page can not be found. when I do take it out I get asp timeout. Code:

View Replies View Related

How To Get Size

how can I get size a file from any sites.
http://www.domain.com/fileblablabla.zip
I want to know what the size of file is by using ASP..
is there any way ?
or is there any free component ?
(But it must cancel immediatily after getting the size of file..
because maybe its size can be 50 Mb

View Replies View Related

Url Size Limitations??

I am using variable passing through the url, and as it is getting larger, I am finding that occassionally some values are getting trimmed. Is there a limit to how long a url can be?

View Replies View Related

FONT SIZE

how can I get different font size in the form method "select", "input"
instructions working under ASP? because when I check with the browser is too
big in the table.

============================================
<FORM method="post" action="../gallery/default.asp">
Select a category:
<SELECT name=""CategoryID">
<option" value="">Select Your Gallery</option>
<OPTION value="3">Digital Package</OPTION>
<OPTION value="6">others</OPTION>
<OPTION value="5">test</OPTION>
<OPTION value="4">Traditional Package</OPTION>

</SELECT>
<INPUT type="Submit" value="View Photos">
</FORM>
==========================================

View Replies View Related

Image Size

I am having a problem with this code. The problem I am facing is that
the first image is displayed in its original size. But when I click the
next button, the next image not displayed in its original size, but
being displayed as 100 x 100 pixels, same goes to the 3rd picture and so
on. Code:

View Replies View Related

About Max Size Of Cookie

cookie has a limit size? if yes, how big?

View Replies View Related

Getting Image Size

I only need to know the height and width of the image.

It doesn't seem to be as easy as php's "getimagesize($imgFile);" method.

<%
'Copyright *c* MM, Mike Shaffer
'ALL RIGHTS RESERVED WORLDWIDE
'Permission is granted to use this code
'in your projects, as long as this blah
'copyright notice is included

function GetBytes(flnm, offset, bytes)
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFTemp = objFSO.GetFile(flnm)
lngSize = objFTemp.Size
set objFTemp = nothing

Set objTextStream = objFSO.OpenTextFile(flnm,1)
strBuff = objTextStream.Read(offset - 1)
GetBytes = objTextStream.Read(bytes)
objTextStream.Close
set objTextStream = nothing
set objFSO = nothing
end function

function lngConvert(strTemp)
lngConvert = clng(asc(left(strTemp, 1)) + ((asc(right(strTemp, 1)) * 256)))
end function
function lngConvert2(strTemp)
lngConvert2 = clng(asc(right(strTemp, 1)) + ((asc(left(strTemp, 1)) * 256)))
end function

function gfxSpex(flnm, width, height)
fileT=split(flnm,".")
if fileT(1)="gif" then
Width = lngConvert(GetBytes(flnm, 7, 2))
Height = lngConvert(GetBytes(flnm, 9, 2))
elseif fileT(1)="bmp" then
Width = lngConvert(GetBytes(flnm, 19, 2))
Height = lngConvert(GetBytes(flnm, 23, 2))
elseif fileT(1)="png" then
Width = lngConvert2(GetBytes(flnm, 19, 2))
Height = lngConvert2(GetBytes(flnm, 23, 2))
end if
gfxSpex=true
end function

if gfxSpex("images/urlogo.gif", w, h) = true then
response.write w & " x " & h
end if
%>

Which is a little bit shorter, and seems to work ok so far, but isn't there anything easier, like php's "getimagesize($imgFile);"?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved