Fungus1487 55 Posting Pro in Training

how are you displaying these items ?

Fungus1487 55 Posting Pro in Training

but you still wont be able to align PART of the text differently to another part. Not in the same textbox anyway.

Fungus1487 55 Posting Pro in Training

i dont know why you would need a dll but anyway.

you will need to do 3 things

1. basic page with your textbox in. Then use the following javascript to pass a query to the server along with your variable of what has been entered so far in the textbox. This is done using the GET method or passing a variable in the url.

// ########## STORES THE XMLHTTP OBJECT
var xmlhttp = createxmlhttp();

// ########## CREATES AN XMLHTTP OBJECT
function createxmlhttp() {
	var xmlhttp;

  	if(window.ActiveXObject) { // INTERNET EXPLORER
    	try {
      		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    	} catch (e) {
      		xmlhttp = false;
    	}
  	} else { // OTHER BROWSERS
    	try {
      		xmlhttp = new XMLHttpRequest();
   		} catch (f) {
      		xmlhttp = false;
    	}
  	}
    
  	if (!xmlhttp) { // RETURN THE OBJECT OR DISPLAY ERROR
		alert('there was an error creating the xmlhttp object');
  	} else {
    	return xmlhttp;
	}
}

// ########## MAKE AN ASYNCHRONOUS CALL USING THE XMLHTTP OBJECT
// ########## THE VARIABLE STR BEING THE TEXT ALREADY ENTERED
function searchforwords(str) {
	try {
  		// PROCEED ONLY IF OBJECT IS NOT BUSY
		if (xmlhttp.readyState === 4 || xmlhttp.readyState === 0) {
    		// EXECUTE THE PAGE ON THE SERVER AND PASS QUERYSTRING
    		xmlhttp.open("POST", "autocomplete.aspx?text=" + str, true);
    		// DEFINE METHOD TO HANDLE THE RESPONSE
    		xmlhttp.onreadystatechange = handleresponse;
    		// MAKE CALL
    		xmlhttp.send(null);
						
  		} else {
    		// IF CONNECTION IS BUSY, WAIT AND RETRY
    		setTimeout('searchforwords("' + str + '")', 1000);
  		}
  	} catch(e) {
  		alert('ERROR: ' + e);
  	} …
Fungus1487 55 Posting Pro in Training

i cant really say i like one genre more than another as it also depends on how im playing it. Computer based games then personally startegy is where its at, whereas consoles i like action/adventure/rpg im guessing others will have different preferences too.

Fungus1487 55 Posting Pro in Training

1. they are not the same
2. nope as the browser still needs to read the html markup
3. xsl is mainly used as template form else there would be no real advantage of going to the trouble of setting it up
4. i believe xml and xsl are just at there birthing stages as xslt 2.0 released they will find yet more uses for it also noting that xml is pretty damn common on the desktop side of things aswell.

Fungus1487 55 Posting Pro in Training

the only way i use is to set a session variable of the current time then everytime a postback occurs check this time is greater than (now - 20 mins) and if it is let them continue else destroy the session. works for me.

Fungus1487 55 Posting Pro in Training

and the problem with searching a user the way Fungus has explained is that the user's password is not case sensitive. Do a test. Make the user's pass UserCaseSenseTest and try to get a result with: usercasesensetest

You will get a result, even though the cases are different.

By executing a scalar and retrieving the pass (if there is a user, else this will not execute), you can then compare the strings with case-sensitivity.

no one would sensibly store a plain text password in a database.
it would have some level of encryption and this would usually deal with the case sensitivity as and encryption would generate different values for upper/lower case.

Fungus1487 55 Posting Pro in Training

if you do consider formatting your drive there are plenty of tutorials like this >> which can take you through it step by step. just google it.

Fungus1487 55 Posting Pro in Training

I'd be willing to bet that the compiler takes a Select Case and turns it into an if-elseif-else chain.

INFARCTION is correct this is exactly what happens. the syntax required is just considerably less

Fungus1487 55 Posting Pro in Training

yes javascript or perhaps flash.

you could not achieve this with php

Fungus1487 55 Posting Pro in Training

ive been asked by a company to help them with emergency work. it simply is converting photoshop designs into css templates does any one have any idea what i should charge for doing this as they have asked for a daily rate ?

Fungus1487 55 Posting Pro in Training

internal frame

correct.

it will be similer like some music web sites right?

correct.

I can also do this in gridview, with different links to the uploaded file, am I right?

correct.


happy hunting.

Fungus1487 55 Posting Pro in Training

structured arguments are what make this forum thrive (aswell as its technical support) it is two differences of opinion and is more of a debate than an argument i mean no offence in what i post.

Fungus1487 55 Posting Pro in Training

What I mean is the built-in way of getting things done in the OS is a lot more simplified and requires much less direction from the novice user

vista painfully nurses you through everything and you think this is more streamlined?

Furthermore anybody who goes out in this day and buys a brand new PC with 256MB or even 512MB of RAM deserves to have it choke and cough on their expensive data for all eternity.

i agree more ram is a neccessity BUT throwing RAM at applications to make them run better is not an answer to poor software design.

Fungus1487 55 Posting Pro in Training

i have two friends with vista running dual core processors + 2gb ram and to run demanding applications alot of the vista features and services need to be turned off to run smoothly. streamlined? it has almost 3 times as many services as standard setup compared to xp which can handle everyday tasks with 256 mb and most major applications on 512 whereas min spec for vista an apparent 1Gb.

no matter how streamlined it may be it is overly fanciful and for this its performance decreases. i shall be sticking with xp for many more years to come or until microsoft decide to throw away free Ram with vista upgrades.

Fungus1487 55 Posting Pro in Training

sorry what i meant was to a user it would appear as www.domain.com/page.html instead of say .aspx

Fungus1487 55 Posting Pro in Training

you can embed media player in your page.
or build a flash mp3 player.
there are probably flash players already out there which can be dropped right in if you arent very clued up on flash. Most use xml files though which isnt a problem if you can pass the xml dynamically but if you feel this is too complex the easiest method is to embed media player (which is not friendly with all browsers) and requires the client to have media player installed.

<OBJECT id="MP3PLAYER" width="320" height="240" 
	style="position:absolute; left:0;top:0;"
	CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
	type="application/x-oleobject">
	
	<PARAM NAME="URL" VALUE="your file or url">
	<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">
	<PARAM NAME="AutoStart" VALUE="True">
	<PARAM name="uiMode" value="none">
	<PARAM name="PlayCount" value="9999">
</OBJECT>
Fungus1487 55 Posting Pro in Training

well those were the basics which you should be able to adapt upon. for my efforts ive posted it up for all to see.

http://www.daniweb.com/code/showsnippet.php?codeid=794

Fungus1487 55 Posting Pro in Training

if this is asp.net you wont get a file dialog on a web page.

best thing to do is as you have done print a list of files in the directory to the screen with a link for each one.

then have an iframe in the page. onclick of a link pass to the iframe the page you use to download and append the file path using GET method i.e.

download.aspx?filename=c:\mydocs\file1.jpg

then in the ONLOAD section of your web page codebehing you can use 'Request.Querystring('filename')' to attain this variable and perform the download.

this way you arent taking the user elsewhere when they download the file and it will look like its all integrated if the iframe is hidden.

in short an iframe is how most integrated upload download forms work on major websites.

Fungus1487 55 Posting Pro in Training

after re-reading you say you want them to download THE files.
the only way to do a batch download is either open a window for each file, create a zip file on the fly with all files inside, or have aprompt for them to download file sone at a time by selecting them

Fungus1487 55 Posting Pro in Training

well theres no file your just referencing the directory "Docs/##/EP/" ? try passing a filename through ?

also 'file.Length.ToString());' will not return the files size as its just a string variable you will need to do a

FileInfo finfo = new FileInfo(Server.MapPath(MyFile));
long FileInBytes = finfo.Length;

then use the 'FileInBytes' attribute to show the file length

Fungus1487 55 Posting Pro in Training

its very nice.

pointless.

but very nice.

Fungus1487 55 Posting Pro in Training

you can technically fake the interaction if thats what he means.

AJAX uses javascript to interact with a server side page. you dont actually see the page interacting with the javascript so it would technically be a html page. so to speak.

Fungus1487 55 Posting Pro in Training

i agree you can fix a problem before it escalates but due to the nature of this problem i 'assumed' the user has more than likely had there pc for a decent length of time knowing that many users pick up viruses of the like over time. for general stability and performance it is reccomended to reformat every 6 months. this is perhaps a little over the top but if the user in question has a problem and have had there system for quite a long period of time having performed backups for friends/family i know this is a great reason to do so.

and there was no no offence taken at all. we all simply give our opinions here.

Fungus1487 55 Posting Pro in Training

backup ?

i would never backup an entire drive as it was ?
surely any sensible person would backup personal and important files?

software/drivers can be installed again.

Fungus1487 55 Posting Pro in Training

1. backup
2. format
3. restore windows

assuming you are having lots of problems with many applciations on your home computer

Fungus1487 55 Posting Pro in Training

sorry to plug myself here but i am a web designer and i charge quite inexpesively. that said web design does not have to be an expensive outing. i understand alot of companies will rip you off. go freelance and you can find yourself paying a small % of what you would regularly find. and an entirely flash based website is something to be considered greatly before delving into it.

Fungus1487 55 Posting Pro in Training

and i hate comic sans >|

Fungus1487 55 Posting Pro in Training

Trebuchet MS 11px

Fungus1487 55 Posting Pro in Training
var date1 = new Date();
var date2 = new Date();
var diff = new Date();

diff.setTime(Math.abs(date1.getTime() - date2.getTime()));

return (diff.getTime() / (1000 * 60 * 60 * 24));

theres the basics given that date1, date2 are the dates you wish to compare

Fungus1487 55 Posting Pro in Training

you want to bind users from database to the Web.config file ?

why not when the login button is pressed perform sql statement "SELECT userid FROM users WHERE username = 'JOE BLOGGS' AND password = '123'"

then if a result is returned they are the correct user ? Theres not much point in binding a user to the config file at runtime.

Fungus1487 55 Posting Pro in Training

set your permissions to allow access to my documents.
saying that i remember not being allowed access to a servers My Documents folder even with permissions set.
use another file location i.e.
c:\WEB APP FILES\

Fungus1487 55 Posting Pro in Training

you would probably require a database to hold all your furntiure details which would then require a server side language to retrieve these details.
and yes you can do perspective changes in flash albeit it is not really a perspective change at all. You do not require a plugin to make 3d flash apps but it is highly recommended if you are new or even intermediate level with flash as it is quite difficult to get your head around. 3d flash

Fungus1487 55 Posting Pro in Training
Fungus1487 55 Posting Pro in Training

hello all,

i have been setting up reports to work with our intranet web application but after attempting to make the reports dynamic in the data they retrieve i have tried using a dataset and an xml file both return this error when i attempt to load the report document.

[LoadSaveReportException: Load report failed.]
   .F(String 	, EngineExceptionErrorID 
) +273
   .B(String , Int32 ) +64
   CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob) +1158
   CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob) +511
   CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String reportName) +123
   CrystalDecisions.ReportSource.NonHTTPCachedReportSource.GetReport(RequestContext context, Boolean bAddToCacheWhenCreated) +292
   CrystalDecisions.ReportSource.LocalReportSourceBase.GetPage(PageRequestContext pageReqContext) +201
   CrystalDecisions.Web.ReportAgent.u(Boolean N) +148
   CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e) +99
   System.Web.UI.Control.PreRenderRecursiveInternal() +77
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Control.PreRenderRecursiveInternal() +161
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360

