Click here to Skip to main content
15,878,814 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Open files from listbox file listing in c# Pin
Wendelius1-Oct-15 17:42
mentorWendelius1-Oct-15 17:42 
GeneralRe: Open files from listbox file listing in c# Pin
Member 120161061-Oct-15 17:58
Member 120161061-Oct-15 17:58 
GeneralRe: Open files from listbox file listing in c# Pin
Member 120161061-Oct-15 20:42
Member 120161061-Oct-15 20:42 
GeneralRe: Open files from listbox file listing in c# Pin
Wendelius1-Oct-15 21:02
mentorWendelius1-Oct-15 21:02 
GeneralRe: Open files from listbox file listing in c# Pin
Member 120161061-Oct-15 21:14
Member 120161061-Oct-15 21:14 
QuestionApp_GlobalResources and resx files, cannot find appropriate culture Pin
jkirkerx1-Oct-15 9:34
professionaljkirkerx1-Oct-15 9:34 
Answer[Solved] Re: App_GlobalResources and resx files, cannot find appropriate culture, masterpage Pin
jkirkerx1-Oct-15 13:50
professionaljkirkerx1-Oct-15 13:50 
Questionstart date end date not working Pin
Ekrem Tapan30-Sep-15 23:43
Ekrem Tapan30-Sep-15 23:43 
CSS
 i have a one post then i wantto set for this post displaydate and display off date
from backend when i create post for ex title photos content displaystartdate and displayenddate input then save it
displaystartdate : 2015/10/2
displaystartdate : 2015/10/5
and front end when date 2015/10/2 my post automatically show up and when date is 2015/10/5 my post automatically off


there is my code who can check for me this something is wrong ~

thanks `

VB
Protected Sub BindData(dt As Data.DataTable, SiteID As Long)
If dt.Rows.Count > 0 Then
litList.Text = ""
For i As Integer = 0 To dt.Rows.Count - 1
Dim Title As String = dt.Rows(i).Item("Title").ToString
Dim Targets As String = ""
Dim Targetsdes As String = ""
Dim ImgURL As String = ""
Dim ImgURLs As String = ""
Dim now As DateTime = DateTime.Now
Dim startTime As DateTime = dt.Rows(i).Item("DisplaySDate").ToString()
Dim endTime As DateTime = dt.Rows(i).Item("DisplayEDate").ToString()
If ((startTime <= DateTime.Now) And (endTime >= DateTime.Now)) Then
Me.Visible = True
Else
Me.Visible = False
End If
Dim URL As String = dt.Rows(i).Item("URL").ToString
If URL = "" Then
URL = "#"
Else
If dt.Rows(i).Item("Targets").ToString = True Then
Targets = " target=""_blank"" "
Targetsdes = Resources.RsAll.OpenNW
End If
End If
If dt.Rows(i).Item("Files").ToString <> "" Then
ImgURL = ViewState("Roots") & "WebTools/Thumbnail.ashx?Siteid=" & SiteID & "&MmmID=99&fd=Benner_Files&NW=696&NW=249&Pname=" & dt.Rows(i).Item("Files").ToString
End If
litList.Text &= "<li><a href=""" & URL & """ title=""" & Title & Targetsdes & """" & Targets & " ><img src=""" & ViewState("Roots") & "" & ImgURL & """ alt=""" & Title & """ /></a></li>"
'==================================
litLists.Text &= "<li>"
litLists.Text &= "<div>"
If dt.Rows(i).Item("Files").ToString <> "" Then
ImgURLs = ViewState("Roots") & "WebTools/Thumbnail.ashx?Siteid=" & SiteID & "&MmmID=99&fd=Benner_Files&NW=71&NW=71&Pname=" & dt.Rows(i).Item("Filess").ToString
End If
litLists.Text &= "<a href=""#"" title=""" & Title & """><img src=""" & ViewState("Roots") & "" & ImgURLs & """ alt=""" & Title & """ title=""" & Title & """/></a>"
litLists.Text &= "<h4>" & dt.Rows(i).Item("contents").ToString & "</h4>"
litLists.Text &= "</div>"
litLists.Text &= "</li>"
Next
Else
Me.Visible = False

End If
dt.Dispose()
End Sub

AnswerRe: start date end date not working Pin
Wendelius1-Oct-15 8:40
mentorWendelius1-Oct-15 8:40 
QuestionI wanted to upload Multiple Files With ListBox in ASP.NET Pin
Member 1201610630-Sep-15 16:33
Member 1201610630-Sep-15 16:33 
AnswerRe: I wanted to upload Multiple Files With ListBox in ASP.NET Pin
aarif moh shaikh1-Oct-15 0:29
professionalaarif moh shaikh1-Oct-15 0:29 
GeneralRe: I wanted to upload Multiple Files With ListBox in ASP.NET Pin
Member 120161061-Oct-15 17:12
Member 120161061-Oct-15 17:12 
GeneralRe: I wanted to upload Multiple Files With ListBox in ASP.NET Pin
Member 120161061-Oct-15 17:23
Member 120161061-Oct-15 17:23 
QuestionDisplay Image from MSSQL database into asp.net page using vb Pin
caffrey_130-Sep-15 4:52
caffrey_130-Sep-15 4:52 
AnswerRe: Display Image from MSSQL database into asp.net page using vb Pin
Wendelius30-Sep-15 5:01
mentorWendelius30-Sep-15 5:01 
GeneralRe: Display Image from MSSQL database into asp.net page using vb Pin
caffrey_130-Sep-15 5:18
caffrey_130-Sep-15 5:18 
GeneralRe: Display Image from MSSQL database into asp.net page using vb Pin
caffrey_130-Sep-15 20:48
caffrey_130-Sep-15 20:48 
GeneralRe: Display Image from MSSQL database into asp.net page using vb Pin
Wendelius1-Oct-15 8:34
mentorWendelius1-Oct-15 8:34 
QuestionI'm working on upload exe file in c# Pin
Member 1201610630-Sep-15 0:04
Member 1201610630-Sep-15 0:04 
AnswerRe: I'm working on upload exe file in c# Pin
Richard Deeming30-Sep-15 2:37
mveRichard Deeming30-Sep-15 2:37 
GeneralRe: I'm working on upload exe file in c# Pin
Member 1201610630-Sep-15 4:17
Member 1201610630-Sep-15 4:17 
QuestionHow to display image in a treeview from database Pin
Zahid Hayat29-Sep-15 21:41
Zahid Hayat29-Sep-15 21:41 
AnswerRe: How to display image in a treeview from database Pin
Blikkies29-Sep-15 22:55
professionalBlikkies29-Sep-15 22:55 
GeneralRe: How to display image in a treeview from database Pin
Zahid Hayat30-Sep-15 2:56
Zahid Hayat30-Sep-15 2:56 
Questionhow to highlight the search result in datagridview using c#. Pin
Member 1201610628-Sep-15 0:15
Member 1201610628-Sep-15 0:15 

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.