Hi all,
i was wondering why my buttons need 2 clicks to work. first time it just
refreshes the window, and then the second time it will work... I am using
ASP.NET and webforms buttons....
The weird part is that some of my buttons work fine, with 1 click, and a
bunch don't... usually when i'm using that button to open another page is
when it won't work...
Someone told me before to use HTML buttons, and i did that, with the
run-at-server option, but it still doesn't work...
What should i do???
thanks
-- Ad****@hotmail.com 3 1400
Can you post the code you are using?
Sergio
"ACaunter" wrote: Hi all, i was wondering why my buttons need 2 clicks to work. first time it just refreshes the window, and then the second time it will work... I am using ASP.NET and webforms buttons.... The weird part is that some of my buttons work fine, with 1 click, and a bunch don't... usually when i'm using that button to open another page is when it won't work... Someone told me before to use HTML buttons, and i did that, with the run-at-server option, but it still doesn't work...
What should i do??? thanks -- Ad****@hotmail.com
Public Shared Sub OpenNewWindow(ByVal opener As
System.Web.UI.WebControls.WebControl, ByVal pagePath As String)
Dim y As String
y = "window.open('" & pagePath & "')"
opener.Attributes.Add("OnClick", y)
opener.Dispose()
opener = Nothing
y = ""
End Sub
OpenNewWindow2(cmdWorksheet, "imgViewer.aspx")
"Sérgio" wrote: Can you post the code you are using?
Sergio
"ACaunter" wrote:
Hi all, i was wondering why my buttons need 2 clicks to work. first time it just refreshes the window, and then the second time it will work... I am using ASP.NET and webforms buttons.... The weird part is that some of my buttons work fine, with 1 click, and a bunch don't... usually when i'm using that button to open another page is when it won't work... Someone told me before to use HTML buttons, and i did that, with the run-at-server option, but it still doesn't work...
What should i do??? thanks -- Ad****@hotmail.com
if the opener is a server button, you can not add the attribute "onclick"
because that attribute overwrited by the control.
"ACaunter" wrote: Public Shared Sub OpenNewWindow(ByVal opener As System.Web.UI.WebControls.WebControl, ByVal pagePath As String) Dim y As String
y = "window.open('" & pagePath & "')" opener.Attributes.Add("OnClick", y) opener.Dispose() opener = Nothing y = "" End Sub
OpenNewWindow2(cmdWorksheet, "imgViewer.aspx")
"Sérgio" wrote:
Can you post the code you are using?
Sergio
"ACaunter" wrote:
Hi all, i was wondering why my buttons need 2 clicks to work. first time it just refreshes the window, and then the second time it will work... I am using ASP.NET and webforms buttons.... The weird part is that some of my buttons work fine, with 1 click, and a bunch don't... usually when i'm using that button to open another page is when it won't work... Someone told me before to use HTML buttons, and i did that, with the run-at-server option, but it still doesn't work...
What should i do??? thanks -- Ad****@hotmail.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: theodp |
last post by:
Not to be outdone by Amazon's 1-Click patent, Microsoft snagged a
patent from the USPTO Tuesday for a 'Time based hardware button for
application launch', which covers causing different actions to...
|
by: Zaidan |
last post by:
I am running Excel2000 under WIN98 2nd edition, and I am writing a VBA
code (I will consider using javascript if I have to) that does the
following, at the user command:
1- Start MS Explorer and...
|
by: Klaus Jensen |
last post by:
Hi!
This has been annoying me all day, and I can't get it to work It is really
driving me nuts!
Basicly this simple webapp created to illustrate my problem, renders five
buttons, and adds a...
|
by: polocar |
last post by:
Hi,
suppose that you have a C# form with two buttons, that are the
classical "btnOk" and "btnCancel" (besides them, of course in
the form there can be many other controls).
When the user clicks...
|
by: sumanbangladesh |
last post by:
Hi
I have a page with 3 radio butons. If I select a specific one,then I like to view some other radio buttons otherwise the other radio buttons will be remain disabled or invisible.
I am very...
|
by: larryimic |
last post by:
I have created a Access production database that records good parts and bad parts to a table thru querys using macros and command buttons on a form. A report (part label) is printed each time a...
|
by: pgcn |
last post by:
Hi
Using A2003
My db has main form with stakeholderID & other main
details.
When there are a number of detail subform records it often requires
two clicks of the next/previous nav buttons...
|
by: AliR \(VC++ MVP\) |
last post by:
Hi Everyone,
I'm writing a color picker control (combobox looking control, wonder why
..Net does not come with this control). It's a Button derived class that
when clicked, opens a form...
|
by: makbot |
last post by:
Hi
I have a 5x5 'grid' of square buttons and need to store the buttons the user clicks on (in order) so that i can ask them to recall the sequence later. I think this requires server side...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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...
| |