my code for loading the document is simple and as follows

Dim rpt_report As ReportDocument
rpt_report = New ReportDocument
            rpt_report.Load("c:\inetpub\wwwroot\sam\TEMP\TESTING\REPORTS\CrystalReport2.rpt")

The file exists on the server and the strange thing is that if i set up a normal report where the report pulls the data via a connection it works fine. But using another method i.e. dataset or xml returns this error. always.

hope somebody can help me.

Fungus1487 55 Posting Pro in Training

try

google

'sell source code'

i got this

http://www.code-sell.com/

Fungus1487 55 Posting Pro in Training

wrong forum. seeing as your using a treeview control im guessing its asp.net try there.

Fungus1487 55 Posting Pro in Training

not to the general public. you need to find a company (usually a smallish business) who are looking to expand there products they would be the most likely to purchase source code. You just need to advertise it.

Fungus1487 55 Posting Pro in Training

well then if you no longer require the source code and you had some sort of market base then i rekon a company would invest in purchasing the source code so long as it is relevant and well documented.

Fungus1487 55 Posting Pro in Training

alot of companies sell their source code. (for a reasonably larger markup than they would sell software) but alot do especially when products get upgraded the previous software becomes 'old-hat' and you will find alot of business will purchase source code. But yes for a stable consumer product in the market a company should not consider giving away there 3 years of development.

