|
In Dreamweaver MX (phpcode)
Hi,
Im trying to put a date in a text box that has +14days from the current date, how would you do this.
Is it something like "date()+14"
I cant get it working!!!!
|
|
|
|
|
The PHP mktime function is what you want: Linkety[^]
$todayArray = explode("-", date("M-d-Y"));
$future = date("M-d-Y", mktime(0, 0, 0, $todayArray[0], <code><code><code>$todayArray[1]+140</code><code>,</code></code></code><code><code> </code><code>$todayArray[2]</code><code>));</code></code><code></code><code></code>
Brad
Australian
- Captain See Sharp on "Religion"
any half intelligent person can come to the conclusion that pink unicorns do not exist.
|
|
|
|
|
But where do i put this in the code? I have tried to insert this code in the initial value box and it still doesnt work... grrrr!!!
|
|
|
|
|
ok this depends exactly what you want to do with the value you get
also brad does your solution take into account month and year (and leap year) rollovers?
|
|
|
|
|
PHP date functions handle all that for you.
Brad
Australian
- Captain See Sharp on "Religion"
any half intelligent person can come to the conclusion that pink unicorns do not exist.
|
|
|
|
|
Please enil me the code you are using
Brad
Australian
- Bradml on "MVP Status"
If this was posted in a programming board please rate my answer
|
|
|
|
|
I have more of a design type of question.
Can anyone tell me if it is possible to :
I have a win 32 dll and a C# web service. Instead of creating a c# client, i would like to use my win 32 dll as the client. I use this dll for other things that are all file related. Is it possible for me to make the dll the client and to be able to call the c# web service and send and receive data from it? If so, does anyone have any examples of how to turn an already existing win 32 dll into a client accessing a c# web service?
|
|
|
|
|
With VisualStudio.Net, i'm using an installer class with a custom action
on my setup project to ask the user a serial number. A "Textboxes"
dialog on the "user interface" provides the serial number string to an
overrided version of then install procedure, inside my installer class.
My problem is that the install sub is able to verify the serial number
entered, but then i can't stop/cancel the installation procedure.
|
|
|
|
|
|
Thats very interisting but it is a little more complicated than i want
i'am a fresh developer and seeking as easy solution
the problem again that i can't stop the installer after validating the serial number
i write VB.net code, so please help me
Murad Surkhi
|
|
|
|
|
I've made some deep search into a problem yesterday, and (believe it or not) nobody could stop VS installer. Everyone either:- switched to another installer (by the way, there was a poll here at CodeProject, very interesting); or
- embed serial check logic into theor programs, not into installers.
The bad thing is that VS installer is very simple tool, MS never tried to make it a more-or-less comprehensive installer tool...
-------------------------
Don't worry, be happy )
|
|
|
|
|
I'am developing a web application so i have to check the serial number a the installation phase and stop the installer if the serial number is wrong.
so what do u suggest to solve this problem?
Murad surkhi
|
|
|
|
|
I suggest that you wait for Visual Studio gurus, maybe they'll give you the clue...
-------------------------
Don't worry, be happy )
|
|
|
|
|
how to create a gridview
thomas
|
|
|
|
|
1. Create a new aspx page
2. Open the Toolbox toolbar
3. Click and hold on the GridView control
4. Drag on to page
5. Let go of mouse button
|
|
|
|
|
When I tried to convert to Windows app to Web Application i get an error saying
"Error 4 'ASP.satori_recherche_aspx.GetTypeHashCode()': no suitable method found to override c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\websatoricontact\5f44883e\69c9d6e5\App_Web_ujyjcgyh.8.cs 3177
"
can anyone solve me it
Regards,
LEE
|
|
|
|
|
Not without seeing the code...........
|
|
|
|
|
I am using WebForm satori_recherche from here i tried to call method of this form(satori_nouveaustructure )
Here is the sample code.
using (satori_nouveaustructure oForm = new satori_nouveaustructure()) {
oForm.CurrentContact = (Structure)ObjectContext.Current.LocalStorage.Create(typeof(Structure));
oForm.CurrentContact.Nom = textBoxNom.Text;
oForm.CurrentAdresse = oForm.CurrentContact.AdressePrincipale;//(Adresse)ObjectContext.Current.LocalStorage.Create(typeof(Adresse));
// oForm.ShowDialog();
}
Error show which is in bold one
Regards,
LEE
|
|
|
|
|
I'm pretty sure you can't just create a new form (Page) via its constructor, only the ASP.NET runtime will create Page objects during the request lifecycle. By the looks of things, you're trying to show another dialogue in the new form. Web applications work completely differently to WinForms apps, you'll find it very difficult to try and convert the UI code. I would suggest you try keeping as much business logic as possible and start the aspx (UI) coding from scratch since the code is totally different from WinForms.
|
|
|
|
|
Thank for the comments. But still have this errors; can you solve this.
Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class
Regards,
LEE
|
|
|
|
|
Lee Ponratnam wrote: When I tried to convert to Windows app to Web Application
How you manage to convert it ? Is there any tool or you have done manually ?
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
I am doing manually
Regards,
LEE
|
|
|
|
|
Then you're in for a WORLD OF HURT!!!!!!!!
Web / Win apps are so completely different that it's gonna be virtually impossible - and given that you're familiar with win apps, you'll find the "way to do things" is totally different (eg - you're trying to create a Page object etc....)
Perhaps a better way to do it would be to abstract as much functionality as possible into a middle tier - that way you're not furkin around with presentation code, then write a web UI from scratch...
I'll help if you need it..
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi all,
I'm trying to access the contents of a remote file on a server using the IUSR, I have set all the security access that I know of on the server for the IUSR. (Unless I forgot something.)
(I'm using old school ASP)
I tried the following:
fsDB=Server.CreateObject("Scripting.FileSystemObject");
var fileName = "\\" + "\\" + <server_name>+ "\\<dir>\\<dir>\\testfile.txt"
var remFileDB=fsDB.OpenTextFile(fileName, 1,false);
But I keep receiving the following:
Error Type:
Microsoft JScript runtime (0x800A0046)
Permission denied
Can anyone please help me.
Many Thanx
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r My Blog: ^_^
|
|
|
|
|
Programm3r wrote: remote file on a server using
If the server doesn't have RW permission for the specific directoy, you won't be able to perform some actions for the directory.
If the server has an user control panel, Give permission to that directory for IUSR. It doesn't mean anything applying permissions to a specific file via scripting, because main subject is the server first.
I hoep that helps.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|