473,467 Members | 1,468 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

weird bug with ImageButton.. i think??

I replaced my submit buttons with image buttons on my forms.. I need to
display the results of the fields that were entered. On my test
server, it works great, but on my live server, I am seeing Button1.x
and Button1.y. Here is my code. Can someone tell me why i can't stop
them from showing on the live server?? TIA
------------------------------------------------------------

Dim answer As String
Dim AnsStr
For Each answer In Request.Form
'references to answer return the name of the item
If (answer = "__VIEWSTATE") Or (answer = "Button1.x") Or
(answer = "Button1.y") Then
Else

'If (Request.Form(answer) <> "") Then
AnsStr = AnsStr & answer & " <br> "

'End If

End If
Next
Session("answers") = AnsStr
MessageSent.Text = "the answer is " & AnsStr

---------------------------------------------------------

Nov 19 '05 #1
4 1039
Roy
can you post all of your code?

Nov 19 '05 #2
Thanks for the reply.. I don't know why, but it seems to be ok now,
after the 5th time of uploading the code.. I guess my problem is that
I'm doing the coding in VS.net and doing the graphical part and ftp'ing
in DWMX2004.. I really wish Macromedia would fix this .net issue.

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #3
add a value to the image button, and ignore the x & y values which are the x
and y coordiants of where the user clicked on the button (sent by the
browser)

-- bruce (sqlwork.com)
"Brian" <bc******@pepehazard.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I replaced my submit buttons with image buttons on my forms.. I need to
display the results of the fields that were entered. On my test
server, it works great, but on my live server, I am seeing Button1.x
and Button1.y. Here is my code. Can someone tell me why i can't stop
them from showing on the live server?? TIA
------------------------------------------------------------

Dim answer As String
Dim AnsStr
For Each answer In Request.Form
'references to answer return the name of the item
If (answer = "__VIEWSTATE") Or (answer = "Button1.x") Or
(answer = "Button1.y") Then
Else

'If (Request.Form(answer) <> "") Then
AnsStr = AnsStr & answer & " <br> "

'End If

End If
Next
Session("answers") = AnsStr
MessageSent.Text = "the answer is " & AnsStr

---------------------------------------------------------

Nov 19 '05 #4
Thanks Bruce.. I'll try that..

Nov 19 '05 #5

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

Similar topics

1
by: Sue | last post by:
For performance purposes, I am using client-side scripts to show-hide (via css display: hide, display: block) several rows of a table depending on which imagebutton is clicked. Because of workplace...
3
by: Marcelo | last post by:
Hi, I have an ImageButton which, when clicked, redirects to another page. The problem is that page A (where the ImageButton is located) has lots of information, but when I click the button, it...
2
by: Jake | last post by:
Hi All, I have an aspx page with a datagrid which I am using to display a list of thumbnails and their descriptions. The thumbnails are sitting on my harddrive and the links to them are stored...
2
by: Chuck Hartman | last post by:
I've been trying to add an ImageButton object to a Calendar table cell, but so far I am unable to handle the Command event from that button in my form's code behind. Below is an example of what I...
1
by: Henke | last post by:
Hello, I have one ImageButton controls which I initialize in Page_Load and declare on class level. ImageButton save = new ImageButton(); save.ImageUrl = "save.gif" save.Click += new...
1
by: Nathan Sokalski | last post by:
I want to create a pushbutton-like control on my webform that has an image on it. I used to think that this is what the ImageButton control was, but it seems to me that the ImageButton is nothing...
0
by: Tom Edelbrok | last post by:
I'm using VS 2005 to develop an intranet asp.net web application and I get a weird situation. If I start out with any ASPX page that contains an ImageButton control followed by a TextBox control,...
4
by: Benny Ng | last post by:
Dear All, <input type="checkbox" name="chkAgreement" value="0">I agree with the above terms and conditions <asp:ImageButton ID="ImgBtnSubmit" Runat="server" CausesValidation=True...
1
by: fabrice | last post by:
Hello, I d like to modify the Onclik Event of an ImageButton control in code behind. But when i do it , i get an error. This is ma code : The control is the pasx page :
3
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, Using ASP .Net, I'm trying to create a ImageButton when the user clicks on a button, this is my code: protected void logout_btn_Click(object sender, ImageClickEventArgs e) {
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
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
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,...
1
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...
0
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...
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.