Fungus1487 55 Posting Pro in Training

if you get chance to take a look at the code you should pick it up quite quickly as it is very c oriented and syntaxed.

Fungus1487 55 Posting Pro in Training

you cannot use javascript to do this unles syour using something like ajax. in which case you will require server side coding.

you could use AJAX to update the image every so many seconds.

google it and try some examples.

Fungus1487 55 Posting Pro in Training

i realise there is a semi colon inside the sql statement and after which is correct syntax for sql string then he appends the php line with a semi colon ?

does this affect the way php reads it?
if so then i have learned something new today.

Fungus1487 55 Posting Pro in Training

if were simply talking about web design then again i agree with SOS but for web application terms or other such i stand by the fact that popups can be incorporated to enrich a users experience.

Fungus1487 55 Posting Pro in Training

no. happy coding

Fungus1487 55 Posting Pro in Training

if i may ask why is using a semi colon at the end of an SQL statement a problem ? this is valid sql markup

Fungus1487 55 Posting Pro in Training

i agree with SOS that if you wish to do this without opening a popup then simply append your values to the path of the page calling then add an onload event to that page that checks to see if these variables are set. If so then fire away on whatever you wish to do with this info.

Fungus1487 55 Posting Pro in Training

frames are a tool for web development. Depending upon your profficiency and ability using frames is a far easier learning curve than AJAX which requires at least a moderate knowledge of javascript. Server side includes are another option but again. higher learning curve. If you have the time to learn then try one of these options. Albeit an AJAX solution is just as bad as a frameset as this reuqires the user to run javascript.

as sagedavis has pointed out you can use the GET method to pass a variable i.e. an id number or the value of the select html form object to your frame which then when ran on the server you can check to see if this variable is set and return appropriate data accordingly.

This seems the 'easiest' approach.

Fungus1487 55 Posting Pro in Training

the implementation i stated opens a popup and passes 2 values throught to a function located on that page. are you doing the opposite and trying to obtain two values from the parent of the current window ?

Fungus1487 55 Posting Pro in Training

where are you pulling this information from ? is it hard coded or ar you using a server side script i.e. php, asp