|
Hey Folks..Im using the aspload control for loading images on to the website.
Now this object has a function called save..
it works like
obj.save "/test/photos/image"
This command works perfectly and the files come to the directory. here /test btw is a virtual directory..
but then now if i use a variable called savedirectory which has the samevalue ie "/test/photos/image" stored in it and try
<% obj.save savedirectory %>
it does not work.i dont understand where am i going wrong.
PradS
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
All variables in VBScript are Variant . The interface for the COM object is probably expecting a String . Try using:
<% obj.save CStr(savedirectory) %>
|
|
|
|
|
It may be very simple. When i create a web application using c#/ASP.NET i am not seeing any ASP controls in the aspx page while viewing in the browser. Why is this. I have .NET installed and i have IIS 5.1 . I am able to see the lable control though.
Any help?
thanks.
|
|
|
|
|
could it be that you aren't adding the runat="server" attribute to the tags?
|
|
|
|
|
i have the tag. but still not visible.
here is the html source
<title>WebForm1
<asp:button id="Button1" style="Z-INDEX: 101; LEFT: 281px; POSITION: absolute; TOP: 168px" runat="server" text="<%# Page %>" width="226px" height="67px" backcolor="#FFC0C0" bordercolor="Black" borderstyle="Solid" borderwidth="2px" forecolor="Blue">
<asp:radiobutton id="RadioButton1" style="Z-INDEX: 102; LEFT: 272px; POSITION: absolute; TOP: 132px" runat="server">
<asp:label id="Label1" style="Z-INDEX: 103; LEFT: 362px; POSITION: absolute; TOP: 73px" runat="server" width="211px">There are some controls here
|
|
|
|
|
asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 281px; POSITION: absolute; TOP: 168px" runat="server" Text="<%# Page %>" Width="226px" Height="67px" BackColor="#FFC0C0" BorderColor="Black" BorderStyle="Solid" BorderWidth="2px" ForeColor="Blue">
<asp:radiobutton id="RadioButton1" style="Z-INDEX: 102; LEFT: 272px; POSITION: absolute; TOP: 132px" runat="server">
<asp:label id="Label1" style="Z-INDEX: 103; LEFT: 362px; POSITION: absolute; TOP: 73px" runat="server" width="211px">There are some controls here
|
|
|
|
|
how can i refer variables of 1 form on other...
|
|
|
|
|
Well, it depends on what is available to you. If you can write server-side code then you could carry them across in the Request.Form collection (ASP 3.0) and dynamically insert them as hidden form elements. I'd be glad to show you how to do this if it is an option. If it isn't then assuming the two forms are on the same page you could use javascript.
If the forms are on seperate pages you are going to need some server-side code to carry the variables over and keep your session state.
Real programmers don't document. If it was hard to write, it should be hard to understand.
|
|
|
|
|
:thanx pmenefee for reply
im also glad if u show me how too do that..
i want to acces variable on 2 differnet pasges
i want to make a think like
"when using yahoo maibox when we r compsing a mail and click option
"Add edit attachment" seperate window is open and we make attachment on that page and when we click dione attachmanets apear on compose mail page" hope u will understand.
looking forward for ur reply
take care
|
|
|
|
|
:thanx pmenefee for reply
im also glad if u show me how too do that..
i want to acces variable on 2 differnet pasges
i want to make a think like
"when using yahoo maibox when we r compsing a mail and click option
"Add edit attachment" seperate window is open and we make attachment on that page and when we click dione attachmanets apear on compose mail page" hope u will understand.
looking forward for ur reply
take care
|
|
|
|
|
I've just started looking at VBS as I'm beginning to dabble in ASP. While looking thru the docs about the MsgBox function, it occured to me that:
Dim Message
Message = "Ready to format C: drive. Click OK to begin"
MsgBox(Message, vbOKOnly + vbSystemModal)
may cause cardiac arrest in the moderately aware clerk. Is this correct? Will the MsgBox actually block all other applications until the victim clicks OK and accepts his/her doom? When I think of all the fun I could have been having at the hardware store, I deeply regret not looking at this long ago
Management, of course, will be unaffected, as they will blithely click on anything without reading or comprehending the message...
Instead of marrying again, I think I'll just find a woman I don't like very much and give her a house...
|
|
|
|
|
Roger Wright wrote:
Will the MsgBox actually block all other applications until the victim clicks OK and accepts his/her doom?
Yes and no, the use of vbSystemModal has two options:
- Win16 systems - All applications are suspended
- Win32 systems - The messagebox will always remain on top, however other programs will continue to load/run.
HTH
Nick Parker
|
|
|
|
|
Darn
The SDK reference didn't mention that little difference... it kinda spoils the fun
Instead of marrying again, I think I'll just find a woman I don't like very much and give her a house...
|
|
|
|
|
Roger Wright wrote:
The SDK reference didn't mention that little difference... it kinda spoils the fun
VB only allows it's little brother VBScript so much fun; that's just the way older brothers are.
Nick Parker
|
|
|
|
|
Hi,
I want some pages to have a "top line" with two search forms, going to separate pages. The top line should get a slightly different color. I have something like that in an include file:
<table bgcolor=...> <tr>
<td><a href="/">Home</a></td>
<td><form ...><input type="edit" ...> <button type=Submit"></form></td>
<td><form ...><input type="edit" ...> <button type=Submit"></form></td>
</tr></table>
The table has almost twice the required height, which looks plain ugly. I even tried to figure out howchris does it with the Search on the fromt page, but without success.
Any ideas?
TIA
Peter
<hr color="maroon"><small><i>We are ugly but we have the music </i> Leonhard Cohen [<a href="http://www.cherea.de/sighist.html" target="_blank">sighist</a>]</small>
|
|
|
|
|
What a mess when I open this up to reply
Have you tried specifying the margin and padding sizes in a style statement? How about adding a height attribute to the row or data elements?
Instead of marrying again, I think I'll just find a woman I don't like very much and give her a house...
|
|
|
|
|
Try setting the margin-bottom and padding-bottom of the form to 0.
|
|
|
|
|
I fixed it with putting the tags outside of the - but your solution is much nicer. thank you!
We are ugly but we have the music Leonhard Cohen [sighist]
|
|
|
|
|
I am just starting to read up and tinker with CSS. Two different ways of including an external CSS file are mentioned -
<link rel="stylesheet" href="my.css">
@import url(my.css);
Which is the best method to use, either by standard or browser compatibility.
Also I am having a problem with the following simple CSS. I definitely had it working and then added some new features I read about and broke it. Took it back to the way it was and it don't work.
h1,h2,h3,h4,h5,h6,p { color:#4241FF; font-family:Verdana; }
h1 { font-size=18pt; font-weight:bold; }
h2 { font-size=12pt; font-style:italic; }
p { font-size=10pt; }
I seem to be getting the everything except the colour. Any idea what I am doing wrong?
Michael Martin
Australia
mjm68@tpg.com.au
"In Summer, I like to dance naked on the roof to celebrate the event of the temperature finally falling below 40C (usually about midnight). But the neighbors have lately taken up the habit of staying up late. And looking up, at times, from their dreary, pointless lives..."
- Roger Wright 15/05/2002
|
|
|
|
|
try
p
{
font-size : 10pt;
}
you have = signs where colons should be. About the import and the link. I tend to use the way of importing stylesheets. I haven't had to use the import( it is not fully supported in NS4.
HTH
"We tend to refer to our most barbaric and crapulous behavior as 'inhuman,' whereas, in point of fact, it is exactly human, definitively and quintessentially human, since no other creature habitually indulges in comparable atrocities."
~Tom Robbins
|
|
|
|
|
Michael Martin wrote:
@import url(my.css);
Which is the best method to use, either by standard or browser compatibility.
The @import way is a more recent invention and so is not supported by older browsers like Netscape 4.x.
However this is a good thing as you can then have two different style sheets, one for Netscape 4.x and one for more recent browsers. Netscape 4.x will ignore the @import line and so effectively ignore the more modern CSS file. Modern browsers will pick up both links, but if you place the @import after the link rel="stylesheet" href="my.css" line then the @import overrides the older one.
Useful stuff for browser compatibility problems.
So to answer your question: Both are perfectly acceptable, but really for now only use @import if you know what you are doing.
Michael Martin wrote:
seem to be getting the everything except the colour. Any idea what I am doing wrong?
Ditch the equal signs (font-size=18pt ) and go back to using the colon (font-size:18pt )
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge
Alison Pentland wrote:
I now have an image of you in front of the mirror in the morning, wearing your knickers, socks and shoes trying to decided if they match!
|
|
|
|
|
Paul Watson wrote:
The @import way is a more recent invention and so is not supported by older browsers like Netscape 4.x.
Great. I will start using this method as I am only targeting my own machine using IE 6.0 as I learn.
Paul Watson wrote:
So to answer your question: Both are perfectly acceptable, but really for now only use @import if you know what you are doing.
Damn. Maybe I should rethink my last paragraph.
Paul Watson wrote:
Ditch the equal signs (font-size=18pt) and go back to using the colon (font-size:18pt)
Moron. How did I get those ='s there when the example I am copying off has :'s.
Also after closer examination the colour and font are not appearing. It is as though the line
h1,h2,h3,h4,h5,h6,p { color:#4242FF; font-family:Verdana; } is not being recognised.
Michael Martin
Australia
mjm68@tpg.com.au
"In Summer, I like to dance naked on the roof to celebrate the event of the temperature finally falling below 40C (usually about midnight). But the neighbors have lately taken up the habit of staying up late. And looking up, at times, from their dreary, pointless lives..."
- Roger Wright 15/05/2002
|
|
|
|
|
Michael Martin wrote:
h1,h2,h3,h4,h5,h6,p { color:#4242FF; font-family:Verdana; }
Odd, I cut and paste that into a CSS file of mine and it works fine (does a blue colour.)
Email the full CSS file and the HTML which is referencing the CSS file and maybe I can see something else wrong with it.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge
Alison Pentland wrote:
I now have an image of you in front of the mirror in the morning, wearing your knickers, socks and shoes trying to decided if they match!
|
|
|
|
|
Paul Watson wrote:
Alison Pentland wrote:
I now have an image of you in front of the mirror in the morning, wearing your knickers, socks and shoes trying to decided if they match!
Poor girl! What a terrible visual to have to bear...
Instead of marrying again, I think I'll just find a woman I don't like very much and give her a house...
|
|
|
|
|
The best method is <link> . Remember if you start using XHTML that it must translate into <link /> , as it is an empty tag.
For the second part, change all the = signs to colons ( : ). Also, points (pt) is a bad unit to use for screen, because it is meant as a typographical percentage of inches to be displayed on paper or something like that. There was an article somewhere on this, but I seem to have lost it, so just take my word for it an always use pixels (px).
Well, there you are! Have fun!
-Domenic Denicola- [CPUA 0x1337]
MadHamster Creations
"I was born human. But this was an accident of fate - a condition merely of time and place. I believe it's something we have the power to change..."
|
|
|
|