IE's Default
I'm using a binary stream to send down a file from the web server. I've been having trouble with IE and getting it to recognize my file. I've added the filename as a paramater(?filename=file.jpgw) to handle IE's mime type mangling, but I'm still having trouble with IE's default Save As Type being HTML. When we send down a jpgw (geo-jpeg) file IE wants to save it as an HTML file. I've got the correct filename showing in the Filename box, and if I choose the All Files option from the Save As Type drop down then the file is saved with the correct extension. I'd like to have the All Files option choosen by default. I know it's just a couple of clicks but we have some noivce users that can't seem to get that
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Default Value
if for list box, check box or radio button. in asp. how can i write to make it a default value??
Default
I wrote an application that generates reports.It then presents a page where I click a button [javascript:print()] to open the print page. However, I have a fixed printer and would like to know how to print to the default printer without me clicking anything. So the page will just load up and print. Or when I click a button. I just don't want the select printer screen to pop up. Much similar to clicking the print button on top of the address bar in Internet Explorer.
Default.asp
my new site uses default.asp, instead of using index.asp. this is how my old site was done. now i get error 500. is this because it is trying to find index.asp or because my database isn;t workjing properly? i'm tired and being stupid i think. it's reall probably the database, but i just want to make sure in my sleep deprived state.
Specify Default Button
I want to make it so that when the user is looking at a rendered ASP page and they hit the ENTER key, one of the buttons on the form gets "clicked". In other words I want for the user to not have to click on the button, and just hit ENTER instead. How do I specify the button?
Combo Default Value
This is the code for a combo box, and I would like to make certain value the default value, so that appears unless users select somthing else. call rs.Open("SELECT * FROM Trim.dbo.luDecisionMaker ORDER BY DecisionMakerName" _ , myCon) do while not rs.EOF Response.Write("<OPTION value=" & rs("DecisionMakerID")) if rs("DecisionMakerID") = nDecisionMaker then Response.Write(" selected") end if Response.Write(">" & _ rs("DecisionMakerName") & "</OPTION>" & Chr(10)) rs.MoveNext loop rs.Close It comes from a table and has PropertyDetailsID(1,2,3,4) and PropertyDetailsname(Fee, 5,10,Other) and for example "Fee" needs to be the dafault value.
New User In DB Default
If a new user is added to the database through a webform, and they would usually have immediate access to member only services, is there a way to make them nonactive in a MS access db until an admin activates them?
Default Compenent
I am wanting to compress/zip a file up on the server and email it. Is there a default component that should be installed on the server that will compress/zip files? If not is there FREE ones that anyone would suggest?
Default Value In Field
with "select @@IDENTITY" i get the value of the last field insered.. i would like to get also the field.name
Default Include
Is it possible to add a default include file to every ASP-page servered on IIS? So I do not have to modify every page.
Default Value For Combo Box
How do I make a value the default value for a combo box in ASP 3.0? What I have below does NOT work, yet I've seen it in HTML file examples before (and works if I put it in a HTML file by itself, but not if I use it in a ASP 3.0 app. <select name="cboCompany" style="text-align:right; font-size:8pt"> <option value="08">08</option> <option value="09" selected="true">09</option> <option value="33">33</option> <option value="18">18</option> <option value="17">17</option> </select>
Default Image
The following code works fine for PC but not for MAC. It won't select the default image from the DB. When I check the DB there looks like there is Binary information there but nothing is displayed ....
Change The Default
Using a DetailsView to update data in SQL 2005, How do I change the default "Update" hyperlink to a more user friendly button?
Default Values
I need a string of code that will allow me to eliminate,exclude,or ignore the default values that are sent in my web form.It is an order form that has hundreds of items.The items not selected show up looking like this in my email box. ANCPW122=0 p1E1=0.00 ANCPW182=0 p1E2=0.00 ANCPW183=0 p1E3=0.00 ANCPW242=0 p1E4=0.00 and I have to sort through all of them to find the few selected.can any one tell me with some type of loop to eliminate the values returning 0 or 0.00.
Default Port
i set up iis 5.0 on my local machine(win2kpro) (on a pvt LAN) at the default port. when i try to access asp it gives http 500 error. i have been able to configure cgi scripts but asp still doesnt work.
Default Dates
I have two drop down lists on one of my pages.One of the them lists all the MONTHS in a year, second one list a number of years starting for 2004. Users couldn't be bothered selecting that every time they are filling it in for submission, so they want me to popolute the two fields with the current month and the year automatically. Plus the month has to be selected as a current month up to the 7th of every month,on the 7th it changes to the correct month. of basically if date is < 07/08/2004 = July.
Default Date
I need to display (and use as a hidden field) the date on a page. How do I change if from MM/DD/YYYY (e.g. 12/25/2004) to 25/DEC/04 . I'm putting it into an Oracle date field and it doesn't like the date in the first format.
COM Components Available By Default
Is there available some list of COM components available to ASP pages, that are available on virtually every IIS machine? I am wondering wether there is some right-away-available API with cryptogrphy functions. The particular function I need is MD5 hash estimation for files. I have one written in JScript, but it would be very slow for larger files.
Missing Default Property
I got the following error when access an asp page. Response object error 'ASP 0185 : 8002000e' Missing Default Property /downtime_category-old2.asp, line 0 A default property was not found for the object.
Retrieving Field Default Value
I have 3 text fields in an Access db with each some default values. I have an edit page where user's can edit those fields. The problem am having is if for instance I empty the field in the edition page, since am not allowing null or empty in them, when I save of course I receive an error telling me that this field is not allowing empty value. Now what I would like to be able to do is this, when I save I'll check If the request.form("thefield") is empty, if so then instead of saving the empty value I want to return to the default value set in the db.
Default ASP Page Displays But Others Don't
I have setup an IIS 6 server and I am trying to migrate a pretty basic website to it. It will display any ASP page that I set as the default page, but gives a 404.2 for any other ASP pages that I link to. What am I missing?
Changing Default Weekday
By default, Weekday setting starts on sunday which is 1. How can I change to use Weekday to start on monday?
Setting Up A Default Media Dir.
All I want to do is set a session variable in my default page which points to a directory on my server where all media for my site is contained. Now, I used a session variable to do this, and fell into a trap. Say I set it up like this: Session("mediadir")="D:dev<sitename>media". Now, when anyone looks at my site, the mediadir variable is trying to point to their d:dev.... What should I do. I know it is crazy, but I have mental blank.
List Box With Default Selected Value
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?
Showing Default Option
How do I display 'Please Select' as the default value my code is below.Code: <option selected>Please select</option> <%SQLStmt = "SELECT magcode FROM Magazine ORDER BY Magcode" Set rsDistMags = Connection.Execute(SQLStmt) Do WHILE NOT rsDistMags.EOF%> <option value="<%=Trim(rsDistMags("magcode"))%>"<%If Request("magcode") = Trim(rsDistMags("magcode")) Then Response.Write " Selected" End If%>><%=Trim(rsDistMags("magcode"))%></option> <%rsDistMags.MoveNext Loop%> </select>
Set Default Date Format
I'm migrating a system from a mssql to MySQL backend and just ran into problems with ASP's date format. Which is quite different from what MySQL expects to get for a datetime column. And there's calls to now() all over the place. What I'd like to know is whether there's a way, and if there is what that way might be to change the date output format (DD-MM-YYYY HH:mm:ii) to match MySQL's expectations (YYYY-MM-DD HH:mm:ii).
Solve The Default Page
i using the iis on my comp as a server.if i dun have a index.html or default.html page in my directory then when i enter //localhost then all files will be shown.now i put a index.html page inside the directory.. it will open up the index page when i enter localhost.i wan to link a page from the index.html page to the main login page.how do i do it?
Load Default Image
I am loading some images from my database,however some records don't contain any images. in these circumstances, instead of a blank space appearing,I would like to load a default image; how do I do this? Is it something like? Code: If Len(rs.Fields("ImgPath1")) > 0 Then
Loading Default One Time
I store default information for a particular web site. Everytime a user accesses the page, the table is queried to display the correct links, graphics, etc. What I would like to do is when the web starts (or the first time a user comes to the site) query the database for this information and store it in some session. Then when any other user comes, it pulls from the session rather than quering the database every time.
Default Image Script
ive got a database that has some image references in it however i need a script for the image in the page so that if there is no reference to the image in the database a default one is shown the script i have is <% if Image = "" then %> <img src="catalogueimages/default.gif"> <% else %> <img src=<%=Image%>> <% end if %> i have tried changing the "" to Null but it still doesnt work.
Changing Default Folder
I have installed IIS on win XP pro. however I cannot find a control panel like PWS on w2k to change default folder. How do I do that?
Add The Default ALL In Drop Down List
i want to add the deafault "ALL " in the list, how to add? and when i select ALL , it would print out all data in Name field. <% sVar = Request.QueryString("Name") 'request from Name field If Not Request("Name") = "" Then strSQL = "SELECT Name,TagName,MinTLV FROM Folder where Name='" & sVar &"'" rs.Open strSQL, conn %>
Default ScriptEngine To Jscript
how do you set the default ScriptEngine to Jscript instead of vbscript ? (server side) visual studio assumes the default as vbscript if I dont have the <%@ Language = "JScript" %>
How To Set Default Value In Request.form?
I have got a form where I offer a default date (01.01.2004) and visitors can change it and make queries in the database. After changing this, the customized date should be displayed in the form instead of the default one. If Request.Form("BeginDate") <> "" then iBeginDate = "01.01.2001" end if .... <input name="BeginDate" type="text" class="form" value="<%=Request.Form ("BeginDate")%> Now the entered date keeps, that's fine, but when at the first visit there is no default date.
How Do I Set The Default Command Button?
On an aspx page, I notice when the page opens there is no default command button (press enter & nothing happens). However, once I set the focus on a text field one of the command buttons becomes the default (press enter & the command button is executed). How do I define which button should be the default and can I change it depending on the text box I am in?
Replace Blank Form Value With A Default Value
Just wondering if there is a way to give a default value to a form text box if it is left blank. I can set a default value for the textbox but then it shows up in the textbox and that is not what I want. I would like it just determine if the form is blank and change it to the needed value accordingly. I'll ask a second part to this question as well in case I am going about this all wrong. What I have is a search page where a user can search for names from a database. However if I have 5 textboxes of different criteria to search from then if all of them are filled then it would have to match a record in the database exactly.... but if only one or two textboxes are used then the other textboxes basically are now set to a wild card. In this case they would be "%". Also to make things more complicated I am using the frontpage DRW for the SQL query.
Set Default Date And Time For DTPicker
I have a web page with users selecting start and end date/time. This is being done with DTPicker controls. However, I am having trouble setting initial default values for the date and time. When the page loads, it should show yesterdays date in the control along with 00:00:00 for start time and 23:59:59 for end time. ie. Since today is 4/5, the controls should be set to 4/4/2005 00:00:00 and 4/4/2005 23:59:59. However, Anything I have tried seems to set the default value to the current date and time. Any Ideas?
Setting A Default Option For A Comb Box
I need to set a default option for a combo box that is not the first item in that combo box. Below is an example. I can put the code below into a simple HTML file and it works fine. It does NOT work in a ASP 3.0 app. I have tried two seperate ASP apps as an example and NEITHER work. Code:
Default Save As Type And Filename
I have an asp page that produces output from a database. This allows a simple way for the user to save the data to a text file by going to File->Save as... The default save as options always defaults to a particular filename and the save as type is always html, therefore the user has to manually type a filename and choose Text File (*.txt) as the type. I remember I was able to overide ride these options with the following code. Response.ContentType = "text/plain" Response.AddHeader "Content-Disposition", "inline; filename=myfilename" This doesn't seem to be working for me anymore. Any thoughts?
ASP Checkbox Default Checked From Access
I have a contact list in an Access database. I have a table that contains contacts a table that contains categories and a third table that is a join table that assigns users to categories in a many-to-many relationship. I have a script that creates a series of checkboxes from the categories table so when a new contact is added the user can select multiple checkboxes, categories, to place the user into. I want to be able to edit a contact by clicking their name that takes them to a ContactUpdate.asp form that is already filled with all of the values for the contact. Their name, address, phone number etc. however I want the checkboxes,categories, that the contact is already in to be selected on the ContactUpdate.asp page. I need the user to know what categories the contact is already in. Here is the code I already have that creates the checkboxes. When a contact is added so I'm sure the contact update will be some variation: Code:
IE's Default For Save As Type Incorrect
I'm using a binary stream to send down a file with ASP from the web server. I've been having trouble with IE and getting it to recognize my file. I've added the filename as a paramater(?filename=file.jpgw) to handle IE's mime type mangling, but I'm still having trouble with IE's default Save As Type being HTML. When we send down a jpgw (geo-jpeg) file IE wants to save it as an HTML file. I've got the correct filename showing in the Filename box, and if I choose the All Files option from the Save As Type drop down then the file is saved with the correct extension. I'd like to have the All Files option choosen by default. I know it's just a couple of clicks but we have some noivce users that can't seem to get that.
Default Value In Textbox Not Working Like Expected
I am building an application for inserting and updating one field in a database. The database is in SQL Server and I am using Classic ASP. I have a dropdown listbox that is populated with names, when a name is selected it automatically submits the form and then replaces the dropdown listbox with the name of the resident selected. Now I need to take a field and split it into 2 textboxes. This is where my problems begin. The field is named ProblemO and looks something like this, Code:
Assigning A Default Value To A Function-variable
Well, it's quite simple, it's easily done in C, but in ASP (and VB in general) i haven't been able to see it done... function setvalues(var1, var2="a", var3="b") if var2="a" then response.write("Var2 wasn't defined") end if if var3="b" then response.write("Var3 wasn't defined") end if end function I hope it makes sense, and that someone has the solution to it...
How Do You Display A Default Error Page Using Asp With IIS 5.x
Many of my pages use URL and/or server variables to run recordsets to serve up dynamic content. If a user bookmarks that page and then comes back later, they would get a end of record or no record returned generic IIS error page. Can anyone tell me how to add a defaul error page?
Preset The Default Font Size
How can I set my default display font size, type for a web page, or a<table>?I dont want to write <font size=....> everywhere, especially inside each <td>.I know this is HTML question.
DB Search On Default.html Page
I've taken over maintenance of a website running on NT 4, IIS with ASP pages and an MS Access database, but I don't have much experience with this platform. I've got the ASP down pretty well and know SQL, but am having a problem figuring out how to get data for the main page. On the main page (default.html) I want to display a random business from our database of businesses. Since it's a .html page how can I run server-side code to run the query and select the business? Am I stuck with CGI or is there some other way to do this? I don't want to redirect from the main page to another page, either.
Disabling Default IE Window Buttons
I have a window that pops up from an asp page... and stays open for 5 seconds then closes... is there a way to not allow the user to close this window manually before the 5 seconds.. ? Code:
Data Source Name Not Found And Default ..
Mircosoft OLE DB Provider for ODBC Drivers [0x80004005] [Mircosoft] [ODBC Driver Manager] Data source name not found and default driver specified This is the connection string im using and ive install an odbc driver connect_string = "Driver={Mysql}; Server=localhost; Database=Tester; " set dbConn = server.createObject("ADODB.connection") dbConn.open connect_string
|