Control Repeating Random Question
I have random questions that appear with each click and it works fine accept that I can't get it to NOT repeat the same question twice in a row. Code: ....
View RepliesI have random questions that appear with each click and it works fine accept that I can't get it to NOT repeat the same question twice in a row. Code: ....
View Replieshow should i retrieve the repeating value in the text box to be the values in the combo box?
example:
text box values : A A A B B A C C
combo box values : A B C
how can write so that even though it is a repeating value but only display those key values
I would like to be able to control an asp text box control's name attribute.
I know i can manually type the whole string
<input type="text" name="username" value="" />
but then i can't use the validation control on the inputs. [free javascript ]
PHP Code:
beeing from swedeni´ve the text in swedish. But I hope u understand.
I´ve a calendar
http://www45.brinkster.com/ovaasp/cal.asp
Now I want to list events, so each event gets to the correct date (i.e in the correct
table-cel)
I´ve managed to list in the wat I want
http://www45.brinkster.com/ovaasp/list.asp
But when I trying to put the events in the calendar, I can´t get the repeating events
correct . U can see for yourselfs http://www45.brinkster.com/ovaasp/error_jun.asp
if you check next month + button "forward"
Eken Cup, i Solna should be writen to 3 - 7th jun
help me with making a repeating "dynamic list/menu" . i use dreamweaver and when i put a "repeat region" on a "dynamic list/menu" the page just keeps loading forever. do i need to change the default coding dreamweaver makes...iv been trying to figure this out for literally weeks, and im about to give up. I know it can be done becuase iv seen it done.
View Replies View RelatedI have a repeating region set up in Dreamweaver for products. At the minute, when processed the records come out like this (one after the other)
x
x
x
x
x
However, I want to have three in a row (until end of table)
x x x
x x x
x x
Is there anyway to accomplish this?
What the hects going on on my page? Why are there so many blank backgrounds?
View Replies View RelatedCan someone show me how to repeat records from a table without using Dreamweaver. Everything I find on google about repeating regions relates to Dreamweaver.
What I'm wanting to do is pull everything from a table in my DB. Then I will be putting those fields in a table on my page. Let's say the table is 2 rows and 4 columns. The first row is a header. The second row is where the returned recordset fields will go (in each of the 4 columns in the second row. Now, let's say there are 6 records in the DB table which have been returned by the recordset. I want those six records to be placed into the table on the asp page. How do I repeat the second row?
I have been creating new GUID's through this block of code
set typ = server.createobject("Scriptlet.TypeLib")
guid = TRIM(MID(cstr(typ.GUID),2,36))
Response.Cookies("guid") = guid
Response.Cookies("guid").path = "/"
Response.Cookies("guid").expires = now() + 1
set typ = nothing
Lateley, some visitors to the website are actually receiving the same guid.How is this possible? Is there a process that may be used to reset the guid delevery sysem?
Is there anything I can do in the Select Query statement?
View Replies View RelatedI have a repeating table set up to display the results of a recordset. What I want to do is "attach" a layer on the side of it and have it be a different color with different text in it based on one of the results in the recordset.
I.e. say I have a field called "reponses", if it's value in one table is 1 I want a green layer with the word "yes" in it positioned next the table, in the next table if it's value is 2 I want a red layer with the word "no". Is something like this even possible?
I am passing values from Supplier_Details.asp to Supplier_Products.asp, when I click to view the details of the supplier I want, their values goe to the other page ( supplier_product)that I want all his products to be displayed.
so far I can pass values and could be displayed, no problem but when it comes to displaying all the products, it;s then where I am stuck, with the previous tutorials ( nested repeat region) I can get it working and I tried to have that example working for all this, so far it;s not, so is it possible to do it ? Code:
I am generating a series of tables in CSS. The tables should repeat
themselves for a number of times governed by a counter that is
calculated at runtime by the ASP code. The problem is that I have used
top margins to position the tables in the ASP page.
So the tables when repeated super-impose on the tables that are
already placed at that margin position. Can someone suggest me a
better way out to resolve this?
However, what I want to do is include a request.querystring("ID"), so that IF an ID is defined, eg ID=3, , it will display the relevant (not random) information. I've tried this every way I can think and get type mismatches, etc etc. It's probably really simple but I can't see it.
<%
limit=3
redim link(limit)
redim image (limit)
link(1)="xxx"
image(1)="image1.jpg"
link(2)="xxx"
image(2)="image2.jpg"
link(3)="xxx"
image(3)="image3.jpg"
randomize
random=int(rnd*limit)+1
%>
<center>
<a href="<%= link(random) %>">
<img src="<%= image(random) %>" border="0"></a>
I just wanted to know whats the best way to generate 50 or say X amount of number at random without having to repeat any of the previous number...
so far I've the following:
[VBS]<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
function RandomNumber()
dim theRandom
Randomize
'RandomNumber = Int((upperbound - lowerbound + 1) * Rnd + lowerbound)
theRandom= Int((99 - (0) + 1) * Rnd + (0))
if (theRandom<10) then theRandom = "0" & theRandom
RandomNumber = theRandom
end function
%>[/VBS]
and then I've this in the body of HTML doc: Code:
We have the need to have a random token (a 16 char alphanumeric field) to be used as the key for one of our SQL tables. I have created a random token generator, however after only 3 months in production, it appears that we had an instance where a token that already existed in the tables was created. There are 3810 records currently in the database so it isn't like there are billions of records there.
I contacted an old college buddy of mine who is a mathematician, and he claims, assuming that random really does mean random, that the chances of getting a duplicate token are 1 in 79.5 septillion (79,500,000,000,000,000,000,000,000).
So my conclusion is that this was either a complete freak of nature occurance, or my random generator isn't really all that random. Here is the code behind how I am generating this: Code:
I am trying to generate a random number. I am using randomize and then rnd to return a decimal number between 100 and 120. This will give me a longitude. I am doing something similar to generate a latitude.
I created this on a page which refreshs every minute. I put these points into a map and they are showing up in groups of straight lines. Since rnd is time based will refreshing every 60 seconds return similar numbers?
Would anyone be able to give some guideance in ASP code as to how I would repeat a section of input fields in a form based upon the number of guests that are attending an event?
Basically, what needs to happen is if 3 guests are attending, I need the Name, address, city, state fields to repeat so they can be filled in with information.
Then all of the information from the whole form is submitted which returns an email to the administrator of the event.
can anyone please advise me how i can create multiple tabs under one page?
View Replies View RelatedI am using VBScript for ASP. The control value must be case sensitive? The following example should print the "fname" value, but if if I change "submit" back to "SUBMIT". Then it works fine.
<%
If (Request.QueryString("submit") = "submit") Then
Response.Write(Request.QueryString("fname"))
End if
%>
<form action="formtest.asp" method="get">
<P><input type="text" name="fname">
<P><input type="submit" name="submit" value="SUBMIT">
</form>
I have a select element in a form on a page with some options. When i submit thet form and the target asp page is executed, i want to find retrieve all the values in that select element on the page...?
thru request.form("sel") i am able to retrieve only the vaue selected by the user.
I am having a few problems with the Timer component in ASP.NET. I can get it to work in the C# windows application of visual studio but not in the ASP.NET.
The thing is a number of people will be logged into the website (its a game) so each person will need to view the same timer counting down to zero.
This is the code in ASP.NET. The timer only seems to be counting during page load.
How do i get it to count for a number of minutes while the game is in progress????
This is my sample code:
I need help. I don't know how to using asp paging control function to display result pages format as like as yahoo.com or google.com.
For example.
1,2,3,4,5,6,7,8,9,10 >>
<< 11,12,13,14,15,16,17,18,19,20 >>
I have C# windows control libarary (Dll), which I could able to load them
into browser using <objecttag with following syntax (In aspx page) and user
able to see the contolr properly.
<object name="chk" id="chk" classid="http:GSIM.dll#GSIM.gsimManager"></object>
I would like to load a client C# windows control libarary (Dll) instead from
webserver. (something like OCX)
So is there way I can load .NET control from client machine?? (Assum that,
the libarary exists in client machine GAC or in physical path)
My problem is my active control will download to IE6 sp2, but not download
to IE6 sp1. On IE6 sp1, ther is no popup to ask for download.
how to use grid control in asp 3.0
i am using visual interdev 6.0
I created a stored procedure (sp) in my sql database. The sp accesses a table in another sql database. I ran the commands to add the linked server and add the linked login. The tests work fine within the database. Using Visual Web Developer, I'm trying to link my Sqldatasource control to this sp and I'm getting the error: "Could not find server 'xxx' in sysservers. Execute sp_AddlinkedServer to add the server to sysservers." Can you tell me how to fix this error?
View Replies View Relatedwhen a error happen in my site, how to report it to my mail etc.?but for all error..
db,fso,string error...all and all
The login control fails password validation from both the Web site
administrator as well as from the control itself when the application
containing it is run.
The validation error message produced is: "Password length minimum: 7,
Non-alphanumeric characters required: 1."
This occurs when running the app both running in IIS and file based. What's
'odd" is it seem like a client side problem.
I have a menu control that has two Menu choices
One is "View History Items"
the second is "PDA"
My problem is as you roll the mouse over the menu options, the second
one works only if your mouse is actually over the text "PDA". Since it
is much narrower than the first item, the entire width lights up like
an active link, but the link won't work unless your exactly over the
area that has actual text. So it appears to the user who clicks too far
to the right that nothing is happening (which it isn't)
I need to create a treeview on a database management .aspx site that
when the parent is clicked, it expands to display the many associated
records with it. Aka, it pulls info from not one, but two sql server
tables. Further, these rows must be editable.
Does anyone know of any source control software (besides Visual studio) that allows a multi-user environment to be able to check out/in files and keep version control?
View Replies View RelatedMy website is on a server that places Cache-Control: private in the
Header of the pages that are served. I see these pages are not cached
by Google (the Google Toolbar Cached Snapshop of Page function).
Is this directive from my server preventing Google from caching the
pages that have it or do I need to look into some other problem?
Thanks in advance for your input/feedback.