i declare the button in .aspx its id is btn1
My prob is ,i need to assign the class name of the button and value of the button in action side(i.e in controller)
Hi
I want to create log in page with c# asp.net.
I do it.
Now when the user is log in, I want to get user ID and use it in other page.
How can i do it?
Thank you for your help
I'm developing an application with javascript. What I need is to have divs with id's (1,2,3...) and be able to insert a div between, for example, 2 and 3, with jquery, and then have that be the new three, and three becomes four, four becomes five, etc. I've got the div insertion working, I just need to know how to reorder the divs. Any ideas?
Hi
I need to change the font color on the first link.
<a href="/default.aspx" class="content">Frontpage</a>
<a href="/default.aspx" class="content" id="product_randomnumber_link">Frontpage</a>
But I just can't figure out a way to only select the first a.
How can i return Last Insert Id on my store procedure using MySQL and use them with Nhibernate?
When i am inserting recording using Nhibernate + mysql store procedure then i am getting error that result not found
IQuery qry = session.CreateSQLQuery(string.Format("{0})", qryString)).AddScalar("ProductID", NHibernateUtil.Int32);
qry.List();
tx.Commit();
Hello,
after a website mirrored using HTTrack, there is lots of ads. I just want to replace that ads by ID or class, or by text, using script (Perl, Python, Ruby, etc), or any other way
Does anyone know what script can do this job?
Thanks in advance.
formbuild's start_with_layout generates this code
<form action="link" method="post"><table>
how do i add id to it? i wanna add some js things that adds elements
Hi, Here is my scenario:
I have three models Subscriber, Subscription, Plan, with has_many :through relationship
between Subscriber and Plans.
A subscriber can have multiple plans with one active plan. Whenever a subscriber selects a plan I save it using accepts_nested_attributes_for :subscriptions. I get one plan from the form.
Now my problem is I want to get the ID of the record created in subscriptions table.
Hey guys,
I just got a problem which is I can't get the height property of a <p>.(use javascript document.getElementById(id).offsetHeight)
It works fine both in FF or chrome.
I have tried to set the style of the <p> to height:100%;/height:auto;
but both not work.
Please help me, thanks :D
I'm looking to capture the Cell ID information and also the variable that is responsible for the signal strength bar on the iPhone for testing purposes. The information is accessible via the field test mode - is there any way to capture and store the data?
Normally, we get first value that way:
$("#color option:first").val()
But I need something like
$(this.id option:first).val()
and of course it doesn't work.
Does wx provide a handy way to get anything like this in a platform-independent way? I don't think C++ libs themselves provide anything.
I don't have a definite idea what should be used for the unique ID... MAC address is common but what else could be used?
The site im working on is an Ajax enabled ASP.net/C# project and i have a URL like this:
http://localhost:2531/(S(lfcvqc55wkabpp55o1x4pvq5))/Logon.aspx
How do you get rid of the (S(lfcvqc55wkabpp55o1x4pvq5)) portion of the URL? I have a feeling its a web.config parameter however I'm not really sure what you call this part, GUID, Session ID?
I got the group names by using
ContactList clist=(ContactList)pim.openPIMList(PIM.CONTACT_LIST, PIM.READ_WRITE);
String[] s=clist.getCategories();
and now i want the groupid like i am getting the contact id using Contact.uid
I have the following function that I only want to run inside a specific div with the id of imgWrapper.
I have tried a few things with parent but I cannot seem to figure this out.
<script type="text/javascript" language="javascript">
$(document).ready(
function () {
$("img").each(function () {
var src = $(this).attr("src");
if (src.substring(0, 1) == "/")
$(this).attr("src", "http://serverName.com/" + src.substring(1))
});
}
);
</script>
Hello, I am trying to use RE to match a changing ID and extract it. I am having some bother getting it working. The String is:
m = 'Some Text That exists version 1.0.41.476 Fri Jun 4 16:50:56 EDT 2010'
The code I have tried so far is:
r = re.compile(r'(s*\s*)(\S+)')
m = m.match(r)
Can anyone help extract this string.
Thanks
Hello,
Do you know how I can get the CGWindow Id of any focussed window (belonging or not to the current application) ?
Thanks in advance for your help :)
Regards,
Table A
tableAID
tableBID
grade
Table B
tableBID
name
description
Table A links to Table b from the tableBID found in both tables.
If I want to find the row in Table A, which has the highest grade, for each row in Table B, I would write my query like this:
select max(grade) from TableA group by tableBID
However, I don't just want the grade, I want the grade plus id of that row.
Given an HTML string like:
<span class="findme" id="31313131313">The Goods</span>
What kind of REGEX in Coldfusion would return just (if it's even possible?): 31313131313
Thanks!