.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

GriedView Update is not working

Posted By:      Posted Date: October 08, 2010    Points: 0   Category :ASP.Net

Hi all,

Here is my asp and the code behind code. When I click edit and enter a new weight value, the system does not maintain that value, but displays back the original one (if I press enter I see that hapening or through debug).

What am I missing?

Thank you

protected SqlDataSource GetSqlDataSource()


            SqlDataSource dsL = new SqlDataSource();

            dsL.ID = "ds1";


            // You can use this utility class to get the connection string


            dsL.ConnectionString = DBUtility.GetConnectionString();


            // Set the sqldatasource commands like this:


            dsL.SelectCommandType = SqlDataSourceCommandType.StoredProcedure;


            dsL.SelectCommand = "GetGrossOrganforUpdt";  //GetGrossOrgan


View Complete Post

More Related Resource Links

update/delete not working on server only


my aspx page works in VWD, and everything works on the server EXCEPT update and delete sql functions. any ideas?


jquery is not working in asp.net panel and/or update panel ? need help

I have 3 panels on single .aspx page and depending on condition required panel is displayed . Default panel is panel 1 .  I have created a image gallery which displays thumbnails of various images and when I hover on that image its preview is displayed. I have put the code for this image gallery in 2nd panel, it displays thumbnails but on hover preview is not displayed. but  if I somehow make postback then it works. And I place the same code in !st panel it works ? Can anyone tell me whats wrong with my code? Regards, anas anjaria I have 3 panels on single .aspx page and depending on condition required panel is displayed . Default panel is panel 1 . I have created a image gallery which displays thumbnails of various images and when I hover on that image its preview is displayed.I have put the code for this image gallery in 2nd panel, it displays thumbnails but on hover preview is not displayed. but  if I somehow make postback then it works.<div> /* PAnel 1*/ <asp:UpdatePanel ID="updpnl2" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:Panel ID="pnl2" runat="server" Visible="false"> /*other coding stuff*/ <div id="wrap"> <div id="styles-table"> <div id="styles-wrap"&g

File Upload Control is not working in Update Panel

hi friend... i am using update panel... in one of my aspx page (ASP.NET 2.0)there is a file upload control in update panel which is used to upload company logo on server..when i remove the update panel.. than file upload is working properly..but when i again place an update panel then file upload control is not working and its giving me error.. in likeIf String.IsNullOrEmpty(fldLogo.PostedFile.FileName.ToString) Then                 as object reference not set to an instance of an object... can any body help me ?any idea ??  

Update panel with async trigger not working


 I have following code and when I select from my drop down list the progress controls do not show and my grdiview is not being filled either. If I leave out the update panel from my code things are working fine.

  <asp:UpdatePanel ID="UpdatePanel2" UpdateMode="Conditional"  runat="server">
                 <asp:AsyncPostBackTrigger ControlID = "TabContainer1$TabPanel1$DropDownList3" EventName = "SelectedIndexChanged" />
                 <asp:Label ID="lblText" runat="server" Text="Loading data ......"></asp:Label>
                 <asp:Image ID="img1" runat="server" src="Icons/ajax-Loader.gif" /> 
<cc1:TabContainer ID="TabContainer1" runat="server" Height="20px" ActiveTabIndex="0">
                    <%--OnActiveTabChanged="TabContainer1_ActiveTabChanged" AutoPostBack="true">-

update panel not working in live



I have a button that updates a datagrid that is in an update panel and everything works swimmingly in the dev area but when i publish it it just doesnt work.

appart from that everything else on the page works as normal

anyone have any ideas? 


thanks in advance

Color Box Jquery Not Working in Update Panel After the Initial Postback


Hi Guys,

I have an UpdatePane that contains a Listview


		<asp:LinkButton ID="lnkName" runat="server" CommandArgument='<%# Container.DisplayIndex %>'
            CommandName="SelectedRow" Text='<%# Eval("Name") %>' Class="info" Rel='<%# Eval("ID") %>' />

