Click here to Skip to main content
15,895,283 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: sql injection Pin
Christian Graus27-May-08 23:54
protectorChristian Graus27-May-08 23:54 
GeneralRe: sql injection Pin
eyeseetee28-May-08 0:02
eyeseetee28-May-08 0:02 
GeneralRe: sql injection Pin
eyeseetee28-May-08 0:15
eyeseetee28-May-08 0:15 
GeneralRe: sql injection Pin
N a v a n e e t h28-May-08 0:26
N a v a n e e t h28-May-08 0:26 
AnswerRe: sql injection Pin
Vasudevan Deepak Kumar28-May-08 18:40
Vasudevan Deepak Kumar28-May-08 18:40 
Questiontextbox and dropdownlist in gridview Pin
deepthy.p.m27-May-08 23:39
deepthy.p.m27-May-08 23:39 
AnswerRe: textbox and dropdownlist in gridview Pin
eyeseetee28-May-08 0:00
eyeseetee28-May-08 0:00 
AnswerRe: textbox and dropdownlist in gridview Pin
Imran Khan Pathan28-May-08 0:21
Imran Khan Pathan28-May-08 0:21 
You can also do it using javascript.

Look at this example code.

HTML Source code

<asp:DropDownList ID="ddl" runat="server" onclick="GetValue(this);">
<asp:ListItem Value="1" Text="One"></asp:ListItem>
<asp:ListItem Value="2" Text="Two"></asp:ListItem>
<asp:ListItem Value="3" Text="Three"></asp:ListItem>
</asp:DropDownList>
<asp:TextBox ID="ddltext" runat="server"></asp:TextBox>

Javascript Code

function GetValue(ddlObj)
{
document.getElementById(ddlObj.id + 'text').value=ddlObj.options[ddlObj.selectedIndex].value;
}

please don't forget to vote on the post that helped you.
GeneralRe: textbox and dropdownlist in gridview Pin
eyeseetee28-May-08 0:35
eyeseetee28-May-08 0:35 
GeneralRe: textbox and dropdownlist in gridview Pin
deepthy.p.m28-May-08 0:42
deepthy.p.m28-May-08 0:42 
GeneralRe: textbox and dropdownlist in gridview Pin
deepthy.p.m28-May-08 1:06
deepthy.p.m28-May-08 1:06 
GeneralRe: textbox and dropdownlist in gridview Pin
Imran Khan Pathan28-May-08 1:37
Imran Khan Pathan28-May-08 1:37 
QuestionExporting Large amount of data (20,000) to excel from datagird gives Timeout expired Pin
Member 394372527-May-08 23:19
Member 394372527-May-08 23:19 
AnswerRe: Exporting Large amount of data (20,000) to excel from datagird gives Timeout expired Pin
Vasudevan Deepak Kumar28-May-08 2:33
Vasudevan Deepak Kumar28-May-08 2:33 
Questionwhich database extension file (sdb) Pin
Rinki Mukheraji27-May-08 22:39
Rinki Mukheraji27-May-08 22:39 
AnswerRe: which database extension file (sdb) Pin
Karan_TN27-May-08 22:45
Karan_TN27-May-08 22:45 
GeneralRe: which database extension file (sdb) Pin
Rinki Mukheraji27-May-08 22:54
Rinki Mukheraji27-May-08 22:54 
GeneralRe: which database extension file (sdb) Pin
Karan_TN27-May-08 23:24
Karan_TN27-May-08 23:24 
QuestionCounting within a variable??? Pin
Karan_TN27-May-08 22:31
Karan_TN27-May-08 22:31 
AnswerRe: Counting within a variable??? Pin
Christian Graus27-May-08 23:57
protectorChristian Graus27-May-08 23:57 
Questioncurrent gridview page rows Pin
Pankaj Garg27-May-08 21:35
Pankaj Garg27-May-08 21:35 
AnswerRe: current gridview page rows Pin
eyeseetee27-May-08 21:50
eyeseetee27-May-08 21:50 
GeneralRe: current gridview page rows Pin
Pankaj Garg27-May-08 21:57
Pankaj Garg27-May-08 21:57 
QuestionFile Upload Problem - "The Connection was Reset" message when the user's trying to upload a bigger size file Pin
epp112327-May-08 21:25
epp112327-May-08 21:25 
AnswerRe: File Upload Problem - "The Connection was Reset" message when the user's trying to upload a bigger size file Pin
Sandeep Akhare27-May-08 21:45
Sandeep Akhare27-May-08 21:45 

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.