Click here to Skip to main content
15,911,896 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow to pass value from one telerik ajax panel to another telerik ajax panel Pin
Piyush Vardhan Singh7-Aug-07 22:42
Piyush Vardhan Singh7-Aug-07 22:42 
AnswerRe: how to pass value from one telerik ajax panel to another telerik ajax panel Pin
Parwej Ahamad8-Aug-07 0:22
professionalParwej Ahamad8-Aug-07 0:22 
Questionprompt "open with" dialogue box in web form Pin
Hema Vidyaraj7-Aug-07 22:38
Hema Vidyaraj7-Aug-07 22:38 
AnswerRe: prompt "open with" dialogue box in web form Pin
Vasudevan Deepak Kumar7-Aug-07 23:09
Vasudevan Deepak Kumar7-Aug-07 23:09 
GeneralRe: prompt "open with" dialogue box in web form Pin
Hema Vidyaraj8-Aug-07 0:19
Hema Vidyaraj8-Aug-07 0:19 
Questionvisual studio can not open the application Pin
avinol7-Aug-07 22:28
avinol7-Aug-07 22:28 
AnswerRe: visual studio can not open the application Pin
Vasudevan Deepak Kumar7-Aug-07 23:27
Vasudevan Deepak Kumar7-Aug-07 23:27 
QuestionTrouble with sqlDataSource to update database Pin
JacquesDP7-Aug-07 22:07
JacquesDP7-Aug-07 22:07 
Hi all,

I have a gridview and a datasource, when I make changes to the values in the gridview and update them they are changed on the gridview, but not in the database, so those values I changed stay the same in the database, the datasource gets updated but it never reflects to the database itself. How do I get the database updated with the edited values?

Here is the code I use:

<form id="form1" runat="server">

<div>

<asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1"
DataKeyNames="menu_id,menu_language" AutoGenerateColumns="false" AutoGenerateEditButton="true" AllowPaging="true" OnRowUpdated="GridView1_RowUpdated">

<Columns>

<asp:BoundField ReadOnly="false" HeaderText="Id" DataField="menu_id" NullDisplayText="N/A" />
<asp:BoundField ReadOnly="false" HeaderText="Language" DataField="menu_language" NullDisplayText="N/A" />
<asp:BoundField ReadOnly="false" HeaderText="Text" DataField="menu_text" NullDisplayText="N/A" /> <asp:BoundField ReadOnly="false" HeaderText="url" DataField="menu_url" NullDisplayText="N/A" /> <asp:BoundField ReadOnly="false" HeaderText="Avtive" DataField="menu_active" NullDisplayText="N/A" />
<asp:BoundField ReadOnly="false" HeaderText="Content Id" DataField="menu_content_id" NullDisplayText="N/A" />

</Columns>

</asp:GridView>

</div>

<asp:SqlDataSource ID="SqlDataSource1" runat="server"
SelectCommand="Select * from [menu_items]"
ConnectionString="<%$ connectionStrings:localSqlServer %>"
DataSourceMode="DataSet"
UpdateCommand="Update [menu_items] set [menu_text] = @menu_text, [menu_url] = @menu_url, [menu_active] = @menu_active,
[menu_content_id] = @menu_content_id where [menu_id] = @menu_id and [menu_language] = menu_language"
ConflictDetection="OverwriteChanges" EnableCaching="true"
CacheKeyDependency="MyKey" CacheDuration="Infinite">

<UpdateParameters>

<asp:Parameter Type="string" Name="menu_text" />
<asp:Parameter Type="string" Name="menu_url" />
<asp:Parameter Type="string" Name="menu_active" />
<asp:Parameter Type="string" Name="menu_content_id" />
<asp:Parameter Type="string" Name="menu_id" />
<asp:Parameter Type="string" Name="menu_language" />

</UpdateParameters>

</asp:SqlDataSource>

</form>

Any suggestions or possible solutions will be appreciated

Thanks in advance




No matter how long he who laughs last laughs, he who laughs first has a head start!

AnswerRe: Trouble with sqlDataSource to update database Pin
JacquesDP7-Aug-07 22:52
JacquesDP7-Aug-07 22:52 
Questionadd date Pin
devsam7-Aug-07 21:35
devsam7-Aug-07 21:35 
AnswerRe: add date Pin
postmaster@programmingknowledge.com7-Aug-07 22:31
postmaster@programmingknowledge.com7-Aug-07 22:31 
AnswerRe: add date Pin
T.EDY7-Aug-07 22:33
T.EDY7-Aug-07 22:33 
QuestionCheck Browser Close Event Pin
Abubakarsb7-Aug-07 21:19
Abubakarsb7-Aug-07 21:19 
AnswerRe: Check Browser Close Event Pin
SHatchard7-Aug-07 21:28
SHatchard7-Aug-07 21:28 
GeneralRe: Check Browser Close Event Pin
Abubakarsb7-Aug-07 21:52
Abubakarsb7-Aug-07 21:52 
GeneralRe: Check Browser Close Event Pin
Sonia Gupta7-Aug-07 22:33
Sonia Gupta7-Aug-07 22:33 
AnswerRe: Check Browser Close Event Pin
N a v a n e e t h7-Aug-07 22:52
N a v a n e e t h7-Aug-07 22:52 
GeneralRe: Check Browser Close Event Pin
Vasudevan Deepak Kumar7-Aug-07 23:29
Vasudevan Deepak Kumar7-Aug-07 23:29 
GeneralRe: Check Browser Close Event Pin
N a v a n e e t h7-Aug-07 23:39
N a v a n e e t h7-Aug-07 23:39 
GeneralRe: Check Browser Close Event Pin
Abubakarsb7-Aug-07 23:48
Abubakarsb7-Aug-07 23:48 
GeneralRe: Check Browser Close Event Pin
N a v a n e e t h7-Aug-07 23:54
N a v a n e e t h7-Aug-07 23:54 
GeneralRe: Check Browser Close Event Pin
Abubakarsb10-Aug-07 5:02
Abubakarsb10-Aug-07 5:02 
QuestionSystem.Resources.MissingManifestResourceException Pin
sankar.K7-Aug-07 20:32
sankar.K7-Aug-07 20:32 
QuestionTransfer data from CSV to Sql Server 2005!! Pin
shweta@syscom7-Aug-07 20:28
shweta@syscom7-Aug-07 20:28 
AnswerRe: Transfer data from CSV to Sql Server 2005!! Pin
sulabh20207-Aug-07 23:19
sulabh20207-Aug-07 23:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.