If Checkboxes Not Selected Then Show Error, Whats The Best Way?
I have a form and if none of the radiobuttons are selecte or any of the txt fields are empty i want it to display an error, also if the entry in a txt field is not numeric i want it to display an error, if there are no errors then i wanted to display a message
what is the best way of going about this??
View Replies
ADVERTISEMENT
how to show a drop down list with a selected value that is derived from the database? Is this correct? When I do this, it shows "Mastercard" always, even when its "Visa" in the database.
<select name="ccType">
<option value="Visa" selected="<%=rs("cardtype")%>" >Visa
<option value="Mastercard" selected="<%=rs("cardtype")%>">MasterCard
</select>
View Replies
View Related
i get "system cannot find the file specified" error. iam sure that the path of file iam looking for is true. i guess this is a friendly message thrown. when i turned off the freind messages in IE (client side) i still get the same error. is there any way that i can see the exact error so that i can debug.
View Replies
View Related
how can i turn off 'Show Friendly HTTP Error Messages' in IE Browser to get a better error message?
View Replies
View Related
I'm on the last piece of this project, when a user goes to this page "myfolder.asp" it shows the contents of their folder.
If they don't have one created yet, I want to give them a friendly message: "You have nothing in your folder!" , and continue with the rest of the HTML code, but then ignore the Repeat Regions and dynamic text thats inside the HTML.
Right now I have it woking if the table exists, it shows the records. If I delete the table, I have this message at the top of the screen and nothing else: "You have nothing in your folder!"
Here is the code:
View Replies
View Related
whats the best browser for mac OS X?
View Replies
View Related
A few weeks ago I was told in this forum that ASP would be a great solution to a large web site. I purchased a book about ASP.Net but have also seen info on ASP. Can you please tell me what is the difference between the two?
I don't know computer programming at all. Dreamweaver MX is the program I use. Can ASP be done with a WYSIWYG program? I have set up databases in Access & built web sites with DW MX I am not sure how to tie the two together.
View Replies
View Related
I want to be able to do the following, but im not sure how in asp.
<?php
class Cart {
var $items;
some functions.
}
?>
<?php
class Named_Cart extends Cart {
var $owner;
}
?>
View Replies
View Related
How can I make such a bold statement? Two words: Buffer Overflow.
In the very first class I took in programming (those many years ago), we were berated class after class about proper bounds checking to prevent buffer overflows. What this means in simple terms is that every time my program asked the user for input, it had better check to make sure the input fit in the place I reserved for it. If I asked for a ''Y/N'' and I got a ''yes'' or a ''no'', those extra characters had to go somewhere and I had better be prepared for them.
View Replies
View Related
It sounds like you are looking at the properties of the WebSites main branch, when you need to look to the first element under this branch (opening it) to the next "step down", and check the properties of the child element (mine is called "default web site", but yours perhaps has been changed from that).
It also contains an "advanced" button on the Web Site tab (right next to the "IP Address" field) which allows "multiple" identities, which is the part which I couldn't to work with 100% consistency.
View Replies
View Related
i have a browse button on a web form that the user can upload images via ftp. the user clicks on the browse button to browse a file on his computer and the text field displays the path - "mycomputerdesktopmyimage.jpg".
i need to get the name of the image and insert the name into my database. so i need to be able to search the string ("mycomputerdesktopmyimage.jpg") and insert all the characters after the last "" which will give me the image name. ive tried just writing out the string in asp (jscript), but it gives me "mycomputerdesktopmyimage.jpg" without all the backslashes.
how do i get those backslashes back into the string? my second question is how do i search for the characters after the last backslash? i know i can use a substring on this, but how can i use it for the last backslash?
View Replies
View Related
I've done several sites with ASP that use an Access database, and it has worked fine so far. I will be developing a much larger site and I need to know if Access just isn't going to cut it anymore.
Is MSSQL what I should use instead? How much is too much for an Access database? What are the differences in coding for something besides Access? (is it just in the connection string, or what?)
View Replies
View Related
anyone has any idea what IMS Package is all about? i read that The IMS Package consists of two major elements: a special XML file describing the content organization and resources in a Package, and the physical files being described by the XML.
The special XML file is named as imsmanifest.XML, together with all resources, when import, will be extracted from a single .zip file.
Does any one know where i can get such kind of .zip files so that i can check what exactly happening inside?
View Replies
View Related
Drop down value is selected and a query is performed on that value - I want the selected value to stay in the drop down field. Right now it goes back to the first value in the list once the submit button is clicked (it queries correctly).
When I come into the page there should be no value in the drop down list and when a value is selected it should stay in the field.
View Replies
View Related
I have a form named: 'formhandheld' and a select with the name: 'pricing_option'.
I'm trying to make the select <option> thats based on 'axDD3current' selected.
what's the code ? Probably more of a JavaScript question than ASP
document.formhandheld.pricing_option.options[<%=axDD3current%>].selected;
the above doesn't work
View Replies
View Related
I have 2 drop down lists here. Supposingly, upon the selection of the 2nd drop down list, I should be able to see textbox entry allowing user to update data being displayed at the bottom. But in my case here, i see no response upon the selection of "selType" which is my second drop down list.
But both also don't work. So any suggestion on how can I retrieve the 2nd drop down list' selected value
View Replies
View Related
I have combobox that those value is based on my database. So i want to get the selected value in order to do another matching for the SQL statement. May i know how to get it? Is it just use for example WHERE column=' "&combobox&" '? use the combobox name.
View Replies
View Related
I have an aspx file where i've put a placeholder element. On load i create
dynamically a table which contains a checkbox and a radiobuttonlist in each
tablerow . The radiobuttonlist contains two items (yes,no). Both the
checkboxes and the radiobuttonlist are NOT autopostbacked ( .autopostback =
false).
When i press the submit button a sub is run. My problem is that i can
not get the selected items in the radiobuttonlists.This is caused cos in the
page_load i call the sub that dinamically recreates the table described above
and so all values are reset (there is a rdb.item(0).selected=true line in my
code.
If i try to remove it, the radiobuttons keep their values or not,after
each submit, without a pattern!). I've also tried to keep the values in a
collection, instasiated in the page_load but i couldn't do so cos the table
(that contains the checkboxes and radiobuttonlists) is not recognized at the
beggining of the page_load (i guess it's not an object yet cos the sub that
creates all that is at the end of page_load)....
View Replies
View Related
By ASP
How can I get the dropdown(control'name)'s selected value?
What is it's property'name
View Replies
View Related
sourinsen is correct. that's the way to split values in your combobox.
View Replies
View Related
I have a drop down select box that gets filled from database. I have to add "All" to this list which does not come from database. Also the default selected value should be the second value that is stored in array. For ex I have array of Countries names as America, Indonesia,china, Canada. My array gives me the value Myarray(intcount,0)(intcount,1) as America and so on (two dimensional array).
I want Indonesia as the default selected value when the page loads. Also I need to hardcode All at the end. Upn submitting the form the selected value fromthe drop down should get selected.
View Replies
View Related
I've got this listbox and this text field on an ASP page. Now I want the item I click on in the listbox to appear in the text field and I can't find the code nowhere for what seems to me such an easy thing to do.
View Replies
View Related
i need to get the selected value of dropdown from one page and i want it to be displayed in another page.
For that i used the below cade:
<%= request.Form("country") %>
country - drpdown name
But its not getting displayed.
View Replies
View Related
I am displaying few values in a List box. I would like to put first item as selected by default. i.e <option value="some value" selected>Name</option>
Here is my code.
<SELECT size=15 id=select1 name=select1>
<% do while not Rs.EOF %>
<Option value=<%=Rs("value")%>><%= Rs("Name") %></Option>
<%
Rs.MoveNext
loop
%>
</SELECT>
View Replies
View Related
I have an asp-page where I want the user to make a selection with a listbox. When the user changes to another listboxelement the page gets reloaded and depending on the selection a different content is shown.
I got this working so far but when the page has been reloaded the listbox always displayes the first selection in the list and not the one which the user selected. Code:
View Replies
View Related
I have different templates for different companies to be sent to the customer. first i get all the templates from the DB by giving: Select templates from tempates;
Now i want the user to select one..may be we can have a radio button displayed near the textarea in which i will be displaying the templates from DB. Once the agent selects one of the templates to be sent,that template should be sent as an email to the customer.
How do i go on achieving this ,with good formatted template in the DB?
View Replies
View Related
I have a requirement where I need to have windows authentication
enabled for only few ASP pages of my Site (Virtual Directory), rest of the
pages should be enabled for anonymous access (No Authentication Dialog).
Could some body guide in achieving solution for this.
Flow Steps
1. User visits the home page (One.asp page) No NT authentication dialog
should appear.
2. The home page will have some Hyper links to other pages, on clicking on
the Hyperlink it should prompt for NT Authentication Dialog (asking windows
UserID and Password)
3. Once the UserID is validated by authentication process it should show the
Target ASP (Two.asp) Page. The Target Page will have a link Named 'Back'
which will redirect the User to 'One.asp'
4.Once user is redirected from Two.asp, if user clicks the Hyper Link it
should prompt again for the authentication (Previous login information should
be discarded, it should prompt again)
The Challenge i face is
1. Finding a solution to implement authentication for selected pages.
2. Logging off the User so that to Prompt the NT authentication dialog again.
View Replies
View Related
I have a form with some textfields & checkboxes.One of the text field allows the user to select a file.When the user submits a form , I am inserting all textbox and checkbox values in a database.But, while performing insert I also want to upload the selected file on web server.Does any one know how to do that?
View Replies
View Related
I have a Multi select box which I have populated with a list of choices. Is it possible to have a second Multi select box which is initially empty, yet when the user selects values from the first Multi Select box, they appear in the second multi select box?
I'm sure I can easily do this by just posting the selection to a new page but I'd like to dynamically display the selected values on the same page.
View Replies
View Related
Can anyone help me to pass selected date from a list box on one page to another using perl and asp?
View Replies
View Related
I have a page that is showing X number of records. I have a column with a check box in front of each record. I would like the user to be able to select certain records by selecting the check box in front of the record and then have the user hit "Submit." They will then be taken to another page in which only the selected records are shown.
I'm having trouble with my SQL statement. I'm not quite sure how to word my SQL statement since I do not have a field in my recordset that points to the value in the checkbox.
In other words, I'm not sure how to carry the value of the checkbox over into my SQL statement when I don't have a field for it. Do I need to add a field, and then update the field on a confirmation page before I use a SQL statement to show me the selected records?
View Replies
View Related
I have a dropdown menu with parents' names, and on the same page when a name is selected (through an onChange event), another drop dpwn boix containing student names change according to the parent selected.
But I want the Parent drop down box to contain the parent's name who was selected, and although the event works, it just keeps displaying the first name of the list of parents even after a different parent is selected.
View Replies
View Related
I have a list box with a number of values (4) on a ASP form, the value is stored in a database field.
When a form to amend the record is loaded, I would like to display the list box with the currently held value as the seleceted item in the list box. e.g.
4 items in listbox A B C D
B selected and saved.
Amendment form displayed, List box contains A B C D, with B highlighted.
Is this possible with ASP?
View Replies
View Related