Click here to Skip to main content
15,889,116 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: user control Pin
Richard MacCutchan23-Nov-09 5:28
mveRichard MacCutchan23-Nov-09 5:28 
AnswerRe: user control Pin
Abhishek Sur23-Nov-09 8:35
professionalAbhishek Sur23-Nov-09 8:35 
QuestionDataReader in the code behind. Pin
ToddHileHoffer23-Nov-09 5:00
ToddHileHoffer23-Nov-09 5:00 
AnswerRe: DataReader in the code behind. Pin
David Mujica23-Nov-09 5:19
David Mujica23-Nov-09 5:19 
GeneralRe: DataReader in the code behind. Pin
ToddHileHoffer23-Nov-09 5:42
ToddHileHoffer23-Nov-09 5:42 
QuestionVersion of Unicode in use for asp.net 3.5 Pin
bracketsfox23-Nov-09 2:24
bracketsfox23-Nov-09 2:24 
AnswerRe: Version of Unicode in use for asp.net 3.5 Pin
Abhishek Sur23-Nov-09 3:47
professionalAbhishek Sur23-Nov-09 3:47 
QuestionAbout Dropdownlist in ASp:content page Pin
Rajeshwar Code- Developer23-Nov-09 1:15
Rajeshwar Code- Developer23-Nov-09 1:15 
Hai


see below code


<%@ Page Theme="Default" MasterPageFile="~/Shared/main.Master" Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="CMCS.UI.Shell.Web.Login" %>

<html>
<head>
<title>
</title></head>
<body>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">

<asp:Login ID="Login1" runat="server">
<LayoutTemplate>
<fieldset>
<legend>Login</legend>
<div>Login
<p>
<small><i>You need to be logged on in order to download the CMCS application. Please provide the username and password that was given to you, and click "Login".</i></small>
</p></div>
<div><label>Username</label></div>
<div id="fUsername">
<asp:TextBox ID="Username" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="UserNameRequired" runat="server"
ControlToValidate="UserName" ErrorMessage="User Name is required."
ToolTip="User Name is required." ValidationGroup="Login">*</asp:RequiredFieldValidator>
</div>
<div><label>Password</label></div>
<div id="fPassword">
<asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="PasswordRequired" runat="server"
ControlToValidate="Password" ErrorMessage="Password is required."
ToolTip="Password is required." ValidationGroup="Login">*</asp:RequiredFieldValidator>
</div>
<div><label>Language</label></div>
<div >
<asp:DropDownList ID="ddlLan" runat="server">
<asp:ListItem>English</asp:ListItem>
<asp:ListItem>Hebrew</asp:ListItem>
<asp:ListItem>Russian</asp:ListItem>
</asp:DropDownList>
</div>
<div id="fLogin">
<asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In"
ValidationGroup="Login" onclick="LoginButton_Click" />
<small><asp:CheckBox ID="RememberMe" runat="server" Text="Remember me next time." /></small>
</div>
<div id="fFailure">
<asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
</div>
</fieldset>
</LayoutTemplate>
</asp:Login>

</asp:Content>
</body>
</html>



Now just i want to know in dropdowlist i added three fields.

so now in .cs page i want to take slectedvalue in dropdownlist .
ddllan.seletedvalue.tostring(); i m trying to do this.
but the thing is i enable to see the ddllan id also.

is there any am i msiing in this code.

try and try untill reach success..

AnswerRe: About Dropdownlist in ASp:content page Pin
Amit Patel198523-Nov-09 1:27
Amit Patel198523-Nov-09 1:27 
GeneralRe: About Dropdownlist in ASp:content page Pin
Rajeshwar Code- Developer23-Nov-09 1:35
Rajeshwar Code- Developer23-Nov-09 1:35 
AnswerRe: About Dropdownlist in ASp:content page Pin
sashidhar23-Nov-09 1:33
sashidhar23-Nov-09 1:33 
GeneralRe: About Dropdownlist in ASp:content page Pin
Rajeshwar Code- Developer23-Nov-09 1:41
Rajeshwar Code- Developer23-Nov-09 1:41 
AnswerRe: About Dropdownlist in ASp:content page Pin
Amit Patel198523-Nov-09 1:51
Amit Patel198523-Nov-09 1:51 
GeneralRe: About Dropdownlist in ASp:content page Pin
Rajeshwar Code- Developer23-Nov-09 2:12
Rajeshwar Code- Developer23-Nov-09 2:12 
GeneralRe: About Dropdownlist in ASp:content page Pin
Amit Patel198523-Nov-09 2:15
Amit Patel198523-Nov-09 2:15 
GeneralRe: About Dropdownlist in ASp:content page Pin
Rajeshwar Code- Developer23-Nov-09 2:39
Rajeshwar Code- Developer23-Nov-09 2:39 
GeneralRe: About Dropdownlist in ASp:content page Pin
sashidhar23-Nov-09 3:57
sashidhar23-Nov-09 3:57 
GeneralRe: About Dropdownlist in ASp:content page Pin
Rajeshwar Code- Developer23-Nov-09 3:52
Rajeshwar Code- Developer23-Nov-09 3:52 
GeneralRe: About Dropdownlist in ASp:content page Pin
sashidhar23-Nov-09 4:01
sashidhar23-Nov-09 4:01 
Questionwebsite Search Pin
Richa_Soni22-Nov-09 23:00
Richa_Soni22-Nov-09 23:00 
AnswerRe: website Search Pin
John Bracey22-Nov-09 23:05
John Bracey22-Nov-09 23:05 
GeneralRe: website Search Pin
Richa_Soni22-Nov-09 23:11
Richa_Soni22-Nov-09 23:11 
AnswerRe: website Search Pin
sashidhar22-Nov-09 23:21
sashidhar22-Nov-09 23:21 
Questionwindow.showModalDialog problem Pin
pss.srinivasan22-Nov-09 22:22
pss.srinivasan22-Nov-09 22:22 
AnswerRe: window.showModalDialog problem Pin
Abhishek Sur22-Nov-09 22:25
professionalAbhishek Sur22-Nov-09 22:25 

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.