Click here to Skip to main content
15,893,998 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Setting a href property in a anchor tag with Javascript Pin
m-khansari23-Dec-09 18:21
m-khansari23-Dec-09 18:21 
AnswerRe: Setting a href property in a anchor tag with Javascript Pin
Abhishek Sur23-Dec-09 20:57
professionalAbhishek Sur23-Dec-09 20:57 
GeneralRe: Setting a href property in a anchor tag with Javascript Pin
Tina P24-Dec-09 5:08
Tina P24-Dec-09 5:08 
QuestionFoor loop Code Block in ASPX Page Pin
Ma tju23-Dec-09 14:36
Ma tju23-Dec-09 14:36 
AnswerRe: Foor loop Code Block in ASPX Page Pin
geeeeeeeetha23-Dec-09 17:33
geeeeeeeetha23-Dec-09 17:33 
GeneralRe: Foor loop Code Block in ASPX Page Pin
Ma tju23-Dec-09 19:18
Ma tju23-Dec-09 19:18 
GeneralRe: Foor loop Code Block in ASPX Page Pin
keyur satyadev23-Dec-09 19:22
keyur satyadev23-Dec-09 19:22 
GeneralRe: Foor loop Code Block in ASPX Page Pin
Ma tju23-Dec-09 19:32
Ma tju23-Dec-09 19:32 
Sure, here is the code.

Dim conn As New         SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings(0).ConnectionString)
Dim sqlDA As New SqlDataAdapter("SELECT id, filename, img_size FROM image ORDER BY id", conn)
Dim ds As New DataSet
Dim pgDataSrc As New PagedDataSource
Try
    sqlDA.Fill(ds, "tl")

    pgDataSrc.DataSource = ds.Tables("tl").DefaultView
    pgDataSrc.AllowPaging = True
    pgDataSrc.PageSize = 20
    pgDataSrc.CurrentPageIndex = CurrentPage

    'rptInbox is a repeater control
    rptInbox.DataSource = pgDataSrc
    rptInbox.DataBind()

Catch ex As Exception
    Return False
Finally
    conn = Nothing
    sqlDA = Nothing
    ds = Nothing
End Try


Well sometimes user want to see just 1 or more column in the repeater. Thats why i use for loop to generate the column. Hope this help.

Thanks in advance.

ma tju
Software Application Engineer
Petaling Jaya,Selangor, Malaysia

Ring Master SB MVP 2008 Poke tongue | ;-P
Petaling Jaya MOP (Otai)

GeneralRe: Foor loop Code Block in ASPX Page Pin
keyur satyadev23-Dec-09 20:20
keyur satyadev23-Dec-09 20:20 
GeneralRe: Foor loop Code Block in ASPX Page Pin
Ma tju23-Dec-09 20:37
Ma tju23-Dec-09 20:37 
GeneralRe: Foor loop Code Block in ASPX Page Pin
keyur satyadev23-Dec-09 21:37
keyur satyadev23-Dec-09 21:37 
QuestionCorrect way to check if authenticated on each page Pin
DeepToot23-Dec-09 10:19
DeepToot23-Dec-09 10:19 
AnswerRe: Correct way to check if authenticated on each page Pin
m-khansari23-Dec-09 18:33
m-khansari23-Dec-09 18:33 
Questionwebpartzone title Pin
NETLearning23-Dec-09 3:03
NETLearning23-Dec-09 3:03 
AnswerRe: webpartzone title Pin
Abhijit Jana23-Dec-09 3:53
professionalAbhijit Jana23-Dec-09 3:53 
Questionhide row Pin
baselanfouqa23-Dec-09 2:56
baselanfouqa23-Dec-09 2:56 
AnswerRe: hide row Pin
Abhishek Sur23-Dec-09 4:25
professionalAbhishek Sur23-Dec-09 4:25 
AnswerRe: hide row Pin
sashidhar23-Dec-09 4:26
sashidhar23-Dec-09 4:26 
AnswerRe: hide row Pin
m-khansari23-Dec-09 19:08
m-khansari23-Dec-09 19:08 
QuestionHow to Enable or Disable browser cookies option by code(java script/.net) Pin
Samarjeet Singh@india22-Dec-09 23:49
Samarjeet Singh@india22-Dec-09 23:49 
AnswerRe: How to Enable or Disable browser cookies option by code(java script/.net) Pin
Vimalsoft(Pty) Ltd23-Dec-09 0:03
professionalVimalsoft(Pty) Ltd23-Dec-09 0:03 
GeneralRe: How to Enable or Disable browser cookies option by code(java script/.net) Pin
Samarjeet Singh@india23-Dec-09 0:34
Samarjeet Singh@india23-Dec-09 0:34 
AnswerRe: How to Enable or Disable browser cookies option by code(java script/.net) Pin
saini arun23-Dec-09 0:04
saini arun23-Dec-09 0:04 
GeneralRe: How to Enable or Disable browser cookies option by code(java script/.net) Pin
Samarjeet Singh@india23-Dec-09 0:35
Samarjeet Singh@india23-Dec-09 0:35 
GeneralRe: How to Enable or Disable browser cookies option by code(java script/.net) Pin
Abhishek Sur23-Dec-09 8:25
professionalAbhishek Sur23-Dec-09 8: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.