Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 22nd, 2006, 07:37 AM
Registered User
 
Join Date: May 2006
Location: Tehran, , Iran.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Ardvisoor
Default Attribute.add and Refresh Problem

Hi

for Using ShortKeys , I Add Stribute to my TExtBox for Firing Click Event of Some Buttons, but now i should Click Twice on the button to do it's job, and at the first time the page only refresh without Firing Button_click

please help me
thx

There is no shortcut to anywhere worth going
 
Old July 24th, 2006, 01:09 PM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , NJ, USA.
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Add the attributes to the buttons in the Page_Load event.

 
Old July 25th, 2006, 11:37 AM
Registered User
 
Join Date: Jul 2006
Location: Bangkok, , Thailand.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The Attribute.Add() must be called before the page is rendered (e.g. Sub New(), Page_Init, Page_Prerender).

 
Old July 25th, 2006, 12:10 PM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , NJ, USA.
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

winyoo.. Incorrect, You can add the attributes to an object anywhere you want. It doesn't make sense in this case to add it anywhere but page_init or page_load.






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add an attribute to each element bartnowa XSLT 3 November 8th, 2007 12:12 PM
How to add attribute to unbounded element 2BOrNot2B XML 4 January 16th, 2007 03:42 PM
XSLT, add attribute ik XSLT 6 August 22nd, 2006 11:03 AM
How to add an attribute crossedge XSLT 5 March 16th, 2006 06:31 AM
Add an attribute to existing table peter_budo SQL Language 9 April 24th, 2005 01:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.