Ask a Question related to ASP.NET General, Design and Development.
-
John #1
Webcontrol toolbar image click question
Hi all,
Firstly, allow me to just say that programming asp.net AND using viewstate
has been (and still is at the moment) the most painful experience I have
ever undergone. It really is!
Now that I've got that behind me (not that it's going to make viewstate work
for me) I really have a problem I need urgent help with.
I have realized that I need to somehow populate a hidden client-side field
when I click on an image which is on a toolbar control. The reason for this
is because I need to access this variable as soon as my main page page_load
event fires so I can use the Loadcontrol at that stage. Doing it like this
(and not in the button_click event of the toolbox, 'cause it don't work), I
found I can get access to the viewstate.
So please, how can I execute a little Javascript once I click on a
toolbarbutton?
Regards
John.
John Guest
-
WebControl Click Event Not Firing
I have created a web control that can be rendered as either a linkbutton or a button. It is a ConfirmButton control that allows a developer to force... -
WebControl, to select part of a web-image.
Hi, I'm looking for an ASP.NET web-control in wich I can show a generated image to user, the user should then be able to select part of the... -
disable image toolbar help
Is there a way to disable image toolbar. So that a viewer wont be able to save an image or print it? I have diabled the right click be that doesnt... -
image toolbar
I asked this question a zillion years ago.... And today I found I wanted to use it and it didn't work. I don't want the little image toolbar to come... -
Image Button in Datagrid WebControl
in your itemdatabound or itemcreated event handler just add a label control or any control that will take a url tag to the cell. then add the image... -
John #2
Re: Webcontrol toolbar image click question
Hi Rory,
The toolber button does not have an attributes property...
Regards
John.
"Rory" <rory@vivid-design.com.au> wrote in message
news:032101c35a38$87568a90$a401280a@phx.gbl...> You can add attributes to buttons. So use this to add
> an 'onclick' attribute to your toolbar button that
> executes a jscript.
>
> eg
> mybutton.Attributes("OnClick") = "JavaScript:alert
> ('hello');"
>
>
>> AND using viewstate> >-----Original Message-----
> >Hi all,
> >
> >Firstly, allow me to just say that programming asp.net> experience I have> >has been (and still is at the moment) the most painful> make viewstate work> >ever undergone. It really is!
> >
> >Now that I've got that behind me (not that it's going to> client-side field> >for me) I really have a problem I need urgent help with.
> >
> >I have realized that I need to somehow populate a hidden> The reason for this> >when I click on an image which is on a toolbar control.> main page page_load> >is because I need to access this variable as soon as my> Doing it like this> >event fires so I can use the Loadcontrol at that stage.> it don't work), I> >(and not in the button_click event of the toolbox, 'cause> click on a> >found I can get access to the viewstate.
> >
> >So please, how can I execute a little Javascript once I> >toolbarbutton?
> >
> >Regards
> >John.
> >
> >
> >.
> >
John Guest
-
Alvin Bruney #3
Re: Webcontrol toolbar image click question
If you are experiencing pain programming in asp.net you are definitely doing
something wrong.
and that's the truth.
"John" <a@b.com> wrote in message
news:u6aVP9hWDHA.2376@TK2MSFTNGP11.phx.gbl...work> Hi all,
>
> Firstly, allow me to just say that programming asp.net AND using viewstate
> has been (and still is at the moment) the most painful experience I have
> ever undergone. It really is!
>
> Now that I've got that behind me (not that it's going to make viewstatethis> for me) I really have a problem I need urgent help with.
>
> I have realized that I need to somehow populate a hidden client-side field
> when I click on an image which is on a toolbar control. The reason forpage_load> is because I need to access this variable as soon as my main pageI> event fires so I can use the Loadcontrol at that stage. Doing it like this
> (and not in the button_click event of the toolbox, 'cause it don't work),> found I can get access to the viewstate.
>
> So please, how can I execute a little Javascript once I click on a
> toolbarbutton?
>
> Regards
> John.
>
>
Alvin Bruney Guest



Reply With Quote

