473,807 Members | 2,853 Online
Bytes | Software Development & Data Engineering Community
+ 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 = "__VIEWSTAT E") Or (answer = "Button1.x" ) Or
(answer = "Button1.y" ) Then
Else

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

'End If

End If
Next
Session("answer s") = AnsStr
MessageSent.Tex t = "the answer is " & AnsStr

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

Nov 19 '05 #1
4 1055
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******@pepeh azard.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.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 = "__VIEWSTAT E") Or (answer = "Button1.x" ) Or
(answer = "Button1.y" ) Then
Else

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

'End If

End If
Next
Session("answer s") = AnsStr
MessageSent.Tex t = "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
4750
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 standards I'm using vbscript on the client-side. The sub called hides the rows without problems, but an autopostback from the imagebutton causes the display property to reset and the rows reappear. Does anyone know a simple way to disable the...
3
12135
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 redraws the header of the table, which we'd like not to happen. My question is: Is there any way of prevent this postback? Or, is there any way of, in Page_Load, detect that it is happening due the click on the button, so I could redirect it...
2
1429
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 in an Access database. I have placed an ImageButton in a template column in the datagrid and as the grid loads the ImageURL property of the ImageButton is filled from the database.
2
3644
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 am trying to do. The ImageButton that is on the form handles its Command event just fine, but the ImageButton that is added to the cell does not handle the event. Am I doing something wrong, or is not possible to add server controls to a calendar...
1
3354
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 ImageClickEventHandler(this.save_click); This ImageButton is added to a dynamic table which is also
1
5804
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 more than an image that can be clicked. I have figured out a way to make the ImageButton look like a button (there was some border property and the backgroud color). However, that still does not make it look like it is being "pushed" the way other...
0
1831
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, everything works okay. I can press <ENTER> when the cursor is inside the text box and the page is running, and no events fire (this is what I expect). But as soon as I drop a second text box on the page (ie: after th first one) then pressing...
4
1609
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 ImageUrl="images/submit.gif" width="70" height="30"></asp:ImageButton>
1
2881
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
5558
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) {
0
9599
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10626
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...
1
10374
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
9193
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6879
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
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
2
3854
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
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.