Click here to Skip to main content
15,901,373 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Creating an Alert box in an Atlas UpdatePanel? Pin
bokuceres30-Jan-08 19:40
bokuceres30-Jan-08 19:40 
AnswerRe: Creating an Alert box in an Atlas UpdatePanel? Pin
anurag.veda21-Sep-09 9:28
anurag.veda21-Sep-09 9:28 
GeneralDetect Os Pin
kibromg29-Jan-08 10:24
kibromg29-Jan-08 10:24 
AnswerRe: Detect Os Pin
pmarfleet29-Jan-08 10:43
pmarfleet29-Jan-08 10:43 
GeneralMultiview Pin
waheed awan29-Jan-08 8:43
waheed awan29-Jan-08 8:43 
GeneralRe: Multiview Pin
Not Active29-Jan-08 14:35
mentorNot Active29-Jan-08 14:35 
GeneralDropDownList Pin
waheed awan29-Jan-08 8:27
waheed awan29-Jan-08 8:27 
GeneralRe: DropDownList Pin
pmarfleet29-Jan-08 9:20
pmarfleet29-Jan-08 9:20 
droplist.Attributes.Add("onclick", "click()");

This line of code establishes that a javascript function named 'click()' will handle the javascript onclick event for your dropdownlist control.

i have a function in cs file
public void click()
{

}

You are confusing client-side event handlers (typically written in Javascript, located in the ASPX page) with server-side event handlers (written in your preferred .NET language, located in the code-behind file). There's no server-side onclick event for the DropDownList control, so presumably you want to define a javascript method to execute in the client's browser. You can do this thus:

<script language="javascript">
function click()
{
// add implementation here
}
</script>

Paul Marfleet

"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush


QuestionHow to track site visitors Pin
ASPnoob29-Jan-08 7:20
ASPnoob29-Jan-08 7:20 
AnswerRe: How to track site visitors Pin
MrPlankton29-Jan-08 8:18
MrPlankton29-Jan-08 8:18 
GeneralRe: How to track site visitors [modified] Pin
ASPnoob29-Jan-08 12:54
ASPnoob29-Jan-08 12:54 
GeneralRe: How to track site visitors Pin
MrPlankton30-Jan-08 5:23
MrPlankton30-Jan-08 5:23 
Questioncall asp.net members from html page Pin
Shimmy Weitzhandler29-Jan-08 6:14
Shimmy Weitzhandler29-Jan-08 6:14 
GeneralRe: call asp.net members from html page Pin
MrPlankton29-Jan-08 8:16
MrPlankton29-Jan-08 8:16 
GeneralRe: call asp.net members from html page Pin
Shimmy Weitzhandler29-Jan-08 12:41
Shimmy Weitzhandler29-Jan-08 12:41 
GeneralRe: call asp.net members from html page Pin
Tad McClellan29-Jan-08 18:57
professionalTad McClellan29-Jan-08 18:57 
GeneralRe: call asp.net members from html page Pin
Not Active29-Jan-08 14:39
mentorNot Active29-Jan-08 14:39 
GeneralRe: call asp.net members from html page Pin
Shimmy Weitzhandler30-Jan-08 1:16
Shimmy Weitzhandler30-Jan-08 1:16 
GeneralJ2EE vs .NET Pin
ChrisFarrugia29-Jan-08 6:03
ChrisFarrugia29-Jan-08 6:03 
GeneralWrong forum Pin
pmarfleet29-Jan-08 10:45
pmarfleet29-Jan-08 10:45 
GeneralRe: Wrong forum Pin
ChrisFarrugia29-Jan-08 11:25
ChrisFarrugia29-Jan-08 11:25 
QuestionHow to upload an excel file to ftp server Pin
Shahid Bilal29-Jan-08 5:59
Shahid Bilal29-Jan-08 5:59 
GeneralVoice recording is not working in server Pin
Lijo Rajan29-Jan-08 5:24
Lijo Rajan29-Jan-08 5:24 
GeneralRe: Voice recording is not working in server Pin
rahul145511-Mar-10 19:25
rahul145511-Mar-10 19:25 
GeneralViewstate loading takes too long Pin
Manny Castillo29-Jan-08 4:41
Manny Castillo29-Jan-08 4:41 

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.