No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
80 Posted Topics
Re: [url]http://www.asp101.com/samples/xl_data.asp[/url] | |
Re: Yeah, thx. I'm with you, kdelta. It's remarkable how you can forget such a simple thing over and over again...*jeez* ;-) | |
Re: A webhosting company provides services and storage space for whatever contents you'd like to put on the internet. If you want to make data available on the internet the only real alternative to using a webhosting company is to set up your own web server. | |
Re: I always use this: [URL="http://www.quirksmode.org/js/detect.html"]http://www.quirksmode.org/js/detect.html[/URL] And then I believe this should work: [CODE]$(document).ready(function() { var str = ""; $("select option:selected").each(function () { str += $(this).text() + " "; }); $(".display_text_here").text(str); if(BrowserDetect.browser == "Explorer") { // optional include version number in criteria: && BrowserDetect.version == "7" $(".select") .mouseover(function(){ $(this) .data("origWidth", $(this).css("width")) … | |
Re: [URL="http://lmgtfy.com/?q=jsp+get+ip+address&l=1"]Ever heard of Google?[/URL] | |
Re: If you mean the browser window menus, like "File", "Edit", "View" etc. then the answer is no. You cannot modify parts of the browser window from javascript. You change window size and write to the status bar (both of which is a big 'maybe' in Firefox, since the user can … | |
Re: Alongside the price you could send a timestamp with the request. In database you would have columns to hold: Product name, current price, time of last price/bid, etc. User A loads the product page. You show him the current price, but also saves the "time of last price/bid" to a … | |
Re: [CODE]var rowCounter = 0; var columnCounter = 0; for(var i = 0, len = 999; i < len; i++) { if(some prime number logic returns true) { rowCounter++; // increment row counter if(rowCounter >= 10) { // if ten rows have been written rowCounter = 0; // reset row counter … | |
Re: First of all: be sure to call it javaSCRIPT. Java and Javascript are two very different things that share just about nothing beside the first four letters in their names. Script you find on the web may easily interfere with script already on the page. Use the Firefox Error Console … | |
Re: I've never heard of the problem you're describing. I always do it slightly different myself, though: [CODE]function ajaxRequest(strURL, strAction, strAdd, object) { var xmlHttpReq = false; var strRequestUrl = strURL; var self = this; if(strRequestUrl=="") strRequestUrl = strAjaxRequestFile; if (window.XMLHttpRequest) { // Mozilla/Safari self.xmlHttpReq = new XMLHttpRequest(); } else if … | |
Re: [CODE]var counter = 5; var avail = document.getElementById['available_array[counter][0]'].value;[/CODE] The second line of the above means: Assign to variable named "avail" the value of the document element that has id "available_array[counter][0]". I guess that's not what you want to do...I can't think of any case where naming an element "available_array[counter][0]" would … | |
Re: Welcome to the wonders of web development. We would all like that every browser interpreted and supported css, javascript and vector graphics in the same way...but that's probably never gonna happen. I there really is only one real way to do it: trial and error. Identify what elements behave differently … | |
Re: This works: [CODE] SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE UpdateNewValues -- Add the parameters for the stored procedure here @OldValue nvarchar(100), @NewValue nvarchar(100), @OtherValue nvarchar(100), @OtherValue2 nvarchar(100) AS BEGIN If @OldValue = @NewValue BEGIN If Exists(Select PrimaryKey From TableToUpdate Where PrimaryKey = @NewValue) BEGIN Return -50 … | |
Re: [QUOTE=kanuri1;1119671] [CODE] If dr.HashRows Then dr.NextResult() While dr.Read() Response.Write(dr(o).ToString) End While Response.Write("available") Else Response.Write(" No room available! ") End If conn.Close() [/CODE][/QUOTE] [QUOTE]here i wants to show the room numbers by using the following code but it is not working.[/QUOTE] That's not really a helpful description. You should tell us … | |
I'm trying to create a virtual directory in an asp.net 2 application....and I'm about ready to explode. My company is hosting several web sites, and I want all of the sites to be able to share a directory of commonly used files, so that I won't have to include all … | |
Re: This' from an old guest book i wrote. Not the most stream lined code ever, but should give you an idea.... [CODE]<% Dim adoCon Dim rsGuestbook Dim strSQL Dim adoCon1 Dim strEmail Dim strSQL1 Dim rsEmail Dim testv Dim test1 Dim intRecordspp Dim intTotalRecords Dim intTotalPages Dim intPageNum Dim strBlah1 … | |
Re: Don't know if on-the-fly images resize is actually possible with asp (maybe with some kind of third party component installed), but it is possible with php. Example: [url]http://www.tutorialized.com/tutorial/Thumbnails-in-PHP/788[/url] | |
Hi. I have a custom control that inherits from TextBox and implements ICallbackEventHandler. The control is kind of an extended ajax autocomplete/suggestions one. Aside from the Text property of the Textbox I have extended the control with a Value property. The idea is that a Hiddenfield control is assigned a … | |
Hi, Does anyone know of an easy way to make a databound gridview display multiline textboxes when editing rows instead of the standard singleline ones? I can't use predefinded edit templates, since the gridview is to be absolutely dynamic. That is, I never know how many columns wil be in … | |
Re: Upload files in classic asp requires some sort of upload component to be installed one the server. Smth like [url]http://www.aspupload.com/[/url] will work I've never been able to find a free component myself. If you're using a commercial hosting company they probably have an upload component available, so check out their … | |
Re: Making a dynamic select option is actually quite simple [CODE]<SELECT> <? @ $db = mysql_connect("localhost", "smth", "smth"); mysql_select_db("database_name"); $strSQL = "SELECT * FROM select1options ORDER BY name"; $rs = mysql_query($strSQL); $nr = mysql_num_rows($rs); for ($i=0; $i<$nr; $i++) { $r = mysql_fetch_array($rs); echo "<OPTION VALUE=\"".$r["name"]."\">".$r["name"]."</OPTION>"; } ?> </SELECT>[/CODE] You could then … | |
Re: Forgive me not answering your question, but I'm curious as to why you would even consider hiding the source of a form from the user? If you're writing "sensitive" data into the form, and that is why you want to hide the source from the user then you're simply doing … | |
Re: What about the IIS (Internet Information Services)? It runs asp. IIS is not installed as standard but is included on the Windows XP installation CD. Go to Control Panel -> Add or Remove Programs -> Add/Remove Windows Components. In the dialog check the IIS option and click next. After installation … | |
Re: This appears to be pretty simple to me, so maybe I'm not getting what you're trying to do. But anyhew, I'd do smth like: [CODE]Dim intCount intCount = Request("intCount") ' user entered how many fields shold be displayed For i = 1 To intCount ' for the rows For j … | |
Re: check that the internet user account on the server has permission to write to the directory in question. On a Window Server the user account that need permissions set is called "IUSR_" follwed by the machine name. Right click the dir -> Sharing and security -> "Security" tab -> "Add" … | |
Re: use javascript. [CODE]<a style="cursor:pointer;" onclick="document.forms['formname'].submit();">test</a>[/CODE] And then you can always change the form action or store some data in hidden form field to send to the server. | |
Re: running the aspnet_regiis should not be necessary if the .Net Framework was installed properly on the server. A common error in these cases if an incorrect customErrors web.config section, insufficient user right, or an incorrect authetication method. (...and then this post may belong in the asp.net forum? ) | |
Re: You can put an "onchange" javascript event on combobox 1 that submits the form. Then serverside you can read the value of the chosen combobox 1 value, read out values from the database, and create new markup for combobox 2. [CODE]<script type="text/javascript"> function postForm() { document.forms["smth"].submit(); } </script> <form name="smth" … | |
Re: ....but for starters you need the correct .NET Framework installed on the machine running the IIS. Also you may need to setup an IIS application to run the web site in question. As regards VWD: I myself have no experience with the 2008 versions, but trying to open a 2003 … | |
Re: There's no need to use DataSet for a simple operation like this. This should do it:[CODE] Dim conn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\wwwroot\scms\database\scms.mdb") : conn.Open() Dim insCom As New OleDbCommand("INSERT INTO services (col1, col2, col3, col3) VALUES('" & txtServiceName.text & "', '" & txtSinhalaShortTag.Text & "', '" & txtTamilShortTag.Text & "', … | |
Re: This is an asp forum, ammarcool...not .NET. [CODE]<% set fso = server.createobject("scripting.filesystemobject") set file = fso.opentextfile(server.mappath(".") & "/data.txt", 1) data = file.readall() file.close lines = split(data, VbCrLf) response.write "<table border=1>" for each line in lines subline = split(line, ",") response.write "<tr>" for each val in subline response.write "<td>" & val … | |
Re: You should never execute code without evaluating it first. Since a checkbox has only two possible values a simple if...else eval will do just fine. Smth like: [CODE]strSQL = "INSERT INTO tblHome (memberID, towncity, towndistance, towndirection, propertytype, flatfloor, flatblock, nobedrooms, nobathrooms, maxnoofpeople, carneeded, carexchange, smoking, swimpool, petcare, childrenallowed, plantcare, additionalinfo, … | |
Re: [url]http://www.daniweb.com/techtalkforums/thread29525.html[/url] | |
Re: The session variable can be set practically anywhere. I'd set it in the page.load section. To update the variable when the selected dropdownlist value is changed you have to do a postback. Just put an onSelectedIndexChanged event on the dropdownbox in which you set the session variable to the selected … | |
Re: Depending on the conn-driver somtimes you can get unwanted results by evaluating with "=" on string values. I personally always use "LIKE" as in: [CODE]strsql = "Select ssn From cwct07 where ssn [B]LIKE[/B] '" & Request.Form("ssn") & "'"[/CODE] On another note it is good practice to close your objects before … | |
Re: One of the major cons of MySQL is the fact that it is open source...and thereby free of charge. Also it is both faster and more stable than Access. You can download it from [url]http://dev.mysql.com/downloads/[/url] It is true that it has no front end, but you can download a graphical … | |
Re: [url]http://www.daniweb.com/techtalkforums/thread26473.html[/url] [url]http://www.asp101.com/samples/xl_data.asp[/url] | |
Re: Maybe it is not a filter at all. Could be just a poorly scanned image from a news paper... ![]() | |
Re: Don't use frames.....ever! It messes things up, and SEO goes down the drain. If your webhoster don't a server side language....find another one. ![]() | |
Re: You figured it out yet? The error tells you that RS2 is not open...that mean none of your evaulations return true. Either rewrite your code to include an "else" the no nested conditional action, or check if RS2 is open before "rs2.eof". You can do this by "rs2.state" | |
Re: You don't learn anything by having someone serve you the answer. You learn by doing. Find some examples for starters, and solve whatever problems you encounter as you move along. If you truely are trying to learn on your own, you shouldn't ask for complete solutions, but rather solutions to … | |
Re: Sounds odd.... Normally the size of the expanded select element will fit in the screen/window. But you could add the "size" attribute to the "select" element. That'll make the "size" number of options visible always and add scollbars. But then the options won't "float" as they would normally, and that … | |
Re: [QUOTE=weezie;259752] [code] <% 'Create an ADO recordset object strSQL = "INSERT INTO tblComments (FaxNumber) VALUES (" & Request.Form("FaxNumber") & ")" adoCon.Execute strSQL Set adoCon = Nothing [/code] can anyone advise me what I need to do?[/QUOTE] Since it's a text column in the DB, simply try enclosing the "FaxNumber" in … | |
Re: CSS "filters" are IE-only. Use the "visibility" att. Something along the lines of this should work: [CODE]<style> #dropdownmenu { position: absolute; top: 20px; left: 20px; visibility : hidden; } </style> <javascript> function showDropDown() { document.getElementById("dropdownmenu").style.visibility = "visible"; } </javascript> <a onMouseOver="showDropDown()">show me now</a> <div id="dropdownmenu"> item item item </div>[/CODE] | |
Re: [QUOTE=msniner;259277] I am trying to 1. Display the news snippets (think this part is ok for me) 2. Display the user's comments below each and every news snippet 3. Count the number of comments per news snippet Should I use SQL and its "Count" and "Where" functionality to do #2 … | |
Re: As far as I remember you need to set write permissions on the database directory specifically as well. Not just on the virtual dir but on the actual folder. Depending on your server OS and user account config you may only need to "share" the folder and set write permissions. … | |
Re: There's no need for a recordset if you know what row to delete. [CODE]set adoCon = server.createobject("adodb.connection") adoCon.open "blahblah" strSQL = "DELETE FROM Product_tbl WHERE ProductID = 30" adoCon.Execute strSQL adoCon.Close [/CODE] | |
Re: post code. Don't expect anyone in this forum to open attached files that can contain macros!! | |
Re: First: do you have a database with the info to report, that you can access via asp? Simple asp and sql is all you need here. |
The End.