|
ahhhhhhh - I have much to learn sensei!
TBH, was just trying to head off the next message which would probably gone something like....
"My page doesn't work - send me the codes for getting the text! It's URGENT!"
"Knock me down, I'll get straight back up again, I'll come back stronger than a powered up pacman"
(Lilly Allen / Kaiser Chiefs)
|
|
|
|
|
kvijayajyothy wrote: alert(Text1.value)}
This doesn't work for two reasons:
1 - Text1 exists on the server, not the client
2 - If Text1 is a server side control, the framework generates it's own Id for the client.
This will work:
function getlabel()
{
var controlId = '<%=Text1.ClientID%>';
var control = document.getElementByID(controlID);
if (control)
{
alert(control.value);
}
<div class="ForumSig">Christian Graus - Microsoft MVP - C++
<a href='http://blog.metalmusings.com/'>Metal Musings</a> - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )</div>
|
|
|
|
|
Hi all
I am working on asp.net application where i need to upload a file. code what i wrote is
Private Sub CmdUpload_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdUpload.Click
If File1.PostedFile Is Nothing Then
Me.lblResult.Text = "No File Selected to Upload."
Exit Sub
End If
'Retrieve file information and upload to server.
Dim strName As String
strName = System.IO.Path.GetFileName(File1.PostedFile.FileName)
Try
File1.PostedFile.SaveAs(Server.MapPath("Resumes/" & strName))
Me.lblResult.Text = """" + strName + """ was uploaded successfully."
Catch ex As Exception
Me.lblResult.Text = "An Error Occured While Uploading File."
End Try
End Sub
Every thing is fine but its showing a error after the upload button is clicked " No access to write into the server " right now i am using my local system as server and i have clicked on all access permission "Write" . but getting the same error.
Pl help
Regards
Prakash Mishra(Banglore,India)
|
|
|
|
|
Try adding a line like this:
<identity impersonate="true" username="xxx" password="yyy" />
inside the system.web block of your web.config file, replacing xxx/yyy with your admin login to your computer. <u>Make sure you take this line out when uploading to the deployment server!</u> (And get the administrators of that to enable the appropriate write permissions for you there...)
Works for me - like you I could not, for the life of me, grant asp.net write permissions otherwise...
cheers
Fred
|
|
|
|
|
I wang to ask a question about GridView.
I have checkbox control and radiobuttonlist control in GridView.
The radiobuttonlist's enabled=false;
When the page load,when the checkbox is checked of the gridview's row,
the control radiobuttonlist's enabled=true;
Now, I want to implement it by javascript,How can i do ?
I had search the awnser about it ,but no .
I need help.
thank you .
Bennyzhang
Best Wishes!
|
|
|
|
|
Hi,
My asp.net 1.1 website security system depend on hashing passwords.So it is impossible to recover the password.I think when the user forgot his password the web application should generate a password for him automatically and send it to his email so he can log again using his new password.Could any one tell me how could I make the web application generate the password automatically?Is it safe to send it by email to the user?
I am too late but i will never give up
|
|
|
|
|
Yes, email is fine, it's certainly your most secure option. How you generate it is up to you, you could send part of a GUID, or have a table full of words and pull three out at random, or whatever you like.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: you could send part of a GUID
Do you mean that I should add a new column of type GUID in the users table...I think it is a great idea because the passwords I sent to them will differ from each other.
Thank you for these great ideas.
I am too late but i will never give up
|
|
|
|
|
It is better to send email to that person.
Make forgotpassword link.
On this page give a textbox so that user enters his email address.
Send him his newly generated password by email.
Update his password in your DB table.
If any quieries then please ask me.
Kartik
Software Developer
|
|
|
|
|
TheEagle wrote: My asp.net 1.1 website security system depend on hashing passwords.So it is impossible to recover the password.
Yes.
You could use brute force to find a password that gives the same hash code, but there is no guarantee that it's the same as the original password.
TheEagle wrote: I think when the user forgot his password the web application should generate a password for him automatically and send it to his email so he can log again using his new password.
Yes, that is what you normally would do when the passwords are hashed.
TheEagle wrote: Could any one tell me how could I make the web application generate the password automatically?
Pick some characters by random from a string with suitable characters. I exclude characters like "Il10oO" when generating passwords.
TheEagle wrote: Is it safe to send it by email to the user?
No, it's not safe. The email is sent unencrypted over the net, and it travels through mail servers that might be possible to hack into.
It might be safe enough for your purposes, though.
---
single minded; short sighted; long gone;
|
|
|
|
|
Guffa wrote: You could use brute force to find a password that gives the same hash code, but there is no guarantee that it's the same as the original password.
*grin* I didn't say this for fear of breaking his heart
Guffa wrote: It might be safe enough for your purposes, though.
Thing is, what's a more secure option ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: Thing is, what's a more secure option ?
:: Printing it and sending it in a sealed envelope.
:: Putting it in a text file in an encrypted archive file, and send the file and the password for the file in separate mails.
et.c...
---
single minded; short sighted; long gone;
|
|
|
|
|
Guffa wrote: Pick some characters by random from a string with suitable characters
Do you mean each time picking characters by random from the same string?Doesn't this mean that some passwords will be the same?
I am too late but i will never give up
|
|
|
|
|
So what ? Do you take steps to ensure that no two passwords are the same now ? How does it matter ? It's not like users enter a password alone, they need the username as well, right ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
You are right.So I don't need to add a cloumn just a new GUID or a string to pick characters from it by random.Thank you very much and all experts who helped me in this thread.
I am too late but i will never give up
|
|
|
|
|
TheEagle wrote: Do you mean each time picking characters by random from the same string?Doesn't this mean that some passwords will be the same?
If you have a string with 30 characters and pick four characters for the password, there is a 0.00012% risk that two given passwords will be the same.
If you generate a large number of passwords, of course some will be the same, but that is not a problem. Do you have a ATM card with a four digit PIN code? Have you ever stopped to think that there are thousands of other people who have the exact same PIN code as you have?
---
single minded; short sighted; long gone;
|
|
|
|
|
hello
I the project of asp.net 2.0 .
I have to disable other controls on the page when Popup is displayed on the screen.when popup is closed controls should be enabled.
I hhave two display two different Popups depending on condition,so I can't use AJAX control ModulPoupExtender.
How to achieve this using javascript?
Please guide.
thanks.
yog
hui gfgh kgdgrt njjn hjgkn
|
|
|
|
|
The main trick is that if they are server controls, you need to store their client side Id with something like
var controlId = '<%=ServerControl.ClienID%>'
Then it's just a case of
var control = document.getElementByID(controlID);
if (control)
{
control.disabled = true;
}
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
A quick way of doing it that doesn't involve loads of enabling and disabling is to add a "veil" to the page, which is basically a transparent div (or opaque - looks kinda cool!), sized to the full screen, then when you show your popup, show the veil on z-index 99, so that it's in front of everything else (except the popup window obviously) - this then stops anything behind it recieving input.
"Knock me down, I'll get straight back up again, I'll come back stronger than a powered up pacman"
(Lilly Allen / Kaiser Chiefs)
|
|
|
|
|
hi Lilly / Kaiser ,
Thank you for the reply but will you please tell me how to use this transperent div that is "Veil".
_I'm using asp.net 2.0 is it possible in this.
Please explain in a little bit detail way.
thank you.
yog
hui gfgh kgdgrt njjn hjgkn
|
|
|
|
|
i have dropdownlist which displays country names which is mapped to BLL
i want first item in that list should be "Select country name"
what i must do ?
vijaya
vijaya
|
|
|
|
|
Hi,
After binding your dropdownlist to the datasource you can explicitly insert a listitem to the dropdown list.
the following is the code.
dlst.Items.Insert( 0, "Select One" );
I hope this will help u.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Hi
U can use a Required Field validator and set Initial Value Property to "Select country name"
So that if u select the item " Select country name " it wont select ...
I think this will useful for u
Bye
Naresh.s.s
|
|
|
|
|
Hi All,
When I Compile my web site "Unable to start debugging on the web server. The underlying connection was closed: An unexpected error occurred on a" error message shown. Plz Help Me.
Regards:
SMK
|
|
|
|
|
Try to unistall and again install the IIS.
Gautham
|
|
|
|