473,473 Members | 1,538 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problem adding an attribute to button

121 New Member
Hello,
I have a page, divided into 3 section. Left Menu, Middle and Right Menu.

Left Menu data comes from control, Middle Menu data is sorted on a page and Right Menu links also depends upon page to page so they are set on a page itself as

Expand|Select|Wrap|Line Numbers
  1. Dim button As LinkButton = New LinkButton()
  2.         button.Text = "imarket agency list"
  3.         AddHandler button.Click, AddressOf abc
  4.         button.Attributes.Add("class", "rightmenu")
  5.         button.Attributes.Add("causesvalidation", "false")
  6.         RightMenu.Controls.Add(button)
As seen above, i am trying to create a linkbutton and trying to add it to RightMenu. My problem is how can i get this button to ignore validation. i.e. Whenever i click on this linkbutton(which comes on right menu), validation fires if something is not valid on that page. I thought adding attribute of 'causesvalidation' as 'false' would work as 'class' but it doesn't.

Am i missing something here or is their any another way to implement this.

Regards
Jay
Oct 26 '10 #1
1 1747
jay123
121 New Member
Expand|Select|Wrap|Line Numbers
  1. button.CausesValidation = False
Oct 26 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Phil Townsend | last post by:
I need to add a button to a datagrid. I have tried using the ButtonColumn and have also tried adding a button to a templatecolumn > itemtemplate. Whatever I have tried doesn't work, nor does it...
4
by: Chris | last post by:
I think I must be going crazy. All I want to do is add a button to the bottom of a datagrid which will later run some code for a web based project. I've created a custom control that inherits from...
0
by: Nikhil Patel | last post by:
Hi all, I am having a problem adding a reference in an ASP.Net project. I have written a custom control using a Web Control Library project. I compiled this project and generated a dll. Now...
2
by: Lars Netzel | last post by:
I have a simple aspx form where a few fields are validated with RequiredFieledValidators. They work fine.. Now I needed to add an own onclick validation that checks something else and that has a...
1
by: Joel Byrd | last post by:
I am having a problem adding a node to the page. This works on other browser (Opera, Firefox, etc.), but not in IE. The following is the function to add the node: (the id "test_div" is a...
0
by: Jaime Stuardo | last post by:
Hi all... I have the following curious problem, I have a GridView that I bind after I press a button in the web form. That grid has a template column, which contains a checkbox (in the header...
2
by: darrel | last post by:
I am using a javascript WYSIWYG text editor for our CMS. To grab the proper content we need to add a javacsript call to the form: Form1.Attributes.Add("onSubmit", "myOnSubmitEventHandler();") ...
0
by: bostjanj | last post by:
Hi, I have a problem adding web service to project. I get the following error: There was an error downloading '/service.asmx'. The request failed with the error message: Object moved to...
0
by: Alejandro | last post by:
Hello, I have a little problem with a button in a web application that i'm developing. I have two textbox for the user and password and a button to log in.. I have this code: Code: ...
1
by: sejal17 | last post by:
Hello everyone, I have a problem with taking button in gridview and datalist.In datalist,i have one field to display naming card_price and one button naming BUY.I want to click that BUY...
0
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...
0
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...
0
jinu1996
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...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.