Click here to Skip to main content
15,891,905 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to make a textbox to react to each keystroke? Pin
Sherin Iranimose26-Nov-07 18:48
Sherin Iranimose26-Nov-07 18:48 
QuestionPlay music in web page Pin
steve_rm26-Nov-07 17:44
steve_rm26-Nov-07 17:44 
AnswerRe: Play music in web page Pin
Sun Rays26-Nov-07 18:42
Sun Rays26-Nov-07 18:42 
AnswerRe: Play music in web page Pin
Vasudevan Deepak Kumar26-Nov-07 20:37
Vasudevan Deepak Kumar26-Nov-07 20:37 
QuestionWebconfig session state settings..., [modified] Pin
Member 387988126-Nov-07 17:02
Member 387988126-Nov-07 17:02 
QuestionAsp.net 2.0 Menu Control Pin
Lijo Rajan26-Nov-07 16:58
Lijo Rajan26-Nov-07 16:58 
Questionmodify xml using freetextbox Pin
srinivas43126-Nov-07 16:38
srinivas43126-Nov-07 16:38 
QuestionHelp Pin
cisco210326-Nov-07 15:12
cisco210326-Nov-07 15:12 
I am having a little problem.... I have formview and within the ItemTemplate of the formview I have a tables with different controls. I won't to be able to loop through the formview and depending on the type of control do something with it. When I loop through it, it only says there are one control which is the table... Here are some snipetts.


<asp:FormView ID="FormView1" runat="server" Width="600" DataSourceID="dsCoursesAll" DataKeyNames="CourseID">
<ItemTemplate>
<table id="ScoreCard" runat="Server" class="ScoreCard" width="600">
<tr id="trScoreFrontNine">
<td>Score</td>
<td><asp:TextBox ID="txtScoreHoleOne" runat="Server" MaxLength="2" Width="55" /></td>
<td><asp:TextBox ID="txtScoreHoleTwo" runat="Server" MaxLength="2" Width="55"/></td>
<td><asp:TextBox ID="txtScoreHoleThree" runat="Server" MaxLength="2" Width="55"/></td>
<td><asp:TextBox ID="txtScoreHoleFour" runat="Server" MaxLength="2" Width="55"/></td>
<td><asp:TextBox ID="txtScoreHoleFive" runat="Server" MaxLength="2" Width="55"/></td>
<td><asp:TextBox ID="txtScoreHoleSix" runat="Server" MaxLength="2" Width="55"/></td>
<td><asp:TextBox ID="txtScoreHoleSeven" runat="Server" MaxLength="2" Width="55"/></td>
<td><asp:TextBox ID="txtScoreHoleEight" runat="Server" MaxLength="2" Width="55"/></td>
<td><asp:TextBox ID="txtScoreHoleNine" runat="Server" MaxLength="2" Width="55"/></td>
</tr>
</table>

Protected Sub btnReset_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnReset.Click
For Each c As Control In FormView1.Controls
If TypeOf c Is TextBox Then
CType(c, TextBox).Text = ""
ElseIf TypeOf c Is CheckBox Then
CType(c, CheckBox).Checked = False
End If
Next


End Sub


AnswerRe: Help Pin
Sherin Iranimose26-Nov-07 17:48
Sherin Iranimose26-Nov-07 17:48 
Questionproblems casting an object to a listbox Pin
foobarDividedByZero26-Nov-07 11:28
foobarDividedByZero26-Nov-07 11:28 
QuestionLoop Through Database Pin
kenexcelon26-Nov-07 9:07
kenexcelon26-Nov-07 9:07 
AnswerRe: Loop Through Database Pin
kenexcelon26-Nov-07 9:51
kenexcelon26-Nov-07 9:51 
GeneralRe: Loop Through Database Pin
John-ph26-Nov-07 20:52
John-ph26-Nov-07 20:52 
QuestionAJAX install question Pin
amatbrewer26-Nov-07 8:11
amatbrewer26-Nov-07 8:11 
AnswerRe: AJAX install question Pin
amatbrewer26-Nov-07 9:39
amatbrewer26-Nov-07 9:39 
QuestionHandling web service exceptions Pin
dubbele onzin26-Nov-07 6:42
dubbele onzin26-Nov-07 6:42 
QuestionUsing Session Variable in Javascript Method. Pin
M_Menon26-Nov-07 5:55
M_Menon26-Nov-07 5:55 
AnswerRe: Using Session Variable in Javascript Method. Pin
SABhatti26-Nov-07 6:10
SABhatti26-Nov-07 6:10 
GeneralRe: Using Session Variable in Javascript Method. Pin
M_Menon26-Nov-07 7:00
M_Menon26-Nov-07 7:00 
AnswerRe: Using Session Variable in Javascript Method. Pin
SABhatti26-Nov-07 8:04
SABhatti26-Nov-07 8:04 
QuestionReading a multiline TextBox Pin
NetBot26-Nov-07 5:27
NetBot26-Nov-07 5:27 
AnswerRe: Reading a multiline TextBox Pin
SABhatti26-Nov-07 5:58
SABhatti26-Nov-07 5:58 
Questionencrypt strings within web.config Pin
gsshaw26-Nov-07 4:39
gsshaw26-Nov-07 4:39 
AnswerRe: encrypt strings within web.config Pin
Michael Sync26-Nov-07 4:59
Michael Sync26-Nov-07 4:59 
AnswerRe: encrypt strings within web.config Pin
SABhatti26-Nov-07 5:01
SABhatti26-Nov-07 5:01 

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.