attributes

SharePoint 2007 -Content for this URL is excluded by the server because a no-index attribute

Did any of guys run into this error where the search crawler is ignoring an aspx page? I am getting the following warning message for these page: "Content for this URL is excluded by the server because a no-index attribute". Any help will be appreciated. Thanks. ...

How do I convert a string into an OctetString (C#)?

I'm importing data into an LDAP store. The attribute in question is of type OctetString. I have a normal string that I need to get into that attribute. I'm using C# (.net 3.5) How do I do it? ...

getting attribute using jQuery in IE

I have simple button: <button type="button" id="somebutton" value="start">blah</button> in jQuery, on the bind('click, function(){.... I have this: $(this).attr("value") of course what this does is gets the value of an attribute, which in this particular case is: "start". OK, this works in firefox, I get correct value of "start". ...

Appropriate use of custom attributes?

I have a DataContract class that I have to fill by values from the Active Directory of our company. [DataContract(Namespace = Global.Namespace)] public class UserProfile { [DataMember(IsRequired = true, EmitDefaultValue = false)] public string EmployeeID { get; private set; } [DataMember(IsRequired = true, EmitDefaultValue ...

hasattr() vs try-except block to deal with non-existent attributes

if hasattr(obj, 'attribute'): # do somthing vs try: # access obj.attribute except AttributeError, e: # deal with AttributeError Which should be preferred and why? ...

How to convert from a string to object attribute name? --pls help!

Hi, This might be a simple prob. But I am new to rails. I am trying to convert a string value into a name of an attribute that belongs to an object. For example, in the following code, I need all the string values in the column_array turned into attribute names. "student_identification" , "email".. all these are actual column names o...

Disable HTML parsing in JComboBox.addItem(o)

I'm looking for a way to disable HTML parsing of the addItem() method in JComboBox(). JComboBox jHighlight = new JComboBox(); for (int i = 0; i < tl.size(); i++) { //getTagname() returns a string like "br", "a", "body" or "html" jHighlight.addItem("<" + tl.get(i).getTagname() + ">"); } The output in the JComboBox will look ...

How to I get the property belonging to a custom attribute?

Hi, I need to find the type of the property that a custom attribute is applied to from within the custom attribute. For example: [MyAttribute] string MyProperty{get;set;} Given the instance of MyAttribute, how could I get a Type descriptor for MyProperty? In other words, I am looking for the opposite of System.Type.GetCustomAttrib...

Firefox/jQuery is not reading any attribute for an img element

So I am attempting to combine two image galleries, Galleria and Lightbox. The way it is supposed to work is that Lightbox will read the href from the anchor tag and Galleria will read the src from the image tag in the following code: <a href="./public/images/gallery/2.JPG"> <img class="replaced" src="./public/images/gallery/2.JPG"/> </...

Authorize attribute does not preserve post data

In order to preserve post data after utilizing the [Authorize] attribute on a controller method, which then redirects the user to a login page, which then upon successful authentication redirects the user to where they were intending to go -- how would this be done? The original form submission is not relayed by default. A response to a ...

(Simple) Can HTML properties be attributes or are they only for CSS?

The SVG spec talks about Properties.. what are these? Can they be declared as attributes inline with the element? .. or can they only be declared in CSS stylesheets? ...

Drupal/Ubercart ... node styling?

I am trying to style the product view on a Drupal site, but am having problems. I can't find where the node (product) view is put together in ubercart! I'm using UC 5.x-1.7, and I need to style the node (product) view page. At the moment in my node.tpl.php file, I have print $body; which spits out all the SKU, attributes, price, pictur...

(Simple) What characters are allowed in an HTML attribute name?

In HTML attribute name=value pairs, what are the characters allowed for the 'name' portion? ..... Looking at some common attributes it appears that only letters (a-z and A-Z) are used, but what other chars could be allowed as well?... maybe digits (0-9), hyphens (-), and periods (.) ... is there any spec for this? ...

What is EditorReuseAttribute really for?

I can't find any idea of the way to use this attribute? ...

Can I create an XSD schema that places an attribute on all complex types?

I would like to create an XSD that defines an attribute which can be placed on elements from other schemas, or elements that are not in any schema. For example, the schema would look something like this: <xs:schema id="MySchema" targetNamespace="http://tempuri.org/MySchema" elementFormDefault="qualified" xmlns="http://tempu...

JavaBean problem

Hello. I have two JSPs and a JavaBean that aren't working. This is a problem that's probably very common to newbies, so please forgive me if this has been answered in this forum. I've Googled all over the place for an answer to this, and although I'm not the only one who's ever had this problem, I can't seem to figure out what my prob...

Non-Default Constructor

I have a component I created in C# which had previously been using the default constructor, but now I would like it to have its parent form create the object (in the designer), by passing a reference to itself. In other words, instead of the following in the designer.cs: this.componentInstance = new MyControls.MyComponent(); ...

How to read and write extended windows file attributes with win32

Hi, I would like to embed some meta data in a windows file. I came across the concept of extended file attributes, which I believe are used for this very purpose. For example, camera name in jpgs, episode name in avis. Apart from some very obscure non-documented kernel APIs, I cannot find how to do this in c/c++ using the win32 api. ...

jquery title attribute text pop-up hide

Hi guys, I'm currently using the title attribute of my 'a' tag to show and hide images that correspond with this tag. However, when you hover on the 'a' there is the annoying title text that pops up. Can I disable this pop-up text with out completely disabling the title attribute? ANy help is great! Cheers, DanC -----edit------ he...

C# Get Delegate (Func) implementation from concrete class via reflection?

Hi, Sorry for the poor explaination of the problem Totally rewriting question I have the following method: public TReturn FindCached<TSearch, TReturn>(Func<TSearch, TReturn> searchMethod) where TSearch : ISearchSpecification where TReturn : class { SearchSpecification spec = new GetConcre...