Ask a Question related to ASP.NET General, Design and Development.
-
Steve C. Orr, MCSD #1
Re: Attach code to a button
You can output any javascript dynamically from your code behind using such
function as:
RegisterStartupScript:
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebUIPageClassRegisterStartupScriptTopi c.asp[/url]
RegisterClientScriptBlock:
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebUIPageClassRegisterClientScriptBlock Topic.asp[/url]
Attributes.Add:
[url]http://www.flws.com.au/showusyourcode/codeLib/code/NET_jsAddTo.asp?catID=5[/url]
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"Chuck Traywick" <ctrawick@uslec.net> wrote in message
news:408301c35600$3758a190$a001280a@phx.gbl...> Wanted to try to attach code to either a webform button
> or an HTML button the "old" way with
> onclick="mysciptroutine" but get an error when I try to
> do this that indicates the script block needs to be
> registered.
>
> Is there an example of how to do this somewhere?
>
> Thanks
>
> Chuck
>
Steve C. Orr, MCSD Guest
-
How to attach code samples ?
Today I have logged in again cause I wanted to reply to a message and ..... voila ... the "attached code" button is now visible ... Thanks to the... -
"Attach Code" is now available!
The long missing "Attach Code" button is now available in the "Reply" screen of the forum. This will help a lot when posting code examples. ... -
Must manually attach to ASPNET_WP process to debug ASP.NET code
We're using Visual Studio 2003 .NET (C#) on Windows XP Pro SP2. We have a smart client (WinForms) application that calls an ASP.NET web service. On... -
Attach as Adobe PDF macro button in Outlook
Using Outlook 2002 and Adobe Acrobat 6.0 on Windows 2000 platform. I start a new email, and click on the "Attach as Adobe PDF" button. I choose a... -
attach 1 movie, then attach 3 movies to it, help?
hi there, i'm trying to attach 1 movie, then attach 3 movies to it, my oroblem is i can only attach one child movie and not 3, here's the...



Reply With Quote

