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

ASP.NET

 
AnswerRe: Storing and Retrieving Documents in SQL Server Pin
thatraja2-Jun-11 23:28
professionalthatraja2-Jun-11 23:28 
QuestionListBox Pin
jashimu2-Jun-11 4:21
jashimu2-Jun-11 4:21 
AnswerRe: ListBox Pin
shankysharma862-Jun-11 4:27
shankysharma862-Jun-11 4:27 
GeneralRe: ListBox Pin
jashimu2-Jun-11 4:42
jashimu2-Jun-11 4:42 
GeneralRe: ListBox Pin
shankysharma862-Jun-11 4:46
shankysharma862-Jun-11 4:46 
GeneralRe: ListBox Pin
gavindon2-Jun-11 5:45
gavindon2-Jun-11 5:45 
AnswerRe: ListBox Pin
Monjurul Habib2-Jun-11 9:48
professionalMonjurul Habib2-Jun-11 9:48 
Questionplaceholder position Pin
C#Coudou1-Jun-11 23:16
C#Coudou1-Jun-11 23:16 
hi mates,

how to alternate the position of placeholder?
here's what i did.but i want the result alternating.


client side:aspxfile
<table>
            <tr>
                <td>
                    <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:PlaceHolder ID="PlaceHolder2" runat="server"></asp:PlaceHolder>
                </td>
            </tr>
</table>

server side: page_load
For i As Integer = 1 To 3
    Dim dLabel As New Label
    Dim dText As New TextBox
    dLabel.ID = "lblid" & i.ToString()
    dLabel.Text = "label" & i.ToString()
    dLabel.Width = 10

    dText.ID = "txtid" & i.ToString()
    dText.Text = "text" & i.ToString()
    dText.Width = 10

     PlaceHolder1.Controls.Add(dLabel)
     PlaceHolder2.Controls.Add(dText)
Next



RESULT:
label1 label2 label3
text1 text2 text3

I WANT THE RESULT LIKE THIS:

label1
text1
label2
text2
label3
text3
C# コードMicrosoft End User
2000-2008




「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」


AnswerRe: placeholder position Pin
Blue_Boy2-Jun-11 3:19
Blue_Boy2-Jun-11 3:19 
AnswerRe: placeholder position Pin
Prasanta_Prince2-Jun-11 7:18
Prasanta_Prince2-Jun-11 7:18 
AnswerRe: placeholder position Pin
Not Active2-Jun-11 8:41
mentorNot Active2-Jun-11 8:41 
Questionweb page scroll Pin
tanzeel851-Jun-11 22:30
tanzeel851-Jun-11 22:30 
AnswerRe: web page scroll Pin
Pete O'Hanlon1-Jun-11 22:43
mvePete O'Hanlon1-Jun-11 22:43 
GeneralRe: web page scroll Pin
tanzeel851-Jun-11 22:52
tanzeel851-Jun-11 22:52 
GeneralRe: web page scroll Pin
Pete O'Hanlon1-Jun-11 23:20
mvePete O'Hanlon1-Jun-11 23:20 
GeneralRe: web page scroll Pin
tanzeel851-Jun-11 23:46
tanzeel851-Jun-11 23:46 
GeneralRe: web page scroll Pin
Pete O'Hanlon2-Jun-11 0:43
mvePete O'Hanlon2-Jun-11 0:43 
GeneralRe: web page scroll Pin
tanzeel852-Jun-11 0:51
tanzeel852-Jun-11 0:51 
GeneralRe: web page scroll Pin
Pete O'Hanlon2-Jun-11 2:55
mvePete O'Hanlon2-Jun-11 2:55 
Questionhow can i use <%=%> code in server control page. Pin
buffering831-Jun-11 18:47
buffering831-Jun-11 18:47 
AnswerRe: how can i use code in server control page. Pin
shankysharma862-Jun-11 4:39
shankysharma862-Jun-11 4:39 
AnswerRe: how can i use code in server control page. Pin
Prasanta_Prince2-Jun-11 7:19
Prasanta_Prince2-Jun-11 7:19 
Questionloop through datasourceid Pin
C#Coudou1-Jun-11 16:18
C#Coudou1-Jun-11 16:18 
AnswerRe: loop through datasourceid Pin
C#Coudou1-Jun-11 19:15
C#Coudou1-Jun-11 19:15 
Questionpics details Pin
samreen361-Jun-11 9:25
samreen361-Jun-11 9: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.