Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Update Panel Issue

Update Panel Issue

Scheduled Pinned Locked Moved ASP.NET
helpdesignsysadmindockerquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rameez Raja
    wrote on last edited by
    #1

    Hi all, I have the Textbox inside Update Panel like below <td colspan="4" style="border: none;"> <asp:UpdatePanel ID="upnl_PeriodYears" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:TextBox ID="txtPeriodFromDate" runat="server" Width="90px" ValidationGroup="LandAcqForm" Text='<%#(((System.Data.DataRowView)Container.DataItem).DataView.Table.Columns.Contains("DBFromDate")? Eval("DBFromDate") : "FromDate") %>'></asp:TextBox> But iam getting the below error CS1061: 'System.Web.UI.Control' does not contain a definition for 'DataItem' and no extension method 'DataItem' accepting a first argument of type 'System.Web.UI.Control' could be found (are you missing a using directive or an assembly reference?) How i assign the value to Textbox which is inside Update Panel??? Regards

    T 1 Reply Last reply
    0
    • R Rameez Raja

      Hi all, I have the Textbox inside Update Panel like below <td colspan="4" style="border: none;"> <asp:UpdatePanel ID="upnl_PeriodYears" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:TextBox ID="txtPeriodFromDate" runat="server" Width="90px" ValidationGroup="LandAcqForm" Text='<%#(((System.Data.DataRowView)Container.DataItem).DataView.Table.Columns.Contains("DBFromDate")? Eval("DBFromDate") : "FromDate") %>'></asp:TextBox> But iam getting the below error CS1061: 'System.Web.UI.Control' does not contain a definition for 'DataItem' and no extension method 'DataItem' accepting a first argument of type 'System.Web.UI.Control' could be found (are you missing a using directive or an assembly reference?) How i assign the value to Textbox which is inside Update Panel??? Regards

      T Offline
      T Offline
      thatraja
      wrote on last edited by
      #2

      I just got these solutions by pasting your error message in Google[^]. CS1061: ‘System.Web.UI.Control’ does not contain a definition for ‘DataItem’ and no extension method ‘DataItem’ accepting a first argument of type ‘System.Web.UI.Control’ could be found[^] http://forums.asp.net/t/1456690.aspx/1[^] BTW put your code in code block always.

      thatraja


      **My Tip/Tricks
      My Dad had a Heart Attack on this day so don't...
      **

      M 1 Reply Last reply
      0
      • T thatraja

        I just got these solutions by pasting your error message in Google[^]. CS1061: ‘System.Web.UI.Control’ does not contain a definition for ‘DataItem’ and no extension method ‘DataItem’ accepting a first argument of type ‘System.Web.UI.Control’ could be found[^] http://forums.asp.net/t/1456690.aspx/1[^] BTW put your code in code block always.

        thatraja


        **My Tip/Tricks
        My Dad had a Heart Attack on this day so don't...
        **

        M Offline
        M Offline
        msqar
        wrote on last edited by
        #3

        Cool, god bless Google, gonna get that in mind, just a question... an update panel is used for what? to retrieve data from table and refresh it, in order to keep it updated ? like doing it with AJAX? Thanks!

        T 1 Reply Last reply
        0
        • M msqar

          Cool, god bless Google, gonna get that in mind, just a question... an update panel is used for what? to retrieve data from table and refresh it, in order to keep it updated ? like doing it with AJAX? Thanks!

          T Offline
          T Offline
          thatraja
          wrote on last edited by
          #4

          msqar wrote:

          just a question... an update panel is used for what? to retrieve data from table and refresh it, in order to keep it updated ? like doing it with AJAX?

          Here you go....simple & explained nicely What is the UpdatePanel in ASP.NET Ajax?[^] BTW you welcome

          thatraja


          **My Tip/Tricks
          My Dad had a Heart Attack on this day so don't...
          **

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups