473,396 Members | 1,707 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,396 software developers and data experts.

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 1902
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.microsoft.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.microsoft.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_RowCommand">" 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_RowCommand(object sender,
GridViewCommandEventArgs e)
{
WriteFile(e.CommandName.ToString()+ " " +
e.CommandArgument.ToString() + " ContentLength=" +
Request.ContentLength.ToString() + " NVar="
+Request.Form.Count.ToString()+ " ");
if (Request.ContentLength == 1636)
WriteFile("- " + Request["x"].ToString() +" " +
Request["y"].ToString());
Request.SaveAs(@"C:\Prova\request" + DateTime.Now.ToFileTime()
+ ".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 roweditingcommand 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
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...
3
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...
0
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...
3
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....
1
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...
28
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...
3
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...
6
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...
3
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...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.