|
In C#:
If you want to create some sub dirs:
<br />
string basedir = "C:\\MyDir\\";<br />
string[] newsubdirs = new string[] { sub1, sub2, mynewsub };<br />
<br />
System.IO.DirectoryInfo dirInfo = new System.IO.DirectoryInfo(basedir);<br />
<br />
for(int i = 0; i < newsubdirs.Length;i++)<br />
{<br />
dirInfo.CreateSubdirectory(".\\" + newsubdirs[i]);<br />
}<br />
-- modified at 12:55 Thursday 27th July, 2006
|
|
|
|
|
Dictionary <string, Dictionary<string, string>> myDictionary = new Dictionary<string, Dictionary<string, string>>();
Obviously you can replace the strings with what datatypes you like. You could also set a Dictionary as a Key, but that gets confusing.
|
|
|
|
|
HI all,
I read the ISAPI interface article and wanted to know how i could use those routines for sending out fax using ASP?
I am bit confused here.We are using a fax server here which is called WIN FAX.i wanted to know how i could send fax through ASP .Please help!!!
Smita
|
|
|
|
|
Dear Sir,
I have a serious problem is that i don't how to configure PayPal using PHP on my webpage at all.
Because i want user pay money with PayPal
So please help me and give sample code to me soon.
Thank you!
Hy Chanhan
|
|
|
|
|
Doesn't PayPal provide you with the necessary script.
Go to their web site and look up their FAQ's etc.
Also look at Wikipedia
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Hi all.I use $Timestamp=date("g:i A l, F j Y."); to collect time and date the visitors entered my site . It inserts the data in to mysql database in this format :
3:02 AM Monday, July 24 2006
[CODE]mysql_query("INSERT INTO logdisplay VALUES('$ID','$column1','$Timestamp','$column2','$columns3')");
$affected_rows = $sql->a_rows;[/CODE]
But when i query the database and use order by ,the data does not get displaied in order of newest on the top!!
[CODE]select * from logdisplay order by Timestamp[/CODE]
could any one help me so that i get newst log records on the top .In another how to query my table baced on time an data.Thanks
|
|
|
|
|
Try it,
select * from logdisplay order by Timestamp DESC
|
|
|
|
|
select * from logdisplay order by Timestamp
use your timestamp field name in database instead of Timestamp word in above as below for sample:
select * from logdisplay order by field1
Human knowlege belongs to the world
|
|
|
|
|
so could any one show me the insert statemts that records both time and date in a way that can be quried and sorted baced on time and date. The page is triggered when a visitor visits my page and i records its visit history and later on show the logs baced on time and date of visits.Thanks
|
|
|
|
|
use this commands in your mysql query:
UNIX_TIMESTAMP
FROM_UNIXTIME
Human knowlege belongs to the world
|
|
|
|
|
which one ? how to use it in insert statemtn and how to query the table so i get output baced on time and date user entered my site.
|
|
|
|
|
hi I'm Making a Web Application in Asp.Net 1.1
My Designer has given me HTML for the Admin part.He has used "style="BACKGROUND-IMAGE: url(images/tab2.gif)" tag for background image.but what i found that Asp.net 1.1 does not support style.
it eliminate this automatically and background images got disappear.
is there any other alternative for it or any appropriate solution for this problem.thanx
|
|
|
|
|
Yes, ASP.NET does support style.
What control is it that you are trying to use it on?
---
b { font-weight: normal; }
|
|
|
|
|
<pre>
<TD style="BACKGROUND-IMAGE: url(images/tab1a.gif)"><IMG height="10" src="AdminAgentImg_files/tab1a.gif" width="4"></TD></pre>
on this TD but it automatically eliminates the style tag.
why is this happenning?
thanx
-- modified at 2:53 Tuesday 25th July, 2006
|
|
|
|
|
These two images are going to overwrite each other. Try taking the <IMG height="10" src="AdminAgentImg_files/tab1a.gif" width="4> tag out of the table cell and trying it. If that doesn't work, maybe it's something to do with the fact that these two images have different paths:
images/tab1a.gif
AdminAgentImg_files/tab1a.gif
|
|
|
|
|
hi,
i try to do it..
but style tag disappear with background image.
not getting what to do to solve this error.
is there any thing to get background images in asp.net.
thanx
-- modified at 5:12 Tuesday 25th July, 2006
|
|
|
|
|
As that is not a server tag, ASP.NET shouldn't change it in any way.
Do you mean that the style property actually is removed in the html code that is sent to the browser?
---
b { font-weight: normal; }
|
|
|
|
|
yes this is exactly happen what to do?
|
|
|
|
|
Then you have to show more of the code. Is it used inside a server control, like a repeater or something? Is there anything else that is removed in the produced code? Can you show the code that is produced?
---
b { font-weight: normal; }
|
|
|
|
|
Hi Everybody,
My PC have following things installed on it.
-.NET framework 1.1
- IIS 5.1
-.Net Visual studio 2003.
When I crate a new project of type 'ASP.NET Web Application', I receive
following error.
"The web server reported the following error when attemting to create or open the web project located at the following URL ://localhost/weapplication1; HTTP/1.1 500 Internal Server Error".
After this no prject is created.
I checked if IIS is working or not by manually creating a directory in wwwroot folder, placing a single index.htm file inside it and then accessing that from web-browser by using URL as "http://localhost/DirectoryName". It is working fine.
Please see if anybody can help me out in this problem.
Regards,
Amol
Every thing will come to you if you have faith.
|
|
|
|
|
You may need to re-register asp.net for IIS. I can't quite remember the syntax for this command though...
|
|
|
|
|
It May be the problem of your FireWall,
Plz see Is your fire wall has blocked this application?
|
|
|
|
|
since it is 500 error - it must something to do with coding. Could you un-check the option in IE browser, "Show Friendly error messages", it would then show the actual error message.
To register asp.net in iis
aspnet_regiis -i
You would need to traverse to that folder where this exist, meaning if 1.x framework need to run this from that location in dos prompt.
Hope that helps.
Thankss.
|
|
|
|
|
Hi,
I have a form with two text box and one browse button and a submit button .on action page2 . the code which i have is uploading script ( for the image to get uploaded) . So i need the text box value to be displayed on the action page2.
how can i do it.
but i tried the property using name= Request.Form("title") and stored in an variable. and then used the Response.Write("name") . but it shows an error stating that binary method is called so i can't use the request method r response method . how am i going to solve this .
Wat is the alternative method to do it . so that i can upload my image as well as i can display my contents of the text box . Plz help me i am new to this kind of concept . if needed i will send the file too.
imthi
|
|
|
|
|