This linkButton will serves as the trigger to call my color box jquery. Function stated below

 <script src="script/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="script/jquery.colorbox-min.js" type="text/javascript"> </script>
    <script type="text/javascript">

        $(document).ready(function() {

            $("a.info").click(function() {

                $(this).attr("href", "EmployeeDirectoryDetail.aspx?id=" + $(this).attr("rel"));
                $(this).colorbox({ height: "200p

Publishin page layout, that add/update values in a metadata of the page not working


We have custom control on Publishin page layout, that add/update values in a metadata of the page. Code is written in 'Button click' event that update/add new values to the metadata. Following is the code snippet, which is working fine in Stage and Acceptance servers. Publishin page doesn't update Draft version with SPListItem.SystemUpdate instead it updates to last published major version.

currentPublishingPage = PublishingPage.GetPubl

oracle not working insert update and search


 here is my code where im doing mistake

here is my class1 code

Imports Microsoft.VisualBasic
Imports System.Data
Imports System.Data.SqlClient
Imports System.Data.OracleClient
Public Class Class1
Public Shared conn As New OracleClient.OracleConnection(ConfigurationManager.ConnectionStrings("MOH_String").ConnectionString)
    Public Shared cmd As New OracleCommand
    Public Shared da As New OracleDataAdapter(cmd)
    Public Shared pr As New Parameter
    Public Shared dr As OracleDataReader

    Public Shared Function GetData(ByVal strQuery As String) As DataTable
        Dim dt As New DataTable
        Dim cmd As New OracleCommand(strQuery, conn)
        cmd.CommandType = CommandType.Text
            da.SelectCommand = cmd
        Catch ex As Exception
            Return dt
        End Try
        Return dt
    End Function

 Public Shared Function SpInsertUpdateDelete(ByVal SpName As String, ByVal cmd As OracleCommand) As DataTable
        cmd.CommandText = SpName
        cmd.Connection = conn
        cmd.CommandType = CommandType.StoredProcedure

        Catch ex As Exception
            Return No

Datagrid Link button within the Update panel events are not working



I have a datagrid with linkbutton within the datagrid.   When i click on link button there is no response.   I have tried in different ways like
1.   after data binding to the datagrid
2. AsyncPostBackTrigger ControlID="lnk1" EventName="Tick"

can any one please tell me How to fire the linkbutton

Thanks & Regards,

Update Panel Flicker and Not working


 I want to create a searching work to fill the gridview detail acc to seach params.. When we enter text into search textbox it fills the grid, that works filne without postback. After this i have to fill the form values accroding to link clicked in Gridview. I uses the updatapanel in grid like

<asp:TextBox ID="txtSearch" runat="server" AutoPostBack="true" OnTextChanged="txtSearch_TextChanged"></asp:TextBox>
<asp:UpdateProgress ID="UpdateProgress" runat="server">
<img src="../Images/load.gif" />

<asp:UpdatePanel ID="UpdatePanel3" runat="server">
my gridview that show the content
<asp:AsyncPostBackTrigger ControlID="txtSearch" />

Update with set of values not working

I am trying to do something like this http://weblogs.sqlteam.com/tarad/archive/2004/09/14/2077.aspx where you update a set of records with another set of records within a trigger.
I think the below update statement is close, but not correct.



tc SET LibraryChoice_RecordI

Can't update my CSS it stopped working


I am working with a very large project that uses CSS for page layout.  From time to time changes to the CSS simply stop changing the appearance of the page.  This has happens on other projects too.  To would have to make major changes to the content before it updates the appearance -- I gather it's saved somewhere.  This happens with VWD2008 Express and VS2008.

Does anyone know why this would happen? How can I stop it from happening?

ASP.net web application not working after patch update(sp2) on server 2003


Dear All

I have ASP.Net web application server publish with iis6,Resently I install service patch 2 for my server 2003 , after this patchupgrade I cant accsess this application via web browser.I cant see any error massage also. but it can access from firefox and Chrom. then I uninstall this sp2 from my server, then I can access from IE7 and firefox.

But I need to install SP2 on this PC , How can I do it



Microsoft TechNet Forum Bandara

here is trigger if exist then update else inser but not working properly for bulk update(10 or 15 ro



i have a trigger as follows



TRIGGER [ table_detail_insert_update]








Merge two .sdf databases files, and SqlCeDataAdapter.Update(dataset) not working,

Hello You'll, I have two .sdf databases that I need to merge them. So, I loaded the data from the two files into datasets and then called the dataset.merge()function. Now, I have the merge dataset ready but I am not sure how I am going to update the sdf file from the dataset. Please help I have been trying for a while . The problem is how do I get the data in the dataset into the sdf file. I did use the SqlCeDataAdapter.update(Dataset) but I am getting the following error (" Update unable to find TableMapping['Table'] or DataTable 'Table') using VS 2010 and C# SqlCE 3.5, Thanks in advance, Sean

Working with Visual Studio 2015 Update 3

In this post we will see the new updates of Visual Studio 2015, setting up the environment and so on. Microsoft was announced new release of Visual Studio 2015 Update 3 at June 27th 2016.The visual studio team has addressed the known issue and report issues are fixed on this release as well as improved performance and stability of the product.

Working with SharePoint document libraries

Document libraries are collections of files that you can share with team members on a Web based on Microsoft Windows SharePoint Services. For example, you can create a library of common documents for a project, and team members can use their Web browsers to find the files, read them, and make comments. Users with Microsoft Office 2003 can check out and edit the files as if they resided on a local or network drive.

By default, your team Web site comes with a built-in document library named Shared Documents, which is listed on the Quick Launch bar as well as on the Documents and Lists page.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend