Click here to Skip to main content
15,867,835 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Total Days of Month Pin
Brij2-Oct-08 18:12
mentorBrij2-Oct-08 18:12 
GeneralRe: Total Days of Month Pin
Socheat.Net2-Oct-08 18:36
Socheat.Net2-Oct-08 18:36 
Questionfind checkbox in a nested controls(Panel -> DataList) Pin
Albert832-Oct-08 14:16
Albert832-Oct-08 14:16 
AnswerRe: find checkbox in a nested controls(Panel -> DataList) Pin
AlexeiXX32-Oct-08 16:24
AlexeiXX32-Oct-08 16:24 
QuestionRe: find checkbox in a nested controls(Panel -> DataList) Pin
Albert832-Oct-08 17:24
Albert832-Oct-08 17:24 
AnswerRe: find checkbox in a nested controls(Panel -> DataList) Pin
AlexeiXX33-Oct-08 4:21
AlexeiXX33-Oct-08 4:21 
QuestionRe: find checkbox in a nested controls(Panel -> DataList) Pin
Albert833-Oct-08 7:02
Albert833-Oct-08 7:02 
Questionplace a link in datalist to an image Pin
Meax2-Oct-08 12:07
Meax2-Oct-08 12:07 
i am uploading images to server under this folder "UploadFiles" and saving uploaded file properties in database, details like (FileID, FileName, Path).

now i can bind data to datalist and show these details.

what i like to do is show a thumbnail of image in datalist. and when the user clicks that thumbnail show the actual image in a new page.

here is my code begind.
<br />
Private Sub GetAllTheFiles()<br />
<br />
        ' Declare objects...<br />
        Dim objConnection As SqlConnection = New _<br />
            SqlConnection("Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Files;Data Source=my\SQLEXPRESS")<br />
<br />
        objConnection.Open()<br />
<br />
        Dim myCommand As New System.Data.SqlClient.SqlCommand()<br />
        myCommand.Connection = objConnection<br />
<br />
        myCommand.CommandText = "GetAllTheFiles"<br />
        myCommand.CommandType = CommandType.StoredProcedure<br />
<br />
        Dim param As New System.Data.SqlClient.SqlParameter()<br />
<br />
        Dim myAdapter As New SqlDataAdapter(myCommand)<br />
<br />
        myAdapter.Fill(AllTheFilesFromDB)<br />
<br />
        Dim reader As SqlDataReader = myCommand.ExecuteReader()<br />
<br />
        d1.DataSource = AllTheFilesFromDB<br />
<br />
        d1.DataBind()<br />
        ' Close the connection...<br />
        objConnection.Close()<br />
<br />
    End Sub<br />


i am calling above sub in page load.

and here is my datalist

<br />
<asp:datalist id="D1" runat="server" xmlns:asp="#unknown"><br />
              <itemtemplate><br />
      <table border="1"><br />
      <tr><td>File ID : </td><br />
         <td>'<%#DataBinder.Eval(Container.DataItem, "FileID")%>'<br />
         </td></tr><br />
      <tr><td>File Name : </td><br />
         <td>'<%#DataBinder.Eval(Container.DataItem, "FileName")%>'<br />
         </td></tr><br />
      <tr><td>Path : </td><br />
         <td>'<%#DataBinder.Eval(Container.DataItem, "Path")%>'<br />
      </td></tr><br />
      </table><br />
              </itemtemplate><br />
        </asp:datalist><br />

AnswerRe: place a link in datalist to an image Pin
AlexeiXX32-Oct-08 16:32
AlexeiXX32-Oct-08 16:32 
QuestionWhy some business objects under App_code directory do not showing up when I place an ObjectDataSource control onto form? Pin
JUNEYT2-Oct-08 11:07
JUNEYT2-Oct-08 11:07 
QuestionBoth DataSource and DataSourceID are defined on 'Gridview' !! Pin
kindman_nb2-Oct-08 8:43
kindman_nb2-Oct-08 8:43 
AnswerRe: Both DataSource and DataSourceID are defined on 'Gridview' !! Pin
Adam °Wimsatt2-Oct-08 9:38
Adam °Wimsatt2-Oct-08 9:38 
GeneralRe: Both DataSource and DataSourceID are defined on 'Gridview' !! Pin
kindman_nb2-Oct-08 16:59
kindman_nb2-Oct-08 16:59 
QuestionCommunication between dynamically added custom user controls Pin
Adam °Wimsatt2-Oct-08 7:41
Adam °Wimsatt2-Oct-08 7:41 
AnswerRe: Communication between dynamically added custom user controls Pin
Andreas X2-Oct-08 20:06
professionalAndreas X2-Oct-08 20:06 
QuestionSaving a XmlDocument in Session Pin
drew252-Oct-08 4:35
drew252-Oct-08 4:35 
AnswerRe: Saving a XmlDocument in Session Pin
ToddHileHoffer2-Oct-08 4:55
ToddHileHoffer2-Oct-08 4:55 
Questionfile copying from 1 source to multiple destination???? Pin
Piyush Vardhan Singh2-Oct-08 0:11
Piyush Vardhan Singh2-Oct-08 0:11 
AnswerRe: file copying from 1 source to multiple destination???? Pin
Ashfield2-Oct-08 0:59
Ashfield2-Oct-08 0:59 
GeneralRe: file copying from 1 source to multiple destination???? Pin
Piyush Vardhan Singh2-Oct-08 1:41
Piyush Vardhan Singh2-Oct-08 1:41 
GeneralRe: file copying from 1 source to multiple destination???? Pin
Ashfield2-Oct-08 3:44
Ashfield2-Oct-08 3:44 
Question[Message Deleted] Pin
udhuman1-Oct-08 23:29
udhuman1-Oct-08 23:29 
AnswerRe: WDDX Format Pin
Ashfield2-Oct-08 1:01
Ashfield2-Oct-08 1:01 
GeneralRe: WDDX Format Pin
udhuman2-Oct-08 21:50
udhuman2-Oct-08 21:50 
AnswerRe: WDDX Format Pin
Vasudevan Deepak Kumar2-Oct-08 7:47
Vasudevan Deepak Kumar2-Oct-08 7:47 

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.