|
I assume you're trying to do this programmatically? Wrong forum otherwise...
However, this has nothing to do with programming - it is a system policy enforced by your sysadmins. You will experience the same result if you do it manually.
The problem is that people will change passwords repeatedly until the system allows them to use their old password when they are asked to pick a new one (the system only rembers a specific - configurable - number of passwords). So, due to the inevitable stupidity of humans in general and computer users in particular, they have to be thwarted somehow - hence the minimum password age policy. I even think one day is the default in Active Directory (which would make sense as no sane sysadmin would ever use a smaller value or disable the policy).
In case you are the sysadmin and are unaware of this (which could be excused if you're a developer playing with Active Directory, but not otherwise): You will find this in the default domain policy or the default domain controller policy (not so in my own domain at the moment so I can't check and don't remember which). Look around in the security stuff under computer settings (you will of course need to be a domain administrator in order to mess around with it).
If you have accounts that are to be used by services or other software and that can't change, you have the option of disabling password aging for a particular account (on one of the account property sheets) - after assigning it a *really* long, random and complex password, of course.
--
Peter
|
|
|
|
|
I need help on this.
In my project I have a folder called "files". Inside that folder I have many file which I have uploaded. Now ,just by writing the link of the files in the address bar of Web Browser (ex: http://localhost:1234/Server/files/file.rar) anyone can download that file. I want to change that. When the clients are writing the link, instead of downloading the file, another page will be opened (ex: continue.aspx) and by clicking a button on that page, they can download that file (the story is like in rapidshare, filefactory, megaupload ...)
Can anyone tell how this can be done.
|
|
|
|
|
The way I would do this, is to stuff the files in the app_data folder, and read them in code and send them with a response.binarywrite, but only to users who were allowed to access them.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
you can save the file in your database then read from database
it is safer but slower
modified on Sunday, May 18, 2008 1:01 AM
|
|
|
|
|
I'm looking for a good analyze-tool for websites.
I have used the tools at sitening.com but they are starting to charge for it as of June 1st.
The kind of tool I'm looking for is something that analyzes a site and gives suggestions on how to improve the coding.
It doesn't have to be a free service but that's always nice
|
|
|
|
|
I have some crystal reports in my maintanance project.when ever we are editing anything inside the crystal report (Cry_variablepay.rpt),its automatically generating another crystal report file (Cry_variablepay1.rpt) in the project file itself. the application shows build error showing that "the namespace already contains a definition for Cry_variables" ......ie; the newly created crystal report file has the same namespace as the older one.
so i cant able to build the project wthout error...can anybdy suggest the reason and solution...
|
|
|
|
|
hi,
i want to get a string from 0th position to current cursor position in HTML Textbox using javascipt.
anybody know pls reply me....
Nothing is Impossible. Keep always Smiling...
|
|
|
|
|
Hi All,
I am working with sub reports using Crystal report.
In the sub report I want a page header and footer but it is having only the report header and footer.
Can anyone tell me how to include a page header and footer in sub reports.
Thanks a lot in advance.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
hai frnds
i m devloping a page in asp.net 2.0
in that page , i have a button - "Download Demo"
and the demo file is a vedio file
now my problem is , how to download that file...
when user clicks on "download demo" button , then he should be able to download the file.
plz help me
its very urgent
thankis in advance
vijay
|
|
|
|
|
I am astounded at the sort of questions people ask that show they have not bothered to do any sort of research themselves.
If you look for Response.BinaryWrite on the web, I guarentee you that you'll find the answer. If you want to force a download, you also need to set a filename and a contentType so that the browser downloads the file instead of trying to play it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello....
How to upload a Project......?
|
|
|
|
|
FTP.
Why did you ask this again ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Because. ...
U haven't Replying me...
So i am asking again in another way...
|
|
|
|
|
You are yet to ask a meaningful question, to be frank. Your question is so brief that it's hard to work out what your actual problem is, given how straight forward the answer is ( you use FTP to upload your site to a server ).
Either way, 'you' is 5 million members, so long as your question is visible, it's just rude to ask again.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi everyone,
I am developing a website using asp.net with C#.
And I developed a toolbar using javascript like google and yahoo toolbar which is placed in the browser separately.
Toolbar has the toolbar id.
I need to capture the toolbar id and save into the mysql database during the page load.
So that, I put the javascript funcation called myFunc() in the Source file of the page to capture the toolbar id.
I need to save the toolbar id into the mysql database and so I applied the coding to insert the toolbarid into the database.
When I execute the coding, first of all, the page is loaded, then only the javascript is executed. Therefore, I am unable to get the toolbar id to the variable assigned in the page load.
Please help me regarding this.
How do I call the javascript function to the page load event.
Thanks in Advance,
J. Mohan.
J. Mohan
|
|
|
|
|
Hi,
Test this one:
Page.ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "jsFunctionName('Params');", true);
you can execute scripts on page load event using this way
|
|
|
|
|
Thanks for your reply,
You have represented "mykey". Should I represent the "mykey" in the javascript.
I placed your code. sorry, I doesn't work. Please guide me.
Thank You,
J. Mohan.
J. Mohan
|
|
|
|
|
RegisterStartupScript registers the startup script with the Page object using a type, a key, a script literal, and a Boolean value indicating whether to add script tags.
public void RegisterStartupScript(
Type type,
string key,
string script,
bool addScriptTags
)
Parameters
type
Type: System.Type
The type of the startup script to register.
key
Type: System.String
The key of the startup script to register.
script
Type: System.String
The startup script literal to register.
addScriptTags
Type: System.Boolean
A Boolean value indicating whether to add script tags.
So, I think you cant represent the "mykey" in the javascript but you can represent script lirtal and you can send your params using that.
|
|
|
|
|
The other answerer did not understand you, I do not think.
you need to buy a book ASP.NET book, you plainly do not understand how it works. Page_Load runs on the server. Then all events run on the server. Then Page_PreRender will run. Only after all these things occur, does script get sent to the client, where javascript code will run. You need to get your toolbar Id in C#, if you want to store it in your DB. OR if you are generating something purely on the client ( bizarre as that may be ), you can send it back to your page with AJAX. That would be really weird tho, you just need to realise no javascript code can hope to run, until all the codebehind C# code has finished running, and the javascript code has therefore been sent to the client, where it runs.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks for your reply,
I am a beginner to Asp.net with c#. For all I know ,I took effort to find the solution for the problem mentioned here. I really don't know how to solve it. Therefore, I asked question to you.You expert may encourage the beginners.
J. Mohan.
J. Mohan
|
|
|
|
|
cant we call the fun on body tag ?
And Here it seems to be hurting when people ask to buy a asp.net book ... but its a fact that everyone needs a book it does not matter whether a expert or beginner
Happy Programming
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
Nz([fieldname],0) not working
Select MAX(UploadID) as id from fshUploadedMaster
in above query if no record then returning null but I want to replace null by 0(zero) if returning null
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
select COALESCE(MAX(UploadID), 0) as id from fshUploadedMaster
In future please ask SQL questions in the SQL Forum.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
ok
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Use a condition on your query for example like this:
IF (SELECT MAX(UploadID) AS id FROM fshUploadedMaster) is null
Select 0 as id
RETURN
|
|
|
|