Thanks for taking the time to read this.
I have an unknown number of (dynamically inserted) input elements in a form, to each of which I want to attach the datepicker widget included in jQuery UI.
All of the input elements that I want to attach the datepicker to have a class of "date-pick". Obviously because we have more than one match...
I have a function that causes an exception in the designer. Can I avoid the call of the function if the designer loads it. Is there an attribute or something that is better than try catch?
Some more details:
I mean the visual studio designer for win forms. My form is using a signleton wich calls LoadProject() on initialize. Now I want t...
Given the following XML:
<results>
<result type="1">pass</result>
<result type="2">pass</result>
<result type="3">pass</result>
</results>
How do I create the XSD that forces the "result" elements to be ordered by the value of the "type" attribute? Also note, I don't necessarily need an ambiguous sort on the "type" ...
I have an XML which looks something like this
<?xml version="1.0" encoding="utf-8" ?>
<Applicant>
<NameValueGroup attribute="Name">
<NameValue desc="One" value="test1"/>
<NameValue desc="Two" value="test2"/>
<NameValue desc="Three" value="test3"/>
<NameValue desc="Four" value="test4"/>
</NameValueGroup>
<NameValueG...
According to my code a=1, b=2, c=3 etc. I thought the flag would make a=1, b=2, c=4, etc
[Flags]
public enum someEnum { none, a, b, c, d, e, f, }
How do i get what i intended(c=4, e=8)? and what does the [Flags] mean above?
...
The subject sums my question up. Is there a standard? I tried researching W3C consortium and couldnt find anything on the character limit, just some notes on speacial characters needs to be escaped
...
I'm reading some XML with PHP and currently using the DOMDocument class to do so. I need a way to grab the names and values of a tag's (instance of DOMElement) attributes, without knowing beforehand what any of them are. The documentation doesn't seem to offer anything like this. I know that I can get an attribute's value if I have its n...
I am writing a Cross platform application using C++/STL/Boost and I realized they do not provide a way to check if a folder or file is hidden or is a system file in Windows.
What's the simplest way to do this in C/C++ for Windows ?
Ideally I have a std::string with the path (either to a file or folder), and would return if it's hidde...
I have made a custom Attribute here named AAtribute, and for instance a class called B where one or more methods use the attribute. Is it possible to get the MethodInfo of the method that holds the attribute (in this case BMethod1) as (one of) it's attributes without walking through the whole assembly and looking at all defined methods f...
Following sample is taken from "Dive into python" book.
class MP3FileInfo(FileInfo):
"store ID3v1.0 MP3 tags"
tagDataMap = ...
This sample shows documenting the MP3FileInfo, but how can I add help to MP3FileInfo. tagDataMap
...
Is there a pragma or debugger attribute which will allow the debugger to not break on the throwing of a specific exception even though under the Debug >> Exceptions menu I've told it to break when any CLR Exceptions are throw?
In general while developing I like to have it break on exceptions while debugging so that I can immediately ins...
How can you see what the attribute rel contains when it is transferred by POST?
I transfer a variable by the rel attribute by jQuery.
I would like to know what the attribute, $_POST['answer'], contains.
This question is based on this thread.
jQuery IRC tells me that the solution seems to be Firebug somehow.
How can you see POST data i...
I've just read the following in the CLI specification regarding SecurityExceptions upon method calls:
The security check can occur when the CIL is converted to native code rather than at runtime.
How does Microsoft's implementation handle this?
If, for example, only a certain usergroup is allowed to access some class, and i have pla...
Hey guys, I am trying to use JQuery to manage some popups. This page I am building will have 15 projects, each which is a thumbnail contained within a DIV. Each DIV has a Name attribute so I would like to have JQuery find the name of the DIV and activate the hidden popup with the same name that is contained within the ID…
Currently I ha...
public class MyPlugin : IPluginSystem
{
[ExternalInput]
public String myExternalProperty { get; set; }
public bool execute()
{
if (myExternalProperty.Equals("My setter is called from elsewhere"))
return true;
return false;
}
}
Is this possible? How would I achieve this? Would I need t...
As python does not have concept of constants, would it be possible to raise an exception if an 'constant' attribute is updated? How?
class MyClass():
CLASS_CONSTANT = 'This is a constant'
var = 'This is a not a constant, can be updated'
#this should raise an exception
MyClass.CLASS_CONSTANT = 'No, this cannot be updated, ...
So I have an XML file that I am trying to loop through in order, according to the attribute, "order".
Here is an example:
<page>
<talentTrees>
<tree name="Football" order="2">
<tree name="Baseball" order="0">
<tree name="Frisbee" order="1">
</talentTrees>
</page>
My goal is to loop through each "tree" using foreach, but I want to rea...
Hi
I am learning C# 3.5 and wanna to know that what [STAThread] do in our programs?
Thank you
...
Suppose I have a class named Data.
Another class annotates one of its members, of type data, with some attribute.
For example:
public class Example{
[DefaultNameAttribute("default name")]
public Data Name{get;set}
}
What I'm looking for is a way, from within the class Data, to retrieve that attribute and the data it contains....
I have a control, control1, with the attributes such as DefaultValue, Category and Browsable set.
I have a user control that includes control1 and exposes some of the properties.
Is the correct way to refer to the attributes in control1, without duplicating them all, to use the AttributeProviderAttribute?
<AttributeProvider("AssemblyQu...