Click here to Skip to main content
15,910,886 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Browser compatibility Error Pin
nandhububbly13-Aug-07 22:33
nandhububbly13-Aug-07 22:33 
GeneralRe: Browser compatibility Error Pin
nandhububbly13-Aug-07 22:40
nandhububbly13-Aug-07 22:40 
QuestionIterating through the Data Reader Results Pin
ASPnoob13-Aug-07 19:31
ASPnoob13-Aug-07 19:31 
AnswerRe: Iterating through the Data Reader Results Pin
Michael Sync13-Aug-07 19:52
Michael Sync13-Aug-07 19:52 
QuestionTable on Asp.net Pin
AnhTin13-Aug-07 18:51
AnhTin13-Aug-07 18:51 
AnswerRe: Table on Asp.net Pin
N a r e s h P a t e l13-Aug-07 19:05
N a r e s h P a t e l13-Aug-07 19:05 
GeneralRe: Table on Asp.net Pin
AnhTin13-Aug-07 21:30
AnhTin13-Aug-07 21:30 
QuestionDropDownLists and __EventArugment __EventTarget Pin
shivamray13-Aug-07 18:47
shivamray13-Aug-07 18:47 
A dropdownlist is calling a function. The function needs to capture the id (__EventTarget) of the control and the value (__EventArugment).
Below is the code that I have, it can successfully capture and display the id of the drdopdownlist but it does not
capture anything for the selected value (__EventArugment). I've seen similar code being used by others and it seems to be working fine for them
Any help would be greatly appreciated.

Aspx Page:

<code><%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:DropDownList ID="DropDownList1" runat="server" OnSelectedIndexChanged="function" AutoPostBack="true">
<asp:ListItem Text="1" Value="1"></asp:ListItem>
<asp:ListItem Text="2" Value="2"></asp:ListItem>
<asp:ListItem Text="3" Value="3"></asp:ListItem>
<asp:ListItem Text="4" Value="4"></asp:ListItem>
</asp:DropDownList>
</div>
</form>
</body>
</html>
</code>

Code Behind:
<pre>
<code>using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}

protected void function(object sender, EventArgs e)
{
Response.Write(Request.Form["__EVENTARGUMENT"] + Request.Form["__EVENTTARGET"]);
}
}
</code>
AnswerRe: DropDownLists and __EventArugment __EventTarget Pin
John-ph13-Aug-07 20:22
John-ph13-Aug-07 20:22 
Questionchekbox in javascript Pin
Nidhiii13-Aug-07 18:06
Nidhiii13-Aug-07 18:06 
AnswerRe: chekbox in javascript Pin
N a r e s h P a t e l13-Aug-07 18:53
N a r e s h P a t e l13-Aug-07 18:53 
QuestionUpload, download and display images from web server Pin
J Liang13-Aug-07 17:54
J Liang13-Aug-07 17:54 
AnswerRe: Upload, download and display images from web server Pin
N a r e s h P a t e l13-Aug-07 19:18
N a r e s h P a t e l13-Aug-07 19:18 
GeneralRe: Upload, download and display images from web server Pin
J Liang14-Aug-07 14:57
J Liang14-Aug-07 14:57 
QuestionDynamic number of controls Pin
sandrider13-Aug-07 17:54
sandrider13-Aug-07 17:54 
AnswerRe: Dynamic number of controls Pin
shivamray13-Aug-07 18:44
shivamray13-Aug-07 18:44 
GeneralRe: Dynamic number of controls Pin
sandrider13-Aug-07 19:20
sandrider13-Aug-07 19:20 
Questionproblem with SubmitSqlDataSource.InsertParameters Pin
hurrem13-Aug-07 17:50
hurrem13-Aug-07 17:50 
Questionplease help Pin
seemamltn13-Aug-07 17:44
seemamltn13-Aug-07 17:44 
AnswerRe: please help Pin
Michael Sync13-Aug-07 20:03
Michael Sync13-Aug-07 20:03 
AnswerRe: please help Pin
neerubee13-Aug-07 20:46
neerubee13-Aug-07 20:46 
AnswerBAD USER! Pin
leckey14-Aug-07 4:59
leckey14-Aug-07 4:59 
Questionsvg mapping using asp.net??? Pin
mmm!@#13-Aug-07 17:16
mmm!@#13-Aug-07 17:16 
Questionhow to access the checkbox control in nested gridview Pin
SharonRao13-Aug-07 15:03
SharonRao13-Aug-07 15:03 
QuestionImages Pin
seemamltn13-Aug-07 14:17
seemamltn13-Aug-07 14:17 

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.