|
Hi there....
I created two dropdownlist boxes[HTML Controls]. By using javascript i loaded some values to the both boxes. Now how can i get that selected value of both dropdownlist boxes in session variable. If i use hidden control means, it's not getting properly. Please assist me....
Thks n Advance
Sam.M
|
|
|
|
|
Replace HTML dropdownlist with ASP.NET DropDownLists - that's the easiest way and you can access their values in code behind (or store them into session if you need).
Or you can add runat=server attribute to them and declare them in code behind. (However, I recomend you to go for a first option)
By default, HTML is client side, you can not access or set values if you don't make your controls server side by setting runat=server attribute.
Pilo
|
|
|
|
|
Hi friends
i want to hide title bar of the page.
Is it possible in asp.net?
Imran
|
|
|
|
|
You can set title of a page in ASP.NET 2.0 by setting Page.Title property.
However, you can't hide this title. Maybe javascript could help, don't ask me how, ask google
Pilo
|
|
|
|
|
Hi, I'm programming in asp.net 2003. I designed a search utility using javascript in asp.net. The code wis working well in the asp.net page. I'v a text box called txtSearch.
To reference this textbox value, I'm using this javascript in a javascript function called at the onkeypress event of the text box.
var pre = document.getElementById ("txtSearch").value;.//(I'm running it in IE 4 now)
Now I want to convert it to a user control. This statement is not working for the user control. I tried to trap the value with this:
var sndr = window.event.srcElement;
var pre = sndr.text;
alert (pre);
the alert showed "undefined"....
can u tell me what r the other ways of getting the value?..pls
There is no final defeat untill you stop trying.......
|
|
|
|
|
u have to do some functionality before the getElementById method
u need to concat the user control instance id then "_" then the element name like this:
var strSearch = "ucUserControl1_" + "txtSearch";
document.getElementById(strSearch );
This way u can access it
hope this would help
Best Regards
3ala2
|
|
|
|
|
Hi Friends,
I want to run an Client based .exe (like calc.exe) from the aspx page of my site. I donot want to use the .wsh file. Is there any way??
Thank u in advance
Nitesh
|
|
|
|
|
Not if you don't install some stuff on client side (like ActiveX or so).
Imagine security problems, if it would be possible to run from page on internet any .exe file on your computer!
Pilo
|
|
|
|
|
Thanks for ur reply,
But i would like to use ActiveXObject in my javascript for running an exe in the client machine. I found that activexobject do not have any method that can be used for running an exe. Are there other ways to do it???
Thank You.
Nitesh
|
|
|
|
|
Hi folks,
I have an extremely simple question. I have a datagrid that consists 18 edititemtemplate columns.But When I try to edit these columns then I can only view 16 of them. how can I view and edit all of these columns.
Please Help
|
|
|
|
|
|
Is it too difficult to write just a few words? But thanks for your help also.
|
|
|
|
|
Your question is not simple at all, there can be many reasons why you can not see all of your columns.
Pilo
|
|
|
|
|
I want to display 2 popups one after the other after 5 seconds.
Thanks in advance,
Regards,
Suresh Dayma
|
|
|
|
|
Search for timers in javascript
u call one function and it calls another function after the timer interval has ended
the two function are window.open ...
hope this would help
Best Regards
3ala2
|
|
|
|
|
Thanks for your help..
Regards,
Suresh Dayma
|
|
|
|
|
Hi everybody
i need ajax code for dropdown list box.
from where can i get it?
Imran
|
|
|
|
|
Get it from our Best Friend Google.
Regards,
Satips.
|
|
|
|
|
ARE u mad to get the free source coding.
go and sleep buddy
|
|
|
|
|
Hi indunil
i no need to go and sleep :->
i got free source code of ajax.
EVERYTHING IS POSSIBLE IN THIS WORLD
PaTHan
|
|
|
|
|
I have to prepare a survey like a newsletter, then send it as email to users. Users will fulfill form on EMAIL, then will click send button to send theirs data.
To do this, first i wanted to show what is happining if the user clicks button. but i see nothing is happining. Javascript function is not running. My code is this. What is wrong?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<html xmlns="http://www.w3.org/1999/xhtml" ><br />
<head><br />
<title>Untitled Page</title><br />
<script language="javascript" type="text/javascript"><br />
<!--<br />
function Button1_onclick() {<br />
alert('It is OK.');<br />
}<br />
</script><br />
</head><br />
<body><br />
<input id="Button1" type="button" value="button" language="javascript" onclick="return Button1_onclick()" /><br />
</body><br />
</html>
|
|
|
|
|
Hi All
I have two dropdownlist.first is ddl_category and second is ddl_op
when i select value from ddl_category i want to set this value into ddl_op.
declare str
str=ddl_Category.Selectedvalue.text
I write ddl_op.selectedItem.Text=str
But it's not working.I am not getting exact problem.What happened in this situation?Can u help me how to write and assign value in dropdownlist in aspx page?
Thanks
monika
|
|
|
|
|
hi,
Set autopostback = true for the first dropdownlist...
Thanks & Regards...
Amit
|
|
|
|
|
Hi amit
But my both dropdownlist are filled using javascript codeing.So it's not possible to set autopostback property to true.
if u have solution pls reply me.
Thanks
monika
|
|
|
|
|
Does both of your dropdownlists consists of same items and on selection change of the first dropdownlist you want to set the same for the second one?
Best Regards,
Apurva Kaushal
|
|
|
|