|
my page reloads the data from data source with every refresh
I want the reload occures only when desired
So, where can I put the code that loads the data?
I tried the Page_Load , InitializeComponent , and OnInit ... but faild
Mohamed Gouda
Egypt
|
|
|
|
|
try this on Page_Load event
if(!Page.IsPostBack)<br />
{<br />
}
I Love SQL
|
|
|
|
|
Hi
i am working in asp.net using vb.net
and unable to change the password for a user
i have 3 fields old password, new password and confirm password
please help.
Thankyou
|
|
|
|
|
You need to be more specific
What is exactly your problem
Mohamed Gouda
Egypt
|
|
|
|
|
i need to know the code for changing the password for a user using vb.net
|
|
|
|
|
|
Set one compare validator and link it with new password controls(Textboxes),on click event of button set code which lookup on database for old given password if query match then update old password to new given password.
I Love SQL
|
|
|
|
|
add this code on button click
dim cmd as new SqlCommand("update tablename set password=@pass
where username=@uname)", con);
cmd.Parameters.AddWithValue("@uname", textBox1.Text);
cmd.Parameters.AddWithValue("@pass", textBox2.Text);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
|
|
|
|
|
Storing passwords as clear text - don't you think that's a bit insecure?
It is good practice to apply a 1-way salted hash[^] to passwords before storing them in a database. To check whether a user has entered the correct password, their input should be hashed and compared against the stored hash. The Membership API in ASP.NET 2.0 provides out-of-the-box support for password hashing.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
So, you know his database format ? And you think it's a good idea to use default names for controls ? What if textbox1 and textbox2 accidentally were swapped ?
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
In order to answer this, we need to know how you store the passwords to start with. I suggest you read this[^]. I'd start by learning enough about SQL to understand how to write a database query, then you can continue to work on the codebase that you've been given, and perform the task at hand.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
|
Store the time someone added a ticket, and remove it based on that time, not on the time of the last request.
Christian Graus - Microsoft MVP - C++
"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,
I want to change my GridView data Format. For this I have used DataFormatString() to display date as mm/dd/yyyy.
<asp:BoundField DataFormatString="{0:mm/dd/yyyy}" DataField="P_DATE" SortExpression="P_DATE" HeaderText="P_DATE"></asp:BoundField>
But the output is like mm/dd/yyyy HH:MM:SS AM.
|
|
|
|
|
also add htmlencode="false" in this tag
|
|
|
|
|
i have a treeview with 3 level. when i write below code the tree collapse all,
protected override void OnPreRender(EventArgs e)
{
orgTreeView.CollapseAll();
if (orgTreeView.Nodes.Count > 0)
orgTreeView.CollapseAll();
}
but i want it open and expand for one level, can anybody help me?
|
|
|
|
|
hi
i m using asp.net with c#
my problem is--
I want to add the name of all the database and all the
tables of the database in treeview in my webpage
i am using sql server2005 as database
please help
thanks
|
|
|
|
|
sumit7034 wrote: I want to add the name of all the database
select name from master..sysdatabases will give you all the database names.
sumit7034 wrote: tables of the database
SELECT * FROM sys.Databases will give you all table names contained in the current database.
|
|
|
|
|
|
hi ,
How to insert ,update and delete into DetailsView Programmatically?
thanks
Wafy
|
|
|
|
|
mahmoud wafy24 wrote: How to insert ,update and delete into DetailsView Programmatically?
For some obscure reason, they hide this information in the documentation[^].
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
i am using rdlc local report.
two of my reports,having one page it displays perfect in report viewer and also print fine.
but when i export that report in pdf format.it gives 10 pdf pages,with page width breaking.
what is the problem?and how to fix this?
plz help me.
thanks
|
|
|
|
|
You'll have to tweak your page layout so that your report content doesn't span more than 1 page width.
You could i) Reduce the size of the page margins ii) Reduce the width of your report
Play around with these properties until the PDF output renders OK.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi
I'm trying to add sqldatabase in my application. But i'm unable to do this. It's giving error like this.
"Failed to generate a user interface of a Sql Server due to failure in copying database files. The connection will be closed."
Plese help..
krishna veer singh
|
|
|
|
|
I have no idea what you even mean. Some wizard lets you import a SQL Server DB holus bolus ? How bizarre. I don't even use the database explorer in VS, I use SQL Server and write code in my data layer.
What are you doing exactly ?
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|