| |
| |
| |
|
Comments:
<0> not alt.***.p***words? <0> damn <1> hey... cl***is asp question im trying to figure out how to replace everything after a period foind in a string... i need to somehow do a replace(filename, RIGHT(thefilename,INSTR(thefilename,".") - Whatever length remains, "csv" . any ideas? <2> werbs: you're on the right track ..
<2> but what you really want to do, is find the left stuff, and append whatever you want to the right <2> or at least that's one way <1> i think this will work. <%= REPLACE(TEMP,RIGHT(temp,LEN(temp)-INSTR(temp,".")),"CSV") %> <2> for your own sanity, it may be worth your while to break them into variables <2> such as strFileName, strFileExt <2> so you can use them elsewhere as well <2> lines of code like that (spaghetti code) can be very difficult to comprehend later <2> anyway, im out <1> hmmmm yeah but im trying to do this before opening the FSO. <3> does anyone know the asp syntax to set the querystring client-side via js? <4> hello all <4> is anyone here? <5> how can i response.write an entire file? <6> Open it with the FSO, read it into a string, then write it
<7> Hi, is here anybody alive who will help me with some script? I'm beginner in ASP programming and need help <6> Ask a question and you'll see <7> OK, i have some MS SQL Database and write some information from it to page. Now i need to make "only i think" some form, to sort these information on one click on title of column where i write these info i need sort it asc on next click desc <7> Any solutions? <6> Easiest way to do that is to create a link on the page that will add SortBy=*columnName* to the querystring of the page, and refresh the page <6> Then, when building your query, append the "ORDER BY *columnName*" to the end of the query <6> Of course, *columnName* is just there as a placeholder, and would instead be the name of hte column to sort <7> OK i understand, but how to do that on one click is sort asc and on second dsc? <6> also p*** the direction in the query string <6> dir=ASC or dir=DESC <6> Then you can flip it back and forth <7> ok, go try it :) <6> have fun <7> thanks <6> yep
Return to
#asp or Go to some related
logs:
ben athlek qeej gif #worldcup teamspeak F4 BE #politics #beginner johnny06.hd bartpe fixboot fixmbr #freebsd #politics
|
|