|
Thats nice
but can you provide one example/article where i can play with it
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
have the coding to encrypt password:
private void Page_Load(object sender, System.EventArgs e)
{
if (this.IsPostBack == false) {
ddlChooseAlgo.Items.Add("");
ddlChooseAlgo.SelectedValue = "";
}
}
private void cmdEncryptValue_Click(object sender, System.EventArgs e)
{
txtShowValue.Text = FormsAuthentication.HashPasswordForStoringInConfigFile(txtGetValue.Text, ddlChooseAlgo.SelectedValue);
}
Here the encryted value is dispalyed in the textbox.My problem is to insert the encrypted password value into sql database...Please anyone give me a idea to insert into sql
With Regards,
Samson
|
|
|
|
|
samsonx wrote: Here the encryted value is dispalyed in the textbox
If the value is displayed in the textbox what is the problem for inserting that to database ?
samsonx wrote: Please anyone give me a idea to insert into sql
Create connection using SQLConnection class. Write query in command and call ExecuteNonQuery()
|
|
|
|
|
Hi:
I have created a simple web page and was able to published. Anyhow, I went back and create a master page. How can I tied the rest of the pages onto my master page.
I found most example showed how to create a master page then create a default.aspx then selected master page to attch them together.
Thanks in advance.
Eyungwah
|
|
|
|
|
if u want the master page remain the same for ur entire application,
configure it in ur web.config file in the following way.....
-----<configuration>
<system.web>
<pages masterpagefile="~/MasterPage_DefaultContent.master">
----
or...
if u want this to be master page for some of ur aspx pages then include the Page directive in ur aspx page and assign the master file in the masterfile attribute of the page directive...
mareers
|
|
|
|
|
f u want the master page remain the same for ur entire application,
configure it in ur web.config file in the following way.....
-----
in configuration tag
then system.web tag
in pages tag specify the location of ur masterfile in the masterpagefile attribute
close pages tag
close system.web tag
close configuration tag
----
or...
if u want this to be master page for some of ur aspx pages then include the Page directive in ur aspx page and assign the master file in the masterfile attribute of the page directive...
mareers
|
|
|
|
|
|
how can i open modal and modeless dialouge box in asp.net?
thks.
yesu
|
|
|
|
|
|
You can only do this in IE. Only cross-browser option is to use DHTML features to popup a single div with a shim over the rest of the page.
|
|
|
|
|
I have a "Delete" button in an aspx page. When I click the "Delete" button, I need to get the number of records from the database and display it in a confirmation box. If the response is "OK" I can continue with the delete operation, if the response is "Cancel" I should stop further processing.
How to show the confirmation box and how to capture the return value of the confirmation box?
|
|
|
|
|
confirmation box can be shown using java script.....
try it out...
mareers
|
|
|
|
|
Hi,
For displaying popup message on clicking of an asp button, you can call a javascript function.
Button1.Attributes.Add("OnClick","return TestPopupFunction();");
In this javascript function:
<script language="javascript" type="text/javascript">
function TestPopupFunction()
{
var a = confirm("Are you sure you want to delete?");
if (a == true)
{
}
else
{
return false;
}
}
</script>
Hope this helps you.
Harini
|
|
|
|
|
But I need to get the number of records from the database and display it on the confirmation box.
Like
"Table has 20 records
Do you want to continue?"
|
|
|
|
|
Hi
Add one hidden field in your web app for storing number of records.
On loading web app, get the number of records and assign in a hidden variable. Your message should concatenate with this value.
For eg.,
var vConfirmMsg = "Table has " + document.getElementById('hidden id').innerHTML + " records. Do you want to continue?";
and continue with the code as I gave earlier
var a = confirm(vConfirmMsg)
Hope this is clear
Harini
|
|
|
|
|
What if the situation is like this?
I have a list box in my aspx page. I can select more than one departments from the list box. On clicking the delete button, I should get the number of records in each departments and display the departments and number of recokds in the confirmation box.
Can I use the same method for this situation also?
|
|
|
|
|
What if the situation is like this
I have a list box and I can select more than one departments from the list box. On clicking delete, I should get the number of records for each departments and show the departments and the corresponding active record number in the confirmation message?
|
|
|
|
|
I have created a popup form that is launched when a user clicks a button on a page. Now, if there has been no recent activity on the page and I click the button the popup form enlarges itself and fills the whole page. How can I correct this anomaly? Where should I start looking? The rendering code?
|
|
|
|
|
Hi all,
I trying to access a file on a server using the IUSER. The IUSER has the necessary access on the server, but I still receive a Access Denied Error. What am I doing wrong? Can anyone please help me. I'm using asp(old school).
Many Thanx in advance
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r My Blog: ^_^
|
|
|
|
|
Trying to write files, I assume?
IIRC in your website configuration options, there is a checkbox whether to allow writing files or not. must be checked.
|
|
|
|
|
No, I'm trying to read the contents of the files ...
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r My Blog: ^_^
|
|
|
|
|
still, there is definitely an options there somewhere that allows you to read files. There's a bunch of these optins, like executing scripts (CGI extensions?), reading files, directory browsnig on/off, etc. I'm thinking you need to create a virtual directory for you website, and when creating these optiosn are definitely there.
Oh, and if this is IIS7, I've no idea
|
|
|
|
|
Thank you very much for the help Anton
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r My Blog: ^_^
|
|
|
|
|
Did I help though? Or was I totally off? helps knowing whether my answer was a correct answer, heh. Though I guess it did, as I've spent a great amount of my time fooling with classic ASP back in the day, and I think I remember way too much of things I needed to do it it/for it.
|
|
|
|
|