473,386 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

e.NewValues value is missing

I am looking for the newly entered value in the GridView control and there
is no values retuned in the e.NewValues collection (count is 0)

Thank you,
Samuel
Jan 28 '07 #1
5 1848
Are you using The <%#Bind... %syntax? E.g two-way databinding?
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"Samuel" <sa************@ntlworld.comwrote in message
news:eN**************@TK2MSFTNGP03.phx.gbl...
>I am looking for the newly entered value in the GridView control and there
is no values retuned in the e.NewValues collection (count is 0)

Thank you,
Samuel
Jan 28 '07 #2
<EditItemTemplate>

<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("fTaskType")
%>'></asp:TextBox>

</EditItemTemplate>

<ItemTemplate>

<asp:Label ID="Label1" runat="server" Text='<%# Bind("fTaskType")
%>'></asp:Label>

</ItemTemplate>

sam

"Teemu Keiski" <jo****@aspalliance.comwrote in message
news:7E**********************************@microsof t.com...
Are you using The <%#Bind... %syntax? E.g two-way databinding?
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"Samuel" <sa************@ntlworld.comwrote in message
news:eN**************@TK2MSFTNGP03.phx.gbl...
>>I am looking for the newly entered value in the GridView control and there
is no values retuned in the e.NewValues collection (count is 0)

Thank you,
Samuel

Jan 28 '07 #3
And how's the SqlDataSource?

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"Samuel" <sa************@ntlworld.comwrote in message
news:us**************@TK2MSFTNGP05.phx.gbl...
<EditItemTemplate>

<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("fTaskType")
%>'></asp:TextBox>

</EditItemTemplate>

<ItemTemplate>

<asp:Label ID="Label1" runat="server" Text='<%# Bind("fTaskType")
%>'></asp:Label>

</ItemTemplate>

sam

"Teemu Keiski" <jo****@aspalliance.comwrote in message
news:7E**********************************@microsof t.com...
>Are you using The <%#Bind... %syntax? E.g two-way databinding?
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"Samuel" <sa************@ntlworld.comwrote in message
news:eN**************@TK2MSFTNGP03.phx.gbl...
>>>I am looking for the newly entered value in the GridView control and
there is no values retuned in the e.NewValues collection (count is 0)

Thank you,
Samuel

Jan 28 '07 #4
It is bound to a datatable object which I modify before binding
"Teemu Keiski" <jo****@aspalliance.comwrote in message
news:2D**********************************@microsof t.com...
And how's the SqlDataSource?

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"Samuel" <sa************@ntlworld.comwrote in message
news:us**************@TK2MSFTNGP05.phx.gbl...
><EditItemTemplate>

<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("fTaskType")
%>'></asp:TextBox>

</EditItemTemplate>

<ItemTemplate>

<asp:Label ID="Label1" runat="server" Text='<%# Bind("fTaskType")
%>'></asp:Label>

</ItemTemplate>

sam

"Teemu Keiski" <jo****@aspalliance.comwrote in message
news:7E**********************************@microso ft.com...
>>Are you using The <%#Bind... %syntax? E.g two-way databinding?
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"Samuel" <sa************@ntlworld.comwrote in message
news:eN**************@TK2MSFTNGP03.phx.gbl...
I am looking for the newly entered value in the GridView control and
there is no values retuned in the e.NewValues collection (count is 0)

Thank you,
Samuel



Jan 28 '07 #5
It would work only if you'd use ASP.NET's data source controls
(ObjectDataSource, SqlDataSource etc)

For example see this post and its comments:
http://www.lhotka.net/weblog/ASPNET2...ustration.aspx

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"Samuel" <sa************@ntlworld.comwrote in message
news:eR**************@TK2MSFTNGP04.phx.gbl...
It is bound to a datatable object which I modify before binding
"Teemu Keiski" <jo****@aspalliance.comwrote in message
news:2D**********************************@microsof t.com...
>And how's the SqlDataSource?

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"Samuel" <sa************@ntlworld.comwrote in message
news:us**************@TK2MSFTNGP05.phx.gbl...
>><EditItemTemplate>

<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("fTaskType")
%>'></asp:TextBox>

</EditItemTemplate>

<ItemTemplate>

<asp:Label ID="Label1" runat="server" Text='<%# Bind("fTaskType")
%>'></asp:Label>

</ItemTemplate>

sam

"Teemu Keiski" <jo****@aspalliance.comwrote in message
news:7E**********************************@micros oft.com...
Are you using The <%#Bind... %syntax? E.g two-way databinding?
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"Samuel" <sa************@ntlworld.comwrote in message
news:eN**************@TK2MSFTNGP03.phx.gbl...
>I am looking for the newly entered value in the GridView control and
>there is no values retuned in the e.NewValues collection (count is 0)
>
Thank you,
Samuel
>

Jan 28 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Michael Glass | last post by:
I'm working on an ASP.Net web app using VS2005 and the .Net 2.0 framework, and I have a serious problem with the page I'm currently working on. The page has, among other things, two FormViews and a...
5
by: Mark Olbert | last post by:
I ran into a situation this morning where the RowUpdating event of a GridView kept insisting there were no entries in either the OldValues or NewValues dictionaries. The GridView is bound to a...
0
by: Michael | last post by:
Hi I'm having a problem getting the newvalues or oldvalues from the RowUpdating event. I have the following code for the event(See note): Protected Sub grdPOs_RowUpdating(ByVal sender As Object,...
0
by: Michael | last post by:
Hi I'm having a problem getting the newvalues or oldvalues from the RowUpdating event. I have the following code for the event(See note): Protected Sub grdPOs_RowUpdating(ByVal sender As Object,...
0
by: loga123 | last post by:
Hi All, I am using asp.net 2.0. I have a gridview with AutoGenerateEditButton="True" . I am trying to access newValues in rowupdating event. It gives me "oldvalues" collection. I have a)...
0
by: loga123 | last post by:
Hi All, I am using asp.net 2.0. I have a gridview with AutoGenerateEditButton="True" . I am trying to access newValues in rowupdating event. It gives me "oldvalues" collection. I have a)...
3
by: Haleigh | last post by:
I just started a few days ago, so I'm very new to this. I'm trying to update a gridview using a store procedure. When I am in the update subroutine, newvalues and oldvalues are empty, plus count is...
1
by: vertigo262 | last post by:
Hello all, I have used sqldatasource many times calling e.newvalues, and e.oldvalues in the iteminserting, itemupdating, itemdeleting subs. When I try using them with the objectdatasource they...
0
by: lightgram | last post by:
Hello I am having problems extracting the OldValues collection from the RowUpdating event in my GridView. Every time I access this I am getting the values from the NewValues collection in...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.