|
salon wrote: I am using a GricView control which performs some operations on teh click of button or on clicking of a link button.
Take both control,Gridview and Button,in update panel,set Updatemode as conditional.
Do not need to register button so remove this line ...............RegisterAsyncPostBackControl(this.Button1);
OR.
take gridview in update panel and button is out of update panel,set Updatemode as conditional.
set trigger of button click event in update panel.
please don't forget to vote on the post that helped you.
|
|
|
|
|
aspx page
<asp:updatepanel id="UpdatePanel1" runat="server" updatemode="Conditional">
<contenttemplate>
<asp:gridview id="GridView1" runat="server" autogeneratecolumns="False" datakeynames="ID" datasourceid="SqlDataSource1">
<columns> ----
<asp:sqldatasource id="SqlDataSource1" runat="server" connectionstring="">]]>"
SelectCommand="-----">
<asp:button id="Button1" runat="server" text="Button" onclick="Button1_Click">
aspx.cs page
protected void Button1_Click(object sender, EventArgs e)
{
GridView1.Enabled = false;
}
strill its getting refershed
|
|
|
|
|
Put Button1 in update panel or set trigger of button click event
please don't forget to vote on the post that helped you.
|
|
|
|
|
<asp:updatepanel id="UpdatePanel1" runat="server" updatemode="Conditional">
<contenttemplate>
<asp:gridview id="GridView1" runat="server" autogeneratecolumns="False" datakeynames="ID" datasourceid="SqlDataSource1">
<columns> ------
<asp:sqldatasource id="SqlDataSource1" runat="server" connectionstring="">]]>"
SelectCommand="S--">
<asp:button id="Button1" runat="server" text="Button" onclick="Button1_Click">
is it like this?
|
|
|
|
|
i have putted it in Update Panel and how to set trigger?
|
|
|
|
|
I have a hyperlink in GridView....which links to some URL
Now I have putted the entire GridView in Update Panel and now it is not refreshing on the FillGrid button.But the hyperlinks inside the GridView are not working, infact they are showing the URL as needed but do not navigating.
what should be the problem?
|
|
|
|
|
hi, does anyone know how i can stream an avi video on as asp.net page??
many thanks in advance
|
|
|
|
|
By embedding the windows media player in your page, I beleive,
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 )
|
|
|
|
|
|
I am running windows xp. That download seems to be for windows server 2003. any ideas how i can stream on a xp platform
|
|
|
|
|
what is the code for adding all the databases and their tables in a treeview using vb.net in asp.net
please help
|
|
|
|
|
This question was already asked today by someone else. Did it not occur to you to search the forums before posting?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
i m using asp.net 2.0 , and i want to include the ajax libraries. so how can i do this ?
asif rafiq
|
|
|
|
|
By starting here http://www.asp.net/ajax/[^]
Are you really that lazy or inept that you couldn't search for this on your own?
only two letters away from being an asset
|
|
|
|
|
Try here[^].
Do you realise that AJAX and the ASP.NET AJAX libraries are two different things ? I am guessing you want the MS libraries rather than learning how to do it yourself, tho.
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 )
|
|
|
|
|
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 )
|
|
|
|