Click here to Skip to main content
15,888,527 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to get image Pin
Rajee Maharjan21-Jul-09 20:56
Rajee Maharjan21-Jul-09 20:56 
GeneralRe: how to get image Pin
Christian Graus21-Jul-09 21:24
protectorChristian Graus21-Jul-09 21:24 
Questionhow many times a page is view Pin
amit sahu2021-Jul-09 20:11
amit sahu2021-Jul-09 20:11 
AnswerRe: how many times a page is view Pin
Christian Graus21-Jul-09 20:17
protectorChristian Graus21-Jul-09 20:17 
AnswerRe: how many times a page is view Pin
Jagz W21-Jul-09 23:04
professionalJagz W21-Jul-09 23:04 
Questionhow to get the value of the dropdownlist selected Pin
lakshmichawala21-Jul-09 18:52
lakshmichawala21-Jul-09 18:52 
AnswerRe: how to get the value of the dropdownlist selected Pin
Abhijit Jana21-Jul-09 18:55
professionalAbhijit Jana21-Jul-09 18:55 
GeneralRe: how to get the value of the dropdownlist selected Pin
lakshmichawala21-Jul-09 19:08
lakshmichawala21-Jul-09 19:08 
in javascript
=============
<script type="text/javascript" language ="javascript" >

function AddItem()

{

var opt = document.createElement("option");

document.getElementById("DropDownList1").options.add(opt);

opt.text="One";

opt.value="One"



var opt = document.createElement("option");

document.getElementById("DropDownList1").options.add(opt);

opt.text="Two";

opt.value="Two"



var opt = document.createElement("option");

document.getElementById("DropDownList1").options.add(opt);

opt.text="Three";

opt.value="Three";



return false;



}
function GetDropDownValue()

{

alert("h")

var ddlValue;

var objControl = document.getElementById('<%=DropDownList1.ClientID %>');

alert(objControl.selectedIndex)

ddlValue=objControl.options[o

bjControl.selectedIndex].value;

document.getElementById('hfldResult').value = ddlValue;



}



</script>



in code behind

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim tJavaScript As String = ""

tJavaScript = "<script language='javascript'>GetDropDownValue();</script>"

Page.ClientScript.RegisterStartupScript(Me.GetType, "abc", tJavaScript)

End Sub
GeneralRe: how to get the value of the dropdownlist selected Pin
Christian Graus21-Jul-09 19:41
protectorChristian Graus21-Jul-09 19:41 
GeneralRe: how to get the value of the dropdownlist selected Pin
lakshmichawala21-Jul-09 19:45
lakshmichawala21-Jul-09 19:45 
GeneralRe: how to get the value of the dropdownlist selected Pin
Christian Graus21-Jul-09 20:18
protectorChristian Graus21-Jul-09 20:18 
GeneralRe: how to get the value of the dropdownlist selected Pin
Abhijit Jana21-Jul-09 19:52
professionalAbhijit Jana21-Jul-09 19:52 
GeneralRe: how to get the value of the dropdownlist selected Pin
Brij21-Jul-09 19:58
mentorBrij21-Jul-09 19:58 
GeneralRe: how to get the value of the dropdownlist selected Pin
lakshmichawala21-Jul-09 20:01
lakshmichawala21-Jul-09 20:01 
GeneralRe: how to get the value of the dropdownlist selected Pin
Brij21-Jul-09 20:06
mentorBrij21-Jul-09 20:06 
Questionrestore only one table Pin
ptvce21-Jul-09 18:40
ptvce21-Jul-09 18:40 
AnswerRe: restore only one table Pin
Abhijit Jana21-Jul-09 18:49
professionalAbhijit Jana21-Jul-09 18:49 
GeneralRe: restore only one table Pin
ptvce21-Jul-09 20:25
ptvce21-Jul-09 20:25 
AnswerRe: restore only one table Pin
dan!sh 21-Jul-09 19:00
professional dan!sh 21-Jul-09 19:00 
Question[Message Deleted] Pin
Rajni_pooni21-Jul-09 18:21
Rajni_pooni21-Jul-09 18:21 
AnswerRe: yj Pin
Abhijit Jana21-Jul-09 18:32
professionalAbhijit Jana21-Jul-09 18:32 
Questiondataset visulizer [modified] Pin
Malik112221-Jul-09 15:51
Malik112221-Jul-09 15:51 
AnswerRe: dataset visulizer Pin
Christian Graus21-Jul-09 16:20
protectorChristian Graus21-Jul-09 16:20 
GeneralRe: dataset visulizer Pin
N a v a n e e t h21-Jul-09 16:26
N a v a n e e t h21-Jul-09 16:26 
GeneralRe: dataset visulizer Pin
Malik112221-Jul-09 17:03
Malik112221-Jul-09 17:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.