Thank you sir. I appreciate it. --- David Renz <[EMAIL PROTECTED]> wrote:
> http://www.dotnetjunkies.com/Tutorial/70E24E50-C179-4563-B053-2742516BF05B.dcik > > might help. > > > > >>> [EMAIL PROTECTED] 02/22/2005 3:17:06 PM >>> > > Does datalist has paging? > > --- David Renz <[EMAIL PROTECTED]> wrote: > > > chris. > > > > that code is for a datalist ... better than a > > repeater in this case. > > > > david. > > > > >>> [EMAIL PROTECTED] 02/22/2005 1:40:52 PM > >>> > > > > Ok thank you very much... I appreciate it. > > --- David Renz <[EMAIL PROTECTED]> wrote: > > > > > could you do this is in the ItemDataBound event? > > > you could set a module level variable (ie: > iCount) > > > onLoad then > > > increment as you loop through the dataset in the > > > itemDataBound event. > > > you could also have a spacer that is set to > > visible > > > or not visible > > > based on some condition. > > > > > > if iCount mod 4 = 1 then > > > ' show the spacer > > > > > > else > > > ' hide the spacer > > > > > > end if > > > > > > i do something kind of similar in a procedure, > > > though not exactly what > > > you are asking. > > > > > > Private Sub dlGallery_ItemDataBound(ByVal > sender > > As > > > Object, ByVal e As > > > System.Web.UI.WebControls.DataListItemEventArgs) > > > Handles > > > dlGallery.ItemDataBound > > > If e.Item.ItemType = ListItemType.Item Or > > > e.Item.ItemType = > > > ListItemType.AlternatingItem Then > > > Dim oConn As OracleConnection = > > > > > > CreateOraConn(ConfigurationSettings.AppSettings("ConnectionString") > > > ) > > > Dim sSQL As String > > > Dim sImagePath As String > > > Dim dtrImageName As OracleDataReader > > > Dim imgImage As HtmlImage > > > Dim dtCheckImages As DataTable > > > Dim hplTmp As HyperLink > > > Dim sPath As String > > > > > > imgImage = > > > e.Item.FindControl("imgGalleryImage") > > > hplTmp = > > > e.Item.FindControl("hplGallerySpecific") > > > > > > sSQL = "SELECT ImageName FROM > > > vw_GalleryImages WHERE GalleryID=" > > > & DataBinder.Eval(e.Item.DataItem, "GalleryID") > & > > " > > > ORDER BY > > > GalleryImageID" > > > > > > dtrImageName = LoadReader(sSQL, oConn) > > > If dtrImageName.Read() Then > > > sImagePath = > dtrImageName("ImageName") > > > End If > > > > > > If sImagePath.Length > 0 Then > > > sPath = > > > Server.MapPath("images/ImageManager/general/" & > > > sImagePath) > > > Dim aHeightWidth() As Double = > > > SetImageManagerSize(sPath, > > > 125, 75) 'filepath, height, width > > > imgImage.Height = aHeightWidth(0) > > > imgImage.Width = aHeightWidth(1) > > > imgImage.Visible = True > > > imgImage.Src = > > > "images/ImageManager/general/" & sImagePath > > > hplTmp.NavigateUrl = > > > "galleryspecific.aspx?GalleryID=" & > > > DataBinder.Eval(e.Item.DataItem, "GalleryID") > > > hplTmp.Text = > > > DataBinder.Eval(e.Item.DataItem, "EventTitle") > > > Else > > > e.Item.Visible = False > > > imgImage.Visible = False > > > End If > > > > > > oConn.Close() > > > oConn.Dispose() > > > > > > End If > > > End Sub > > > > > > > > > > > > > > > >>> > > [EMAIL PROTECTED] > > > 02/22/2005 10:29:22 > > > AM >>> > > > > > > Yeah I sorta have the same question about > > variables. > > > You used to be > > > able to > > > make on variable and have that be displayed > > anywhere > > > in a page like > > > <%=strUsername %> could be put any number of > times > > > in a page and > > > display the > > > value of that variable. Now instead I make a > > literal > > > for each time it > > > is > > > used. If that 20 times in a page then that's 20 > > > literals............ > > > > > > -----Original Message----- > > > From: christopher andrada > > > [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, February 22, 2005 1:07 PM > > > To: [email protected] > > > Subject: [AspNetAnyQuestionIsOk] Can ASP.net > code > > be > > > written everywhere > > > in > > > the document? > > > > > > > > > Hi All, > > > > > > I'm facing a problem in translating our ASP > > classic > > > to > > > ASP.net. I'm having problem with 4 x 4 picture > > > gallery. I can display the photos without a > > > problem. > > > However, if I have to put some graphics or > divider > > > in > > > between image using "repeat" then i get stuck. > > > > > > for example in our classic asp code, > > > > > > if i mod 4 = 1 then > > > response.write "<td></td><td></td></tr> > > > end if > > > if i mode 4 = 2 then > > > . > > > . > > > . > > > . > > > > > > How can I do the same in ASP.net. I would > really > > > appreciate every help I can get. Thank you very > > > much. > > > > > > Chris > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Tired of spam? Yahoo! Mail has the best spam > > > protection around > > > http://mail.yahoo.com > > > > > > > > > > > > Yahoo! Groups Links > > > > > > > > > > === message truncated === __________________________________ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
