id

How can I use a traditional HTML id attribute with an ASP.net runat='server' tag?

I am refactoring some CSS on a website I have been working on, and noticed the absence of traditional HTML IDs in the code. There is heavy use of CssClass='', or sometimes just class='', but I can't seem to find a way to say id='' and not have it swapped out by the server. Here is an example: <span id='position_title' runat='server'>Ma...

Unique ID c++

What is the best way to generate a Unique ID from two (or more) short ints in C++? I am trying to uniquely identify vertices in a graph. The vertices contain two to four short ints as data, and ideally the ID would be some kind of a hash of them. Prefer portability and uniqueness over speed or ease. There are a lot of great answers...

What is a valid value for id attributes in html

When creating id attributes for html elements what rules are there for the value? ...

div class vs id

When using divs when is it best to use a class vs id? Is it best to use class, on say font variant or elements within the html? Then use id for the structure/containers? This is something I've always been a little uncertain on, any help would be great. ...

Unix Proc Directory

I am trying to find the virtual file that contains the current users id. I was told that I could find it in the proc directory, but not quite sure which file. ...

Sending values through links (html)

Here is the case, i got 2 pages. What i want is to have a number of text links( ) on page 1 all directing to page 2, but i want each link to send a different value. On page 2 i want to show that value like: Hello you clicked {value} Another point to take in account is that i cant use any php in this situation, just html. ...

Hashes vs Numeric id's

When creating a web application that some how displays the display of a unique identifier for a recurring entity (videos on YouTube, or book section on a site like mine), would it be better to use a uniform length identifier like a hash or the unique key of the item in the database (1, 2, 3, etc). Besides revealing a little, what I thin...

Getting a unique id from a unix-like system

Hello. I want to get from any Unix-like system (if this is possible) a unique id that will be persistent every time my application runs in the same machine. If it is possible, I want to get the same id from Linux or FreeBSD or Solaris, etc... I don't want to generate a new id for each machine, but get an already existent id, and I prefe...

CSS hierarchy classes and IDs

I am building a menu using XHTML,CSS, and jQuery and I ran into a problem with my CSS. Here is my test page, and here is my css. What I am having problems with is that my .subMenu class is inheriting the properties of my #menu, the background colors and sizes are the same. I am looking for a solution that leaves .subMenu as a class s...

Is it OK to include an ID inside the URL ?

Hello people. Well, my question is simple. Does the ID affect the position of a webpage on Google ? I have links like this http://example.com/news/title-slug/15/ and people say to me that I should remove the ID from the URL. And I belive that is not true. By my logic, you can't depend on the title's slug. I know it should work per...

Grails Domain Class without ID field or with partially NULL composite field

Per an answer to a previous question (answer here: http://stackoverflow.com/questions/425294/sql-database-views-in-grails#427691), I have tried to use a domain class to represent a view in my database. This works wonderfully in most cases, however: I have a view with no single unique key. Let's say the underlying tables look like this: ...

C# Web reportviewer create link to page with id

Hi, I have a reportviewer and i want a field to act as a hyperlink. The hyperlink must look like: page.aspx?id=1 But how do i achieve this? I have entered in the properties window, navigation tab, radio "Jump to URL": page.aspx?id=sum(Field!field.value) This doens't work :( What do i have to do to get this work? Thnx in advance ...

how to send user ID across differnet application in ASP.Net?

Hello everyone, I have two web applications all are developed by ASP.Net. Now I want to provide a feature which enables the user to click from one URL in application site (one virtual directory of IIS) A to the other URL in application site B (another virtual directory of IIS). I have two ideas to implement them, but both of them have ...

get one Attribute id, set as another Attribute id

I'm currently using scriptaculous and prototype to drag/drop elements from one div to another, and append a new Element based on the 'src' of the element that is dropped, creating a new draggable out of it. What I need to do is assign the id of the dropped element to the new one once it is created. I've tried a ton of different approac...

what type of database record id to use: long or guid ?

Hi In recent years I was using MSSQL databases, and all unique records in tables has the ID column type of bigint (long). It is autoincrementing and generally - works fine. Currently I am observing people prefer to use GUIDs for record's identity. Does it make sense to swap bigint to guid for unique record id? I think it doesn't make...

Live ID Web Authentication on Azure

I have a Silverlight application and want to use it, on Azure with Live ID web autentication. Now I search for a good tutorial or solution to use the Live Id Web Authentication in a Cloud application, to use it on Azure. Can someone help me? ...

What is a practical maximum length for HTML id?

The HTML spec says ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods ("."). And even though the SGML declaration of HTML 4 uses the value 65536 for NAMELEN, it notes "Avoid fixed limits." But surely browsers, ...

Java JLabel - add a unique identifier

Hello all, Is there anyway to add an ID or a unique identifier to a JLabel? Thanks all ...

Return process id

Hello everyone. I have this issue that I want to resolve. Lets think we have this situation. We have one instance of notepad.exe running. I run another notepad.exe. Now I want to kill the latter. How can I do it? If I was able to know the pid of last notepad.exe then I could kill it. But how to get the PID of last opened program? Anot...

CSS: are class and id interchangeable?

I know others have asked about using class and id in CSS files, such as Div: Class vs Id So I'm aware of the semantic and syntactic differences between class and id: that id should be used for elements that are used only once and class should be used for elements that share attributes in common. But this isn't a hard-and-fast rule, i...