Using GetAbsolutePathName with File Input
Hello,
I have two asp pages and try to get the folder & file name which is
selected on the first page but when I select any file and press submit,
it shows the folder as "C:\Windows\System32\-filename-" but I want to
show actual folder. When I use "text" as the input type, there is no
problem. Also I tried to use Request. Form method only but it shows
only the file name not the directory. So I decided to use
GetAbsolutePathName too. But it doesn't work for me. I'll be glad if
you help me to solve this problem.
--name1.asp--
<html>
<head>
<body>
<form action="name2.asp"
method="post">
Dosya ismi:
<input type="file" name="fname">
<input type="submit" value="Submit">
</form>
</body>
</head>
</html>
--name2.asp--
<html>
<head>
<body>
<%
dim fs, path, name
set fs=Server.CreateObject("Scripting.FileSystemObject")
name=Request.Form("fname")
path=fs.GetAbsolutePathName(name)
response.write(path)
%>
</body>
</head>
</html> Tag: Get Object remote java class from HTA Tag: 320882
Web.config sections replace
how to replace the system.web section using MSBUILD?
I managed to change the appSettings and connectionStrings sections but when
i tried to replace system.web i got an error message reporting missing
system.web section Tag: Get Object remote java class from HTA Tag: 320879
Memory based file upload
Hello
This is probably a newbie question but please bear with me anyway...
I'd like to create an ASP form allowing an user to upload a file that
would then be sent as an attachment by e-mail to a preset internal
address.
What would be the best way to tackle this knowing that I have not
access to the file system (i.e. the file should be stored in a
temporary memory buffer) ? Obviously one has to think about limiting
the file size to avoid buffer overflows.
Any pointer welcome
Regards
--alexT Tag: Get Object remote java class from HTA Tag: 320878
asp to .net
I am converting code from asp to asp.net. Initially I decided to make
minimal changes. Code uses vbscript, so when I convert i substitute by Vb
and add declararation where it is nessary. However on this step i try to
keep original code. It works. But in one module i meet two starnge errorrs.
Sometimes I see one, sometimes I see other.
Compiler Error Message: BC30689: Statement cannot appear outside of a method
body.
Source Error:
Line 29: <!--#include file = "includes/header.asp"-->
Line 30:
Line 31: <%if Session("Desk_Id")="I" or Request("deskforce")="I" or
Session("deskforce")="I" then%>
Line 32: <%else%>
Line 33: <!--#include file = "upNav.asp"-->
Source File: C:\AspTest\ShapLaw\wipListDetails.aspx Line: 31
-----------
Compiler Error Message: BC30188: Declaration expected.
Source Error:
Line 1: <%
Line 2: Dim DataConn as object
Line 3: DataConn = Server.CreateObject("ADODB.Connection")
Line 4: dim v_DSN as string
Line 5: v_DSN ="Persist Security Info=False;dsn=dsnes; uid=shaplawsqluser;
pwd=shapiro"
Source File: C:\AspTest\ShapLaw\includes\dsn.asp Line: 3
May be somebody has idea? Tag: Get Object remote java class from HTA Tag: 320877
MS Treeview from ASP issue after IE ActiveX update (kb912945)
Hi there,
I have an ASP page using the treeview control from mscomctl.ocx that
was running just fine. We updated our browsers with this package (
details at http://support.microsoft.com/kb/912945/en-us) so I get
"Unhandled exception at 0x275888cf in IEXPLORE.EXE: 0xC0000005: Access
violation writing location 0x0000000b."
The other mscomctl.ocx's controls (ListView, MonthView, ImageList...)
are still working fine.
that's the code:
<OBJECT id=tvwPasta
classid="clsid:C74190B6-8589-11D1-B16A-00C0F0283628" width="100%"
height="235"
CODEBASE="http://<myserver>/mscomctl.cab#Version=6,1,97,82"
viewastext>
<PARAM NAME="_ExtentX" VALUE="7303">
<PARAM NAME="_ExtentY" VALUE="6138">
<PARAM NAME="_Version" VALUE="393217">
<PARAM NAME="HideSelection" VALUE="1">
<PARAM NAME="Indentation" VALUE="700">
<PARAM NAME="LabelEdit" VALUE="1">
<PARAM NAME="LineStyle" VALUE="1">
<PARAM NAME="PathSeparator" VALUE="">
<PARAM NAME="Sorted" VALUE="0">
<PARAM NAME="Style" VALUE="7">
<PARAM NAME="ImageList" VALUE="">
<PARAM NAME="BorderStyle" VALUE="0">
<PARAM NAME="Appearance" VALUE="1">
<PARAM NAME="MousePointer" VALUE="0">
<PARAM NAME="Enabled" VALUE="1">
<PARAM NAME="OLEDragMode" VALUE="0">
<PARAM NAME="OLEDropMode" VALUE="0">
</OBJECT>
Any idea? Thanks in advance for any help.
Sonny. Tag: Get Object remote java class from HTA Tag: 320875
Is Welfare Part of Capitalism?
This article is dedicated to:
A man I met, with most of his body heavily burned, simply because he
was a Chinese during the 1998 May Riot in Indonesia.
Lots of capitalists that are slaughtered during the cultural evolution.
Ten thousands of peaceful smugglers that are massacred in Banda island
by the Dutch for conducting peaceful spice trade and all that are
similar to them.
All minority groups and individuals that face discrimination, even
genocide, for economically contributing too much for their society.
All customers that have to pay higher products due to protection of
tariff and trades.
Productive people that are fined with income tax for the victimless
crime of making honest money.
Smart students that are slowed down so not to move too fast.
Industries that do not get subsidy, or even banned to protect
unproductive industry and laborers that earn much less due to such
restrictions.
Poor starving people that could have been rich had their countries
choose to embrace free market.
Women and males that are trapped in unhappy marriage which they have a
hard time getting out.
Women and children that have lots of their best choices taken under the
pretext of protection.
Immigrants and refuges.
Is welfare part of capitalism?
In short, no. In consensually, punishing the productive through income
tax to reward parasitic behavior is the biggest affront against the
principle of free market. In fact, from many governments intervention
in economy, the one that proponents of free market often oppose the
most is welfare.
However, when we look further, capitalism and welfare is not really
total opposites. Most importantly, properly done, a straight forward
welfare program can cause less market distortion, and hence an
efficient replacement to buy votes from losers, than farm subsidies,
public schools, minimum wage, trades restrictions, tariffs, and sex
laws. If it's done by taxing wealth, rather than income, the amount of
market distortion can be minimized further.
Welfare is also cheap. It'll cost $5000/year to a welfare recipient
in USA, for example. However, we need to remember that the
recipients' lifestyle worth only $500. The other $4500 goes to
implicit welfare due to higher living costs. That implicit welfare
includes minimum wage, immigrations laws, and food subsidy, or
protections.
If somehow a straight forward explicit welfare program can replace all
relatively more evil governments' interventions, then capitalists are
probably better of not opposing welfare so much. Even Milton Friedman
supports schemes called guaranteed minimum income, which is like
welfare but with much less market distortion.
That's not where the similarity ends. One of the main creeds of
capitalism is that consent and competition should be preferred over
force. Without that consent, anyone can simply make us choose to make
our self worst of under the pretext that it is for our own good. In
fact, most laws against consensual acts can be traced down to
protection of some disgruntled competitors often done under the pretext
of the consenting parties' own good.
Anti prostitution and anti polygamy laws, for example, is there to
ration females to poor dumb males under the pretext of protecting the
consenting women. Of course, all natural resources tend to be rationed
somewhat proportional to ones' voting power. And that does explain
why democracy and anti polygamy laws go hand in hand too. One man one
vote soon leads to one man one wife.
Well, at least Matt Ridley agrees with me and he's a well known
mainstream scientific researchers. I guess that's also why so many
uncompetitive people want to ensure that evolution theory is not taught
in school. You can also read a famous psikiatrist book, "The road less
traveled," you'll see that life long monogamous marriage is just a trap
to prevent highly desirable people from being available to those who
they want more, and romance is just the lure to that trap.
On the women side, anti pornography laws is really meant to prevent
highly desirable women from advertising her assets and hence protecting
less pretty women from the higher industry standard a public display of
superior desirability might cause. Countries that embrace porn tend to
have prettier women. Where did all the unsexy ones go? They're all
shifting out of the gene pool, and hence are doing their best to oppose
porn preaching religious doctrines that men should judge women based on
any features but beauty, which they can't offer.
Another issue is consent. Welfare program is not consensual; however,
it's relatively more consensual then civil war. In ancient time, when
we have different ideological opinions, we end up killing each other to
proof who are "right." The Catholic would kill the Gnostic, the
Sunni would kill the Shiah. One King would kill the other. A younger
prince will argue that the older prince is demon. Might makes right.
Such differences of opinions are of course solved with war, which is a
very cost inefficient way to know who're "right." However it does
work in some subjective practical sense. If we look in the past and try
to figure out whether the Gnostic or the Catholic is the one that's
heretical or "right" respectively, we need only to see who won. The
Gnostics are slaughtered, so they must be the heretic, or do they? At
least I bet there are way more people in the world that think that way
than the other way around, excluding me actually.
It doesn't matter how many books many institutionalized religions
burned, how much restrictions of freedom of speech and irrationality
they embraced, how many witnesses they snuffed outs and all other
techniques that would not have stand the scrutiny of a peer reviewed
scientific journal, or even a reasonable jury in the court of law. Too
many people don't believe who are right and reasonable, they believe
who are mighty. Right or wrong, the win will always become right
anyway.
Now, under democratic context, we don't kill those who oppose us,
rather we try to persuade enough people to join our cause. How do we
persuade them? By money of course. Welfare program is then a reasonably
cost efficient method to buy votes.
When too many people are on a side, we will sort of know that going to
war will hurt the other side; hence we comply anyway with the whim of
majority avoiding the costly alternatives. While not ideal, this is
indeed how right and wrong is really decided, proper assessments of
each sides' bargaining position and mutually cherished compromised line
of war, plus a bunch of lies covering what's going on to safe each
sides' face.
No matter how noble the purpose, lies and prejudices lead to
misunderstanding, that leads to more war. Hence, the best contribution
is simply to unmask all lies.
All in all, peaceful democracy is indeed a more cost efficient ways to
measure ones' bargaining position. While democracy often lead to
decisions opposites of freedom, like popularly supported victimless
crime, income tax, and welfare, it's indeed relatively more cost
efficient than civil war.
That's not when the coherency end. Various natural laws restrict
various possible political outcomes. We can't expect a stone will fly
to the sky when we drop it as much as we cannot expect a human to be
generally unselfish. If we want to kill our enemies, we'll do well
dropping a big stone on top of our enemies head rather than dropping
the stone on top of our own head expecting the stone to somewhat
magically fly to the enemies head.
The same way, we can't demand market distortion and expect that the
best and brightest among us to still magically be a nice tax payer
rather than dictators and corruptors. In a country where selling porn
or building a good franchise chain is more difficult and less lucrative
than becoming a dictator, guess what the smart would end up doing? Ask
Saddam.
If we want rich and prosperous countries, we must know that it will and
only will happen when we properly align individuals' interests with
productivity.
Such coherency tends to make certain things come in package with
another. We can expect that moving electric field will induce magnetic
field. The same way, in life, we observe similar things. Communism and
socialism, for example, always come in package with dictatorship and
corruptions when smart people realize that being dictators pay more
than building a business empire.
To the opposite capitalistic countries comes in package with softer
deals for losers, such as, guess what, welfare.
We know from our economic classes that free market capitalism brings
prosperity within market mechanism. However, it turns out that the
prosperity that free market brings also profit the less successful
beyond market mechanism. Capitalism and the prosperity that come with
it tend to facilitate ideological changes in ways that benefit the less
successful. One such ideological change is the popular support for
losers' benefits. One such benefit is, guess what, welfare.
The most obvious samples of such ideological shifts the free market
bring are the elimination of slavery in US. What happened? As usual,
the northern part of America is an industrial country. At that time,
steel industries are relatively more modern than the farming industry.
Higher tech industry increase labors' productivity. When labor's
productivity goes up, entrepreneurs will want to hire as many workers
as possible. Hence, labors' salary will go up. This will kill of
industries with less labor's productivity. At the end, the marginal
productivity of labors in the least productive industry will go up.
That value is labors' salary.
Under competitive equilibrium, the more productive and efficient a
person is, the more he benefits everyone in the chain of productivity
except those similar to him. Hence, an entrepreneurs coming up with
ways to improve labors' productivity would benefit everyone,
including workers and consumers, at the expense of other entrepreneurs
and capitalists. Read that Karl Marx!
Then what? When labors' salary goes up, obviously labors will move to
the employers that pay them higher. Hence, farm labors in the south
want to move to the north. They can't do so legally though because
they were slaves. Hence, the northern capitalists in US want to free
slaves so they can hire more workers. And then the southern capitalists
in US want to keep slavery. This then results in war. The bigger the
labors' productivity, the more intensive capitalists have to free
slaves. The more supporters there will be on a cause the more likely
the cause won. Hence, slaves were freed.
Unfortunately, people still want to help losers and buy votes from
those who are too expensive and too stubborn to switch. That explains
why the farms in US gets subsidy.
If losing means not as successful as the other, then there will always
be losers. However, we see how free market shifts the worlds' system
in ways that benefits the losers too. Unlike the commies' propaganda,
capitalism does not cause or even enlarge disparity of wealth.
Capitalism only changes the way such disparity are earned to the
benefits of all.
At the end of the warring states period in China, the king of Chin,
Shih Huang Ti, and his prime minister, Li Si were the winner. Within
one generation they have all their family slaughtered. If that's what
winning means, what did losing means in pre-capitalistic countries? In
ancient time, losing meant having all the males slaughtered, enslaved,
or castrated and all the females raped and winning means risking your
whole family slaughtered by rebels. In socialists countries the rich
are corruptors and dictators that slice each other throats while the
poor are starving.
Now, thanks to the prosperity only free market can bring, losing means
they can leave on welfare, with plenty of chance to climb back and
proof their worth, like J. K. Rowling. Now, slaves are so free and
highly paid thanks to increase in labors' productivity. In fact, when
slave jobs are moving to China under globalization, slaves in US
refused to be emancipated and want to keep their slave jobs in US
rather than evolving into entrepreneurs. So, much for the land of the
free and the place of the brave. Some people don't mind dying for
what they believe in but are too scared to start a business. Evolutions
will fix that I guess.
Free market gives abundances to everyone. The benefits the free market
brings benefit those less capable from being successful not only within
the system but also through non market mechanism, like the ending of
slavery and the start of reverse slavery we call welfare. But how do
those really work? Is there a general principle?
Each of us is greedy and selfish that we want as many as possible for
us. Humans' greed and selfishness is an undisputable scientific
facts, as sure as the sun rise in the east, as sure as a stone will
fall to the ground pulled by gravity. We're not just greedy and
selfish. Greed and selfishness doesn't explain all the war,
suffering, and poverty we face.
In fact, greed is good. Properly aligned, under free market, the
greatest among us shall be the one productively providing the best
service to the most customers. Blessed be the productive because
they'll be rich. This will encourage higher and higher standard of
living that we are currently enjoying.
Free market allows those who serve more to grow richer. To those who
have more profit, to those more capital are given. Even kingdom of
heaven don't mind using this nice positive feedback effect. Who needs
new deals to break up companies?
Also, women prefer the rich. The next time you watch soap opera, make
sure it's made in some country with the highest IQ in the world, like
Hong Kong.
Free sex means richer males will consensually attract and mate with
more women producing more kids. That's the whole point of getting
rich by the way. Duh?
In fact, that's what being a living human male is all about:
1. Gain control ship of as much money or power as possible.
2. Attract or in anyway acquire as many females as possible.
3. Make kids.
4. Use that kids as tools to make grand children.
You bet it's right because it's science. Of course, they don't teach
this important fact in biology class because government interfere in
education.
Hence, when we're free, without genocide, without war, even with
humanitarians aids given to appease enemies, the meek will indeed
inherit the earth.
More than greedy and selfish, some humans are simply not humans because
they embrace the root of all evil, envy. That explains why we have so
many laws against mutually beneficial consensual acts and governments
regulations to protect us from our own choices. The truth is, all those
laws and restrictions are more often not there to protect stupid people
from making mistakes. All such laws are there to prevent the smart from
making the right choices.
That's why, for example, every body has to move equally slowly in
school, to prevent the smart from moving faster. That's why various
reproductive techniques are politically incorrect proportional to the
expected quality of genetic material that will be duplicated. In
particular, life long monogamous marriage, free sex, prostitution,
polygamy, and cloning are sequences that both have increasingly
expected value of genetic quality outcome and politically
incorrectness.
In Europe and China, the smart monks are encouraged not to get married.
When some minority groups don't buy the bullshit and hence greatly
improving their productively earned wealth and genetic quality, such
minority groups somehow become victims of genocide.
Life is like a real time strategy games. That means when we're not at
war, we're in a race. That's simply how we evolve. Morality,
religions, and ideologies, are stuffs created by really smart people to
persuade us to run backward.
Peace means we're in a race. Freedom means we are in a competition.
Some people just don't want to compete. Hence, they craft lies and
prejudices against those who are in front preventing progress to
prosperity.
I'll tell you the scientific truth. It's from the fruit we knows
the tree. Anyone opposing free trades and globalization is more evil
than Hitler or Nazi. If only Japan and German could have acquired
natural resources through consensual peaceful trade, Nazism wouldn't
have been popular there and Hitler wouldn't have risen to power. With
his mass hypnotic skills, he may have ended up as seminar speaker I
guess.
If only those who had wanted to incite the Second World War see all the
miracles and prosperity the free market brings, they would have
repented and embrace free market. Yet, after all the prosperity and
wealth the free market is bringing to all of us, still many people
choose to oppose competition, and hence, miss-properly align our
interests from productivity. That is the cause of all evil in the
world.
All causes opposing free market can be negotiated and appeased.
However, if the very thing that a group of people want to prevent is
the success of the others, then the situation is pretty much kill or be
killed zero sum game.
How does such situation usually end up? What would be our optimum
solutions for such situation?
Under normal circumstances, an optimum solution of any business
decisions is a solution where the marginal revenue equals to the
marginal costs. Hence, in a zero sum game, each party will try to
maximize its benefit to that point. Sometimes, the marginal costs have
a spike. There is a certain point where increasing a resources
allocation beyond a certain point will create adverse costs. For
example, increasing the number of labors will increase revenue.
After a certain point, increasing one additional labor will mean buying
a new machine or building a new factory. We may end up choosing to do
it, we may not. In either case, discretions are the better part of the
valor when it comes to that line.
The same way, in most countries, each of us can increase our profits
using property we own or consensually rent. When we maximize our profit
that way, the public will, ideally and some times truly, not interfere,
and defend us from being prevented to enjoy our "rights" by others.
However, when we start using others' property to maximize our gain,
say by stealing, public opinions may shift from protecting us to
against us.
Hence, the choice whether we should steal or not depends on the extra
costs of crossing the politically correctness line of war. If a person
sees that the potential gain justifies the increase costs of public
support shifts, he'll still steal and make a great career out of it.
Otherwise he'll stop stealing while coming up with a pretext to
justify his cowardly decisions, such as morality.
But what do the people choose their reaction to a specific act like
stealing? They do so based on their sense of fairness, justice, and
right-wrong discernment. How do people get that sense? From ideology.
The ideology, religions, or whatever, then decides the line of war
where the rest of us should consider before crossing. But how does the
line gets drawn? By estimates of bargaining position.
Let's examine an example. Is the King (or Queen?) of England the King
of France? Don't know. How do we know? In the beginning, a ruling
class from France went to England and become king of England. Then they
lost control of France. Hence, king of England wanted to take back the
controls they have lost. Well, such conflicts are solved by war. In
this particular case, the war lasted 100 years.
The British attacked France and successfully route knights with long
bows. Then, the Frances stroke back driving the British back to their
isolated islands. However, the France cannot move further and go all
the way to attack British because of the Strait of Dover separating the
two nations. Finally both sides realized that the straits somehow
became the sacred line of war. It's not auspicious to cross the line
of war for either side. The France, having more army and larger
population would beat up the British on land, and the British being
stronger at sea can always repulsed France sea invasion. Hence, we got
peace.
Such natural separators like straits and mountains explain why
Europeans are divided into many different countries. The Chinese, not
having that natural line of war, end up getting united all the time.
Now, let's get back to the question whether welfare is part of
capitalism. If all of us have just enough food, and some people don't
work, what would we end up doing to those who are not productive?
Humans' basic instincts and preferences lead to gene pool survival.
When food is scarce, such as when the people demand centralized
planning, it would serve ones' gene pool survival to slaughter the
parasites rather than sharing food to them. That's because sharing
food to those who do not earn it means starving ones own self. In fact,
humans will kill each other to literally eat each other when food is
scarce. Such is what happened in China and Rusia when centralized
planning, governments' intervention in economy, and prejudices
against successful capitalists became the norm.
However, when food and money are abundance, such as when the people
embrace free market, fighting the parasites might cause more gene pool
survival lost than feeding them. On the other hand, simply giving and
yielding toward threaten will motivate people to keep pushing us
around. Moreover, giving in to those who can use force against us will
motivate countries to build arms rather than say, better video games.
Hence, one possible strategy to minimize open war while still properly
aligning ones interest with other individuals around them is to give to
those who ask nicely and ask less. As free market brings a lot of
abundance, those who are needy can be appeased much more cheaply than
those who are envy, and hence, we got welfare program.
To be frank, I'd rather see the unproductive people have bigger TV
rather than letting them make more kids. It's more humane, and
cheaper. Guess what? Most people that know they're not very capable
either would rather have that too.
Back to the France vs British. If only both sides have realized the
true bargaining positions of each, they wouldn't have to resort to
such expensive 100 years war right? The thing is, the 100 years war are
the most credible and accurate ways to measure ones' bargaining
position. War shows which one is stronger, and hence leads to a mutual
understanding of where the line of war might be.
If only we can wave our gun and scare the enemies, it'll be great.
However, the only threats that are credible are those actually done.
How do we know a cause's bargaining position? Democracy might give
some light by counting the number of those who are in favor or against
what we consider lesser evil. However, number counting can be
deceiving. We hold this truth with plenty of evidences, that humans are
inherently different.
We have difference capability and preferences, and hence different
choices and outcome. It's useless to lay net in front of anything
with wings. Those who are genetically predestined to be successful will
get rich anyway whether through honest capitalistic means or through
dictatorship.
Those who are small in numbers can hence be quite strong. Preventing
the smart from making money honestly will then turn them into
corruptors and dictators. When the Chileans demand to prosecute their
entrepreneurs, they end up getting a dictator, the way any country that
demand slavery over freedom deserves. Fortunately, Pinochet are
relatively benign compared to others dictator and embrace free market
giving the miraculous prosperity that the Chilean now enjoy.
Now, US government arrested his daughter for a crime of tax evasion. An
act that wouldn't have been a crime if making honest money is free.
The miracle of Chili becomes the model of China's moving to free
market. It also helps to end communism all over the world peacefully.
If capitalists fail to show thanks to Pinochet family, I don't know
what would happen to all of us.
So, beyond number counting, the more accurate ways are then through
skirmishes. When people cross the public's opinion line of war and we
don't strike back, the line of war will shift against the coward by
precedence. By fighting back, we'll then have a more accurate
knowledge of which one the public would agree with.
Hence, it's very important to retaliate to what others do to us,
either good or bad. It's a pleasure to serve my friends, it's also
a pleasure to wipe out envy enemies that are on our ways, should my
friends wish or don't mind.
When a fraudster tricks my brother over $3,900, my main concern is not
to get my money back. My main concern is to get the fraudster to jail
even if that will costs far more money than the $3,900. When a thief
steals my money on 2001, my concern is also not to get my property
back. What's just is to encourage the whole world to post any thieves
conviction records on the net to prevent further larcenies.
It makes me wonder though. Why people consider it cruel to damage a
thief or a fraudster' reputation? The mere acts of making honest
money are punishable by income tax. When Everett O. Lasher makes an
argument in court, the case leads to $5000 fine, and understandably, a
suicide. The mere acts of successfully fending of ones' home from
thieves lead to a life long jail term for Tony Martin. Thousands would
march against WTO demanding harsh laws to punish those exercising
consensual trades. In Iran, the mere acts of switching religions can
lead to death penalty.
In Indonesia, new laws are being drafted giving years in prison for
kissing in public. Of course, public rape during May riot are still far
from being punished.
This while murderers of Vincent Chin went free without jail term.
Thousands would march to end death penalty against murderers. In
Indonesia, religious fundamentalists can come to a house and destroy
properties from houses providing consensual entertainment with polices
watching. Those people often get away or lightly punish.
If consensual productive acts are punished while damaging inconsensual
forces are not, soon, all highly productive people would end up in gas
chamber after the next Cultural Revolution, or what ever. Those who are
left are those smart enough to be dictators enslaving the rest of us.
Prejudices reminds me of an envy old hag that's so determined to ruin
my reputation for being friendly to her and her friends, after her own
friendly communication. I never intended to fraud anyone or steal her
money yet I got my reputation ruined. I am very disappointed to see
that there are people in the world that want to bring me down more than
they want to bring down a thief.
I have tried to resolve the issue privately by suggesting to that thing
that she's really not important enough for anyone to pretend to be her
friend. Moreover, I didn't need her as a friend. All this was just a
damage-less misunderstanding caused by her own friendly communication
which I could simply publicly straighten out. At least, it used to be.
However, that vermin really wished to get the issue public telling lies
that she never communicated with me, possibly to boost that things'
feeling of importance her genes deny her. Well, if she got so mad over
a few friendly introductions, I can only wonder what that thing would
do when it finds out that her true envy natures are revealed to 55000
newsgroups several times. It'll happen again and again whenever I
feel like.
Hence, just look for "envy vermin" on the net to find out what's
really going on including what she said privatedly. Let the public
decide who are more honest, rational, scientific, and straightforward.
Let the market decides which one are worthy and who are worthless.
It's a great mistake to ever consider such thing as a friend, a
mistake no body should do. It's her kind that turns people of from
making money productively.
Hopefully we can undermine public opinions against all form of envy
motivated lies and prejudices. At the end, we'll greatly weaken laws
against victimless crime and easily out compete all envy people out of
the gene pool. That'll ensure that the free fair market competition
would reign over war when all lies and prejudices against those more
successful are gone.
Now that being said, I want to move all jobs that can be done online to
Asia, especially, copy writers. Take advantage of the value difference
and leverage like hell is how we all make money in any system. Who's
with me?
Free market is all merciful and all compassionate. At the end, even
those that oppose free market will benefits from free trades. Tag: Get Object remote java class from HTA Tag: 320870
Forcing a div element to background
Are there any div attributes that could force a div element to stay in the
background? I have a .vbs calendar class that opens a small calendar.
Unfortunately, sometimes it opens above a form element like a combo box and
the combo box shows on top of my calendar.
The combo in question happens to be within div tags because it hides/appears
depending on another form choice.
Any got any good links on forcing div elements to the background? Tag: Get Object remote java class from HTA Tag: 320859
HELP!---Stored Procedure in ASP
This is a multi-part message in MIME format.
------=_NextPart_000_002D_01C65723.B951B750
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello everyone,
I'm writing you because I need help in something that's taking too long. =
I want to build a Stored Procedure to be accessed by an ASP page and I =
need that Stored Procedure to do a couple of things:
1.. Depending on parameters sent by the ASP page, do a SELECT =
statement to a table (tblX01) and if it returns ZERO records, the SP =
should insert some info into other table (tblX02) and if returns ONE =
record, it won't insert into tblX02
2.. Insert some other info in another table (tblX03)
With #2 I don't have a problem, is with #1, how do I know the select =
statement returns ZERO or ONE record? how do I capture that value in the =
Stored Procedure?
Thanks for your prompt response,
SB-R
------=_NextPart_000_002D_01C65723.B951B750
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2180" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hello everyone,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I'm writing you because I need help in =
something=20
that's taking too long. I want to build a </FONT><FONT face=3DArial =
size=3D2>Stored=20
Procedure to be accessed by an ASP page and I need that Stored =
Procedure to=20
do a couple of things:</FONT></DIV>
<OL>
<LI><FONT face=3DArial size=3D2>Depending on parameters sent by the =
ASP page, do a=20
SELECT statement to a table (tblX01) and if it returns ZERO records, =
the SP=20
should insert some info into other table (tblX02) and if returns ONE =
record,=20
it won't insert into tblX02</FONT>
<LI><FONT face=3DArial size=3D2>Insert some other info in another =
table=20
(tblX03)</FONT></LI></OL>
<DIV><FONT face=3DArial size=3D2>With #2 I don't have a problem, is with =
#1, how do=20
I know the select statement returns ZERO or ONE record? how do I =
capture=20
that value in the Stored Procedure?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for your prompt =
response,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>SB-R</FONT></DIV></BODY></HTML>
------=_NextPart_000_002D_01C65723.B951B750-- Tag: Get Object remote java class from HTA Tag: 320858
Post Back in 2.0
Hello - I created a simple website with one page. This simple page has only
one text box (asp:Textbox) and no other controls. When i bring the siteup in
VS2005 and press enter with the cursor inside the text box the page
refreshes. I am not able to understand why it is posting back? I have set
Autopostback to false. Am i missing anything or is it the default behavior?
Thanks Tag: Get Object remote java class from HTA Tag: 320854
ASP page not loading...
I have moved our sebsite to a new 2003 server & now my asp pages won't work.
Where/what do I change to allow asp pages to run?
Thanks- Tag: Get Object remote java class from HTA Tag: 320852
CreateObject --> ASP177
Bonjour,
I just install Windows Server 2003 (+IIS6) and my old application
doesn't
work anymore because i'm unable to use server.createobject. My error is
:
---------------------------------------------------------
Objet Server erreur 'ASP 0177 : 800401f3'
=C9chec de Server.CreateObject
/Main.asp, ligne 26
800401f3
---------------------------------------------------------
My code :
---------------------------------------------------------
set objUpload =3D server.CreateObject("Dundas.Upload.2")
---------------------------------------------------------
This code works fine on Windows 2000 Server.
This code works fine on Windows 2003 Server only if I add IUSR_MACHINE
to
Administrators groups.
So the Components is installed and it's a permissions issue. I tried to
give
IUSR_MACHINE all access to the dll directory and system32 directory but
it
still doesn't work
Does anyaone has an Idea ?
I'm gonna crazy ! Tag: Get Object remote java class from HTA Tag: 320847
Digitalcameras Store
I want mp3 player. What will advise
Posted via DevelopmentNow.com Group
http://www.developmentnow.com Tag: Get Object remote java class from HTA Tag: 320846
Classes & Collections and some related issue
Hello,
I want to implement a class structure that can take a querystring and the
value of querysting can be called as myClass.getQuery("test").value. I know
that I can do it like myClass.getQuery("test") and get the value of "test"
querystring. But actually, this is an example only. In order to my class
library organized I need a structure like this.
I search internet and documents for ASP and Vbscript, as far as I found is
that in Vbscript, we are allowed to use nested classes and creating
collection object. I tried to run Vbscript examples in an ASP page, I only
get syntax error at where a nested class or collection object is declared. I
also try to learn about creating collection my own collection objects in ASP
because I try to have a function in my Class that returns a collection
object.
My question is a bit confusing, but I am confused too. I will be gratefull
for any help or ideas and information.
Here is the as far as I can go :
Class myClass
Private Sub Class_Initialize()
End Sub
Public Function getQuery(strQuery)
' Here I didn't want to get the query value with the function itself.
' I want to get it as myClass.getQuery("test").value
' I can declare a property to give the value as queryvalue
' But it doesnt help to me because when I do that,
' I can get value as myClass.queryvalue
getQuery = request.querystring(strQuery)
End Function
Private Sub Class_Terminate()
End Sub
End Class
Thank You,
Ugur Aslan
http://www.uguraslan.net Tag: Get Object remote java class from HTA Tag: 320839
code for mailing using CDO written in JavaScript
Hi,
I usually use VBScript to send emails, however I need to use JavaScript.
Can anyone supply the necessary code - I have tried this literal translation
and although it doesn't cause any errors, no mail arrives.
var sch = "http://schemas.microsoft.com/cdo/configuration/";
var cdoConfig = Server.CreateObject("CDO.Configuration");
cdoConfig.Fields.Item(sch & "sendusing") = 2;
cdoConfig.Fields.Item(sch & "smtpserver") = "smtp.xyz.co.uk";
cdoConfig.Fields.Update();
var cdoMessage = Server.CreateObject("CDO.Message");
cdoMessage.Configuration = cdoConfig;
cdoMessage.From = "info@.xyz.co.uk";
cdoMessage.To = "test@abc.co.uk";
cdoMessage.Subject = sSubject;
cdoMessage.TextBody = sBody;
cdoMessage.Send();
Any help appreciated.
Regards,
NEIL Tag: Get Object remote java class from HTA Tag: 320836
Newbie Question-Site Setup
Previously with asp, when I developed a new asp 'application', I just created
a new subdirectory for the application and away we go. Now, I have developed
a new asp.net 2.0 application using VS on my development machine. I tried
creating a new subdirectory on the production server but it complains about
no virtual directory. I am not using 'projects' or 'pre-compiled' code.
What do I need to do to move this app to the production server? Up til now,
all of our apps have run fine in subdirectories of the "default web site".
Note, I use remote terminal access to do work on the server.
Also, there is no VS on the production server, so any editing I need to do
is with notepad. In other words, I can not access the production server when
using VS on my development machine.
TIA--
Tom Tag: Get Object remote java class from HTA Tag: 320833
ASP and Session Variables
I've noticed that in my ASP application that session variables are not carried over from
one IE6 open browser window to another.
Can anyone tell me how IE can do this? It seems like it's a useful protection mechanism
that I can add to my application.
BTW, I'm looking for a way to determine if someone is moving cookies between computers.
How IE and/or ASP handles sessions might give me some insights (and I'm open to
suggestions as to how to prevent cookie stealing?)
Thanks,
Bill. Tag: Get Object remote java class from HTA Tag: 320828
Simple anonymous access question
I have what I think is a simple question but I am finding nothing but
complicated answers.
I have a web site running on IIS6. One directory used to use an
alternate account as the anonymous user (not the IUSR_ServerName
account) to connect to a database, etc. Now the pages in that
directory no longer do anything special and I just want to start using
the default IUSR_ServerName account again. I put that account back in,
but what do I put in as the password? I am reading all about security
improvements, network service vs. local system, unprivileged vs.
priveleged, etc. I realize there is no longer a "Let IIS control
password for anonymous account" option, but all I want to know is, HOW
DO YOU GET IT BACK TO THE DEFAULT??? Tag: Get Object remote java class from HTA Tag: 320824
How do I set the authentication mode to Windows in asp?
I found some code on the Internet that I have modified for my needs and
it works nicely from a localhost, but not when it is sitting on our
intranet server.
I believe the reason is that the instruction
<authentication mode="Windows" />
is missing.
In asp.net I would put this instruction in web.config, but since the
code is in an earlier version of asp (the code is at
http://www.hypergurl.com/verticaltext.html) I don't know how to
include it.
Any help would be greatly appreciated.
Regards,
Jan Nordgreen Tag: Get Object remote java class from HTA Tag: 320819
No submit returned in IE form
With the simple form:
<form action="<%= Request.ServerVariables("SCRIPT_NAME")%>" method="post"
name="form1">
<input type="text" name="text1">
<input type="Submit" name="Submit" value="Submit">
</form>
If I click Submit it posts "text1=&Submit=Submit".
If I select text1 and hit Enter, it only posts "text1=" in IE (as above in
Firefox).
If I add a second input <input type="text" name="text2">, select text1 and
hit Enter, it posts text1=&text2=&Submit=Submit in IE.
Is this by design and if so why?
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com Tag: Get Object remote java class from HTA Tag: 320811
Passing a Variable from one web site to another for ASP
I am new to the ASP and VB thing so be kind. Question I have is that I have
created an ASPX web site to use as an E-Mail page. But I want to use this
for a lot of users. Can I create the link on the WEB site to mail to passing
a variable from the WEB site to the ASPX web site to E-Mail to? Hope I
explained this correctly. Tag: Get Object remote java class from HTA Tag: 320804
Install of IIS 6.0 Renders Web Site Unusable
Hello.
I have a Web based application that worked with IIS 5.0.
Our server recently had to be rebuilt and IIS 6.0 was installed.
Since then I cannot get my application to run. I get "The Page Cannot Be
Found" error message.
Working with IIS 5.0 my default.htm file was in C:\Inetpub\wwwRoot\WebPPOLoad.
With the install of IIS 6.0 our IT team placed the Web folder in
D:\www\irvdev02\WebPPOLoad.
Through the IIS Service Manager I checked the path of my application and
under Web Sites it's showing irvdev02\WebPPOLoad. When I right click on
irvdev02\WebPPOLoad (In IIS manager) the Home Directory is showing correctly
as D:\www\irvdev02. I also checked the permissions and they seem in order and
I added an IUSR account.
Any suggestions as to why my application won't start will be greatly
appreciated!
TIA,
Rita Tag: Get Object remote java class from HTA Tag: 320796
Opening Drop Down lists
I have a SELECT element on my asp that is autopopulated from a search button.
Currently, the user inputs the saecrh term, clicks the button and the drop
down is populated from the DB. The user then select from the list. Everything
simple thus far.
Now I have been asked if I can get the drop down to open automatically
(apparently to save the users the extra click of opening the list!!!), but I
cannot find out how to automate this (then again, I have little momentum to
do so at this stage) and I know this request will rear it's head again
shortly.
Thanks for any help offered. Tag: Get Object remote java class from HTA Tag: 320789
asp/sql
In my asp script, i am using sql to get a sum. I understand if the row
doesn't contain a value, it is skipped. But the problem i am running into is
if there isn't a row that meets the criteria at all.
i have this
set wins8 = conn.execute("select sum(wins1) as wins_8 from matches_8ball
where username = '" & var & "'")
if not wins8.eof then
wins__8 = wins8.fields.item("wins_8").value
else
wins__8 = 0
end if
i thought that if it didn't find the '" & var & "' at all in the username
column, it should return a 0 value. but this isn't working as you can see
here.
http://pool.gig-gamers.com/all_stats2.asp
and since that isn't working, or any of the others like it, the table
contains blank spaces.
any ideas??
i guess i am trying to see if there is a way to maybe say... if wins__8 =
Nul or something Tag: Get Object remote java class from HTA Tag: 320786
textbox.text Property
On my webpage I have a textbox. I would like to be able to change the text
in the textbox and via a pushbutton have the value in the textbox written to
the .text property so that next time the page is viewed the new value will be
displayed.
Thanks for any help Tag: Get Object remote java class from HTA Tag: 320782
Logoff script
Hi All
We are using the code below attached to a button on a web page to perform a
logoff. We get the following error message:
ActiveX component can't create object 'WbemScripting.SWbemLocator'
Any idea why? I'm logged into the client machine with admin rights.
Cheers
Mike
<HTML>
<HEAD>
<link rel="stylesheet" type="text/css" href="/StyleSheets/dtr.css">
<link rel="stylesheet" type="text/css"
href="/StyleSheets/gnmmain.css">
</HEAD>
<script language="vbscript">
function logOff()
If Msgbox("Are you sure that you want to completely Log Off this
PC?", vbYesNo Or vbQuestion, "Confirm Log Off") = vbYes Then
Dim Connection, WQL, SystemClass, System
'Get connection To remote wmi
Dim Locator
Set Locator = CreateObject("WbemScripting.SWbemLocator")
Set Connection = Locator.ConnectServer(, "root\cimv2")
Connection.Security_.impersonationlevel = 3
Connection.Security_.Privileges.Add 18
'Connection.Security_.Privileges.Add 23
'Get Win32_OperatingSystem objects - only one object In the
collection
WQL = "Select Name,CSName,WindowsDirectory From
Win32_OperatingSystem"
Set SystemClass = Connection.ExecQuery(WQL)
'Get one system object
'I think there is no way To get the object using URL?
For Each System In SystemClass
MsgBox ("Name : " & System.Name & vbCrLf & "CSName : " &
System.CSName & vbCrLf & "WindowsDirectory : " & System.WindowsDirectory)
'System.Win32ShutDown (0)
System.Win32ShutDown (4)
Next
Else
Msgbox "If you are not using the Kiosk account, you can simply
close the Web Browser to leave the Kiosk.", vbInformation, "Log Off Cancelled"
End If
end function
</script>
<BODY>
<br>
<table border="0">
<tr>
<td width="10"> </td>
<td>
<input class="button-150" type='submit' onClick='logOff'
value='Log Off the Kiosk'>
</td>
</tr>
</table>
</BODY>
</HTML> Tag: Get Object remote java class from HTA Tag: 320772
ASP rookie trying to make registration page
I need to make a registration page for a community service volleyball
tournament our organization is doing. I am VERY NEW to ASP.
Would the easiest way to make it be just doing it on frontpage (where i
just lay out the form and save it as an .ASP file) and then changing
the form properties so that the results are sent to the access file?
I read that you could make aso forms on frontpage and it just seemed
too easy. Do these really work or will I still need to go back and
edit some code?
Thanks a bunch,
Gabriel Tag: Get Object remote java class from HTA Tag: 320763
Save all values from a form
Hi,
Is it possible to save all the names/values of a form to another memo
textfield before a Insert to the database then when required on another page
split that memo textfield into the name and their corresponding values
retrieved from the recordset ?
Thanks,
Sanj Tag: Get Object remote java class from HTA Tag: 320758
escaping characters
I need to put the following code within a <% %> block :
response.write "<tr>" &_
"<td bgcolor=eeeeee><a href=""company.asp?company=rs("companyKey")" &
"orderby=name"">"&naym&"</a></td>"
How do I escape the characters " etc?
*** Sent via Developersdex http://www.developersdex.com *** Tag: Get Object remote java class from HTA Tag: 320747
access.mdb data connectivity
Hi - using asp to connect to ACCESS data bases on-line.
Does ACCESS or a server behave like ACCESS on a local machine? - in
particular are there the same query performance advantages in applying
indexes to certain table fields?
Thanks
Hugh Tag: Get Object remote java class from HTA Tag: 320745
Home based Internet research Jobs
Home based Internet research Jobs
We are now hiring home based workers to complete simple online research
assignments.
No selling - no recruiting - no adplacing For details visit
http://www.typeinternational.com/idevaffiliate/idevaffiliate.php?id=3587_33_3_69 Tag: Get Object remote java class from HTA Tag: 320739
how to display a BSTR string returned by c++ component in HTML
hi,
i have an asp page which creates a object using server.createobject and
uses its method.
example:
set obj1= server.createobject("test.test") ' test is a dll
tmp = obj1.method() ' it returns a BSTR string.
i want to display tmp in HTML. when i tried to print tmp like
<font><%=tmp%></font>
i get some garbage value.
any idea.
thanks Tag: Get Object remote java class from HTA Tag: 320736
output format
Hi
I got a string as follows
str=
-0.1400,0.2910,-0.2742,-0.2904,0.1087,0.0323,-0.1355,-0.1221,-0.2164,-0.2128#0.0834,-0.4026,-0.2563,-0.0145,-0.3120,-0.2324,-0.1320,-0.0246,-0.1383,-0.1964#0.0711,-0.1743,-0.0128,0.0122,-0.1154,-0.1392,-0.1910,0.0543,-0.0450,-0.0685
i need a code in asp so the output is in the following format
-0.1400,0.0834,0.0711#0.2910,-0.4026,-0.1743#-0.2742,-0.2563,-0.0128#-0.2904,-0.0145,0.0122#0.1087,-0.3120,-0.1154#0.0323,-0.2324,-0.1392#-0.1355,-0.1320,-0.1910#
-0.1221,-0.0246,0.0543#-0.2164,-0.1383,-0.0450#-0.2128,-0.1964,-0.0685
please help
Regards
kalyan kamesh Tag: Get Object remote java class from HTA Tag: 320735
Home based Internet research Jobs
Home based Internet research Jobs
We are now hiring home based workers to complete simple online research
assignments.
No selling - no recruiting - no adplacing
For details visit
http://www.typeinternational.com/idevaffiliate/idevaffiliate.php?id=3586_33_3_69 Tag: Get Object remote java class from HTA Tag: 320733
Connect to SQLServer 2005 on different server
I have to connect to two SQLServers in my script. One server is local, the
other is remote.
I am using ODBC for the local connection:
pasConnStr = "Driver={SQL Server};" & _
"Server=(local);" & _
"DataBase=PAS"
And I have tried various connections to the remote server, this one happens
to be oledb:
crmConnStr = "Provider=sqloledb;" & _
"Data Source=CRM;" & _
"Initial Catalog=ULGT_MSCRM" & _
"User ID=CRM\IUSR_CRM;" & _
"Password="
The first server name is 'SQL1', and the second server name is 'CRM'. So, I
can connect just fine to the local server running on SQL1, but I cannot
connect to CRM. I have tried everything I can think of, including adding the
anonymous IIS login, as my connection string shows above.
The current connection string returns the wonderful error:
Microsoft OLE DB Provider for SQL Server (0x80040E4D)
Login failed for user 'CRM\IUSR_CRM'
So, I am at a loss. The remote server does not have a static IP, at this
time anyway. Tag: Get Object remote java class from HTA Tag: 320729
file system object doesn't work in virtual path?
Hi. I have a virtual path setup in order to give my web server access
to a file on my app server. I am using the file system object to check
for the existance of the file and if it exists, it has to validate the
file date.
The problem is I can't seem to find the file. I can successfully check
for the existance of a file on the web server, but once I enter the
virtual path it can't find anything. All three of these calls return
false...
fso.FileExists("http://server/localfolder/virtualfolder/test.txt")
fso.FileExists("/localfolder/virtualfolder/test.txt")
fso.FileExists(Server.MapPath("/localfolder/virtualfolder/test.txt"))
However these two calls work, so I assume I am referencing the file
correctly...
Response.Redirect "http://server/localfolder/virtualfolder/test.txt"
Response.Redirect "/localfolder/virtualfolder/test.txt"
Am I doing something wrong here? The virtual path is setup with an id
that has full access to the folder.
Thanks. Tag: Get Object remote java class from HTA Tag: 320726
Progress bar in asp while file is downloading
Users can view mpeg movies from my website. When users who don't have
DSL, it takes longer time to launch windows media player and play the
movie. There is no indication to the users that file download is going
on. To them it appears hung.
Is there any way to show progress bar on the page while file is
downloading in the background?
My code is:
<HTML>
<BODY>
<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="479"
border="0" height="74">
<TR>
<TD align="center" class="HeaderText">Nalco Communications Video
Library</TD>
</TR>
<TR>
<TD width="769" align="center">
<p class="ItemText"><a href="\videos\video1.mpg">Video1</a></p>
</TD>
</TR>
</TABLE>
Thank you. Tag: Get Object remote java class from HTA Tag: 320725
SQL question....
Website in question: http://econweb.tamu.edu/graduate-beta2.asp?yr=0
I want to show all of our Ph.D. students in multiple tables according
to years of experience. Right now the code I have only shows the last
group since it is the last call to the database in the code (there are
4 others before that get negated by the last one)
Here is the page's full code:
___________________________________________________________________________
<%
If Request("yr") = "" Then
Response.Redirect("default.asp")
else
Dim rst
Dim strSql
Dim gradYr
gradYr = Request("yr")
Sub Page_Title
Response.Write("Graduate Students")
End Sub
Dim wsType, pdf, url, semester, check, a, sem, isFirst
wsType = request("typ")
isFirst = 1
%>
<!--#include file = "dbConnection.asp"-->
<!--#include file = "header.asp"-->
<h4><span class="title" id="dir_title"><% Call Page_Title
%></span></h4>
<%
%>
<a href="graduate-beta.asp?yr=0">| All Ph.D. Students</a> |
<a href="graduate-beta.asp?yr=1"> Year 1 Ph.D. Students</a> |
<a href="graduate-beta.asp?yr=2"> Year 2 Ph.D. Students</a> |
<a href="graduate-beta.asp?yr=3"> Year 3 Ph.D. Students</a> |
<a href="graduate-beta.asp?yr=4"> Year 4 Ph.D. Students</a> |
<a href="graduate-beta.asp?yr=5"> Year 5 and up Ph.D. Students</a> |
<br><br>
<img src="Pictures/1styear.gif" alt="1st Year Students"><br>
<%
' Execute a SQL query and store the results
' within recordset from object "dbConn."
' "dbConn" is created from the Database connection file
' ~Thiago.
gradyr="1"
strSql = "SELECT * From tblGrad WHERE Classification
LIKE 'p1' ORDER BY lastName ASC;"
%>
<br>
<img src="Pictures/2ndyear.gif" alt="2nd Year Students"><br>
<%
strSql = "SELECT * From tblGrad WHERE Classification LIKE 'p2'
ORDER BY lastName ASC;"
%>
<br>
<img src="Pictures/3rdyear.gif" alt="3rd Year Students"><br>
<%
strSql = "SELECT * From tblGrad WHERE Classification LIKE 'p3'
ORDER BY lastName ASC;"
%>
<br>
<img src="Pictures/4thyear.gif" alt="4th Year Students"><br>
<%
strSql = "SELECT * From tblGrad WHERE Classification LIKE 'p4'
ORDER BY lastName ASC;"
%>
<img src="Pictures/5thyear.gif" alt="5th Year
Students"><br>
<%
strSql = "SELECT * From tblGrad WHERE Classification NOT IN ('p1',
'p2', 'p3', 'p4', 'm1', 'm2', 'm3', 'm4') ORDER BY Classification,
lastName ASC;"
Set rst = Server.CreateObject("ADODB.Recordset")
rst.LockType= 2
rst.CursorType= 2
rst.Open strSql, dbConn
dbConn.Close
'----------------------------------------------------------------------------------------------------------------------
%>
<table border="0" class="lists" width="100%" cellpadding="1"
cellspacing="3" ID="Table1">
<tr>
<th>Name</th>
<th>Country</th>
<th>Office Phone</th>
<th>Email</th>
</tr>
<br>
<%
Dim bgCol
bgCol = "#FFFFFF"
Dim counter
counter = 0
Do while (Not rst.EOF)
If bgCol = "#F5F5F5" Then
bgCol = "#FFFFFF"
Else bgCol = "#F5F5F5"
End If
Response.Write("<tr bgColor=" & bgCol & ">")
Response.Write("<td>")
If rst("webURL") <> "" Then
Response.Write("<a href='" & rst("webURL") & "' target='_blank'>")
Else
Response.Write(" ")
End If
Response.Write(rst("lastName"))
Response.Write(", ")
Response.Write(rst("firstName"))
If rst("webURL") <> "" Then
Response.Write("</a>")
End If
Response.Write("</td>")
%>
<td align="center"><% =rst("country") %></td>
<td align="center"><% =rst("officePhone") %></td>
<td align="center"><a href="mailto:<% =rst("email") %>"><%
=rst("email") %></a></td>
<%
Response.Write("<td>")
Response.Write("</td>")
%>
</tr>
<% counter = counter + 1
rst.moveNext
Loop
rst.close
Set rst = nothing
%>
</table>
<%
'----------------------------------------------------------------------------------------------------------------------
%>
<br>
<br>
<a href="graduate-beta.asp?yr=0">| All Ph.D. Students</a> |
<a href="graduate-beta.asp?yr=1"> Year 1 Ph.D. Students</a> |
<a href="graduate-beta.asp?yr=2"> Year 2 Ph.D. Students</a> |
<a href="graduate-beta.asp?yr=3"> Year 3 Ph.D. Students</a> |
<a href="graduate-beta.asp?yr=4"> Year 4 Ph.D. Students</a> |
<a href="graduate-beta.asp?yr=5"> Year 5 and up Ph.D. Students</a> |
<% End If %>
<!--#include file = "footer.asp"-->
_________________________________________________________________________
I did not write this code; just trying to maintain it. Any help would
be appreciated Tag: Get Object remote java class from HTA Tag: 320715
DropDownList Control Functionality
Hi. I'm using VS2005 and working with the Dropdownlist control on an ASP page.
My dropdownlist has several thousand items, all integers, ranging from 1000
to 80000 (these represent different company acocunts). With that many items,
I would like the user to be able to not only choose from the list, but type
the number in the list as well to avoid having to scroll through all of them.
Now, if the user currently enters a '1', they are taken to the first record
in the 1000 range - great! But, if the user types '12', they are taken to
the 2000 range (the last number entered), even though there are a list of
codes availabe in the 1200 range. Ideally they should be able to type a
portion or the entire number as well as select it from the dropdown. (I know
this works in non-asp app dev). So, question is: Does anyone know how to
make this functionally work with the standard ASP.NET ddl control, or does
anyone know of another control I can purchase to get this functionality?
Thanks!
-Matt Tag: Get Object remote java class from HTA Tag: 320714
Streaming file to user: 'File could not be opened'
[Apologies for previous half-post: I regularly mistype some kind of key
combo that submits the post]
I have a page on our intranet that is supposed to stream an Excel sheet to
the user. I'm using pretty standard code:
sFilePath = sFileDir & sFilename
Response.AddHeader "content-disposition","attachment; filename=" & sFilePath
' Create your header information
Response.ContentType = "application/x-msexcel"
' Create and configure your object
Set oFStream = Server.CreateObject("ADODB.Stream")
oFStream.Open
oFStream.Type = 1
oFStream.LoadFromFile(sFilePath)
' Stream it to the client
Response.BinaryWrite oFStream.Read
' Cleanup
oFStream.Close
Set oFStream = Nothing
' force the end
Response.End
This works fine on the main server, but not on my development machine (XP
Pro x64). This has all worded in the past, but this is a new machine, and I
can't get it to work since I've moved across. I'm getting a 'File could not
be opened' error message. In the past, I've had this error when I wasn't
pointing at the right place or where the permissions were not configured
correctly.
Currently the IUSR user has R/W access to the whole folder where the XLS
file is (It's actually in the same folder as the ASP page at them moment).
I've also checked that the filename and path are correct in a number of
ways, including using FSO.FileExists() and it it correct.
But I'm still getting this message... Any ideas?
I also stumbled across a suggestion to simple Response.Redirect to the
file - ironically, this 1-line solution works perfectly. I assume there must
be a caveat or downside to using this technique - otherwise everybody would
be using it. Can anyone sged some light on this?
Cheers
Chris Tag: Get Object remote java class from HTA Tag: 320708
Stream file to user:
I have a page on our intranet that is supposed to stream an Excel sheet to
the user. I'm using pretty standard code: Tag: Get Object remote java class from HTA Tag: 320707
asp program trying to open ms access 97 database on network fails
I try to run http://localhost/scroller/scrollertest.asp in my IE 6
browser.
The asp program tries to connect to a MS Access 97 database.
The program works when the database is sitting on any local drive, but
when I put it on a network drive I get this error message:
Error Type:
Microsoft JET Database Engine (0x80004005)
The Microsoft Jet database engine cannot open the file 'g:\test97.mdb'.
It is already opened exclusively by another user, or you need
permission to view its data.
/scroller/scrollertest.asp, line 31
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322;
.NET CLR 2.0.50727)
The file is not opened by anyone else and no password is set to view
its data.
This is the important part of the code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body>
<%
Dim adoCon
Set adoCon = Server.CreateObject("ADODB.Connection")
adoCon.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & "g:\test97.mdb"
...
Which permissions are needed? Tag: Get Object remote java class from HTA Tag: 320706
xml object
I have an xml data that I want to store in a database.
I want the following fields
1. Account-id
2. order-number
3. first-name
4. last-name
5. address-line
6. address-line-2
7 city
8, state
9 postal-code
10 total-points-spent
11 the list of items that were purchased which are in the section
item-redeemed
And this is the asp code that I use to move through the list. right now all
I can get is the redemption top-level, but I cannot seem to go down to the
subitems. Can anyone help out here and help get this into a asp script.
Thanks.
set root = xmlDom.documentElement set orderheaders =
root.selectNodes("redemption") for counter=0 to orderheaders.length-1 for
each header in orderheaders.item(counter).childnodes 'set subheader =
header.selectnodes("item-redeemed") 'for counter1=0 to subheader.length-1
'for each itemhead in subheader.item(counter1).childnodes response.Write "
" & header.nodename & "=" & header.text select case header.nodename case
"total-points-spent" response.Write "Points spent = " & header.text & "
" end select 'next 'next next next set orderheaders=nothing set root =
nothing
<customer-redemption>
<partner-client>someid</partner-client>
<partner-client-participant-id>
<account-id>F4B62207-3</account-id>
<user-name>3</user-name>
<password>yeahyeah</password>
</partner-client-participant-id>
<redemption>
<order-number>213387</order-number>
<ship-to>
<first-name>J</first-name>
<last-name>D</last-name>
<address-line-1>si</address-line-1>
<address-line-2></address-line-2>
<city>sid</city>
<state-code>IA</state-code>
<postal-code>88888</postal-code>
<postal-code-ext></postal-code-ext>
<country-code>USA</country-code>
</ship-to>
<total-points-spent>56</total-points-spent>
<date-time>2006-03-27 14:05:21.0</date-time>
<item-redeemed>
<item-number>042932-00</item-number>
<item-description>Pet Dinnerware: Large Stand </item-description>
<qty>1</qty>
<price>56.0</price>
<line-number>1</line-number>
</item-redeemed>
</redemption>
</customer-redemption>
--
J. D Tag: Get Object remote java class from HTA Tag: 320700
Using treeview.htc results in DLL initialization error
We are using Microsoft's treeview.htc control to display a tree control in
our .NET application.
When displaying the tree, the browser returns the error:
Dynamic Link Library (DLL) initialization routine failed
pointing to the following line in treeview.htc:
if(oItem.filters.length>0)
in function blurFilter().
Does anyone have any ideas about this and how to resolve the error? Tag: Get Object remote java class from HTA Tag: 320699
Setting Dropdown list on Page Load
Hello everyone,
I have what I thought was a simple script but I cant figure it out.
Anyway, I want to set the selected item of a drop down list with
information i am recieving from request.querystring. Seems like this is
a case of when learning asp.net first is a hindrance to what i want to
do. Im looking for something to the effect of,
Request.Form("dd_eventdate")= Request.QueryString("event")
thanks,
jeff Tag: Get Object remote java class from HTA Tag: 320685
Open Excel File with ASP
I am creating a webpage and have a form where a visitor will choose a
day, month, and year. I want to pass the data from the form into an
asp page which will process it and put it into a string and open the
excel file requested. The excel file to open will depend on the day,
month, and year chosen in the form. Please help me figure out the
coding for the asp page to open this file.
Thanks! Tag: Get Object remote java class from HTA Tag: 320681
ASP CDOSYS SMTP Email attachments are being corrupted
I have an ASP page that uses CDOSYS to send a simple HTML format email with a
PDF attachment. When I open the PDF attached to the email it shows up as a
blank page. I log into the web server console and open the same PDF in the
source directory and it opens fine. I run a binary comparison of the source
and attached files and there's a difference: one byte, x'2E' is missing at
offset x'0231'. If I save the attached file and use a hex editor to insert
the x'2E' the file opens just like the original.
Any ideas? I'm baffled... Tag: Get Object remote java class from HTA Tag: 320680
asp cade breakpoints does not stop code execution
Hi eb
I set some 'Stop' statements and also visual breakpoints
in asp code (vbscript).
I am doing that in Microsoft Script debugger.
Than I refresh the original page and expect execution to halt
at these breakpoints but unfortunatly it does not..
I had allowed script debugging in both iis home directory and in internet
explorer.
Also i added everyone from active directory to be members of debugging group.
Web Server is W2k sp4 and iis 5.?
Any idea of how to step into asp code will be appriciated!! Tag: Get Object remote java class from HTA Tag: 320677
How to encrypt an asp file source code?
Hi,
we have an Enterprise Application on ASP and MS SQL 2000. Would like to know
if I can convert the asp app to an exe or encrypt / encode / hide the source
code so that no one accessing the server can touch / modify / copy the same!
Kind Regards,
Akshay Shah
Mumbai, INDIA. Tag: Get Object remote java class from HTA Tag: 320676
Modify asp page according to Monitor resolution.
Hi
I created an asp page
it looks different when looked from an 1024x768
than
it looked on 800x600 resolution. how to control
this
any idea ???
--
Sivaswami Jeganathan Tag: Get Object remote java class from HTA Tag: 320672
Using the Response object to download files
I'm using the Response object download files from an SQL Server table to the
client browser.
Having set the content type and AddHeader, I use Response.Write and the file
opens in the browser.
How do I get the ubiquitous panel, Open or Save this file to appear so the
use has this choice?
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com Tag: Get Object remote java class from HTA Tag: 320662
Is there a way to access to a remote java class from an HTA
Application?
I'm going crazy bout this.
PLease help.