473,785 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

REPOST: Gridview ImageButton causes double postback

Hello,
this message was posted in december 2005 and Steven Cheng from MS followed it up with me to a point, before the thread trailed off.

http://groups.google.com/group/micro...281f5d53c14950

several other newsgroup users have since confirmed the bug/behaviour described, and it is very easy to reproduce. There is a hack/workaround but it is very unsatisfactory, and this will continue to cause problems for users in the future unless it is acknowledged as a bug and fixed in the next service pack. I would appreciate a response from the MS camp if possible.

Thank you.
Tim Mackey.
Feb 13 '06 #1
8 1915
Hi Tim,

Thanks for posting!

I have performed the test from the code you supplied in the previous
threads. Unfortunately, I haven't reproduced the current issue.
"several other newsgroup users have since confirmed the bug/behaviour

described, and it is very easy to reproduce"

As you mentioned, if the issue is very easy to repro, could you please
supply a simple demo as zipped format and send it to me? My alias is
v-****@online.mic rosoft.com (remove .online). If this is not inconvenience,
could you please supply some steps to repro? Thanks for your understanding.

I'm looking forward your reply!

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Feb 14 '06 #2
hi Yuan,
thank you for the reply. i can certainly send you the source files,
but please understand that i have already been through the loops with
Steven Chang. i sent him the source files, HTTP trace logs etc. if
coordination at your end is difficult then i can send you the files
aswell.

by the way, in my experience, the incorrect behaviour happens about one
third or half of the time with Internet Explorer 6, so you might have
to do several postbacks to get it to happen.

thanks
tim

Feb 14 '06 #3

Tim_Mac wrote:
hi Yuan,
thank you for the reply. i can certainly send you the source files,
but please understand that i have already been through the loops with
Steven Chang. i sent him the source files, HTTP trace logs etc. if
coordination at your end is difficult then i can send you the files
aswell.

by the way, in my experience, the incorrect behaviour happens about one
third or half of the time with Internet Explorer 6, so you might have
to do several postbacks to get it to happen.

thanks
tim


Feb 15 '06 #4
I confirm this problem, please help us to solve this bug. In this
moment i solve using the solution of the other post...

Feb 15 '06 #5
Hi Tim,

Thanks for your reply!

Please send the source file to me. My alias is v-****@online.mic rosoft.com
(remove .online).

Additionally, I have performed some related research for the current issue.
Since I don't know the content of the .cs file, I just want you to remove
the "OnRowCommand=" GridView1_RowCo mmand">" in the "<asp:GridView> " tag.
After this, please try again to find whether the problem will be resolved.

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Feb 16 '06 #6
---------------------------------------------
protected void GridView1_RowCo mmand(object sender,
GridViewCommand EventArgs e)
{
WriteFile(e.Com mandName.ToStri ng()+ " " +
e.CommandArgume nt.ToString() + " ContentLength=" +
Request.Content Length.ToString () + " NVar="
+Request.Form.C ount.ToString() + " ");
if (Request.Conten tLength == 1636)
WriteFile("- " + Request["x"].ToString() +" " +
Request["y"].ToString());
Request.SaveAs( @"C:\Prova\requ est" + DateTime.Now.To FileTime()
+ ".txt",true );

}
-----------------------------------------------

I send you the project. It's a debug project! It will write some files
with the different request from whict you can note that it sometimes
will be 2 (of different length)!!!
This happens because one contains x and y coordinates of the mouse
The roweditingcomma nd is not needed, you can delete it (it's empty)

Thanks,
Ema

Feb 16 '06 #7
Any news?

Thx
Ema

Feb 21 '06 #8
HI Ema,

I have sent mail to you.

Thanks!

Yuan Ren [MSFT]
Microsoft Online Support

Feb 23 '06 #9

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

Similar topics

0
1553
by: Xavier Osa | last post by:
Hi, I have an ASP.Net web page that you can download a file. As Fergunson's problem, it prompts twice dialog boxes only if I select Open button. If I select Save button, it prompts once. I'm using W2000KS & IE6 sp1 & VS.NET 2003. If I change method="post" by method="get" form attribute, it works fine.
3
2816
by: Benjamin Gavin | last post by:
Hi all, I recently stumbled upon a bug in the ASP.NET framework handling of ImageButton based postbacks. The issues derives from the fact that IE and Mozilla handle the case of a missing image file differently. In both cases, the setup for the problem is: 1. Create a form with an ImageButton whose ImageURL is invalid, specify an AlternateText value 2. Submit the form through that ImageButton
0
2904
by: msnews.microsoft.com | last post by:
I've got a paging and sorting enabled GridView whose datasource is and AccessDataSource. I build the SelectCommand at PageLoad - it's a union query to show items and comments of the user logged in. This all works fine. I tried to set AccessDataSource.UpdateCommand in the code behind (C#) by handling the GridView.OnUpdating event - since this is supposed to fire before the record is updated, I thought I could set the UpdateCommand here....
3
13754
by: NateDawg | last post by:
I'm reposting this. I'm kinda in a bind untill i get this figured out, so if anyone has some input it would sure help me out. Ok, I’ve noticed a few gridview problems floating around the forum. Everyone wants to do a java confirmation box when a user clicks the delete button. Fair enough, basic user design rules state that you should always confirm a delete action. There is also a consensus that the best way to do this is a template...
1
4320
by: Steve Loper | last post by:
I am developing a control in ASP.NET 2.0 that is derived from GridView. This control handles paging on its own and thus renders custom paging buttons. It also add some other functionality to the GridView by overriding Render() and rendering other controls alongside the GridView’s HTML. When I click one of the pager buttons (of type ImageButton), I receive the following error: Invalid postback or callback argument. Event validation...
28
10279
by: Tim_Mac | last post by:
hi, i'm new to .net 2.0, and am just starting to get to grips with the gridview. my page has autoEventWireUp set to true, which i gather is supposed to figure out which handlers to invoke when appropriate based on your method names . the GridView has OnRowCommand="GridView1_RowCommand" in the aspx. my problem is that the RowCommand event is firing twice (95% of the time) on the page. the other 5% it only fires once. there's no
3
11721
by: AG | last post by:
Below is code (slightly modified and converted to VB) that was provided to me in response to another post. I am using it to demonstrate another problem. In order for paging and other features to work properly in a gridview, viewstate must be enabled. So, in order to minimize the size of viewstate for a page, I will sometimes turn off viewstate for each control in template columns. That means that the gridview must be databound on each...
6
11136
by: AG | last post by:
I have a gridview with a template column containing an imagebutton to delete the row. Under some condition I don't want the row to be deleted, so would like to remove the button. In the RowDataBound event, I can find the button, but can't seem to remove it. The code below does not throw any exception, but the button is not removed. Protected Sub gv1_RowDataBound(ByVal sender As Object, ByVal e As
3
7547
by: =?Utf-8?B?SlA=?= | last post by:
<asp:GridView ID="gridResults" runat="server" AutoGenerateColumns="False" Width="98%" PageSize="25" AllowPaging="True" OnSorting="gridResults_Sorting" OnPageIndexChanging ="gridResults_PageIndexChange" AllowSorting="True" OnRowDataBound="gridResults_RowDataBound" EnableViewState="False" OnRowCommand="gridResults_Command" ></asp:GridView> Inside a <ItemTemplateI have an <asp:ImageButton> The problem is that no matter what I do,...
0
9646
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10350
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10157
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10097
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9957
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7505
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5386
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4055
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2887
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.