Click here to Skip to main content
15,898,588 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionExport image to excel Pin
saravanan052-Oct-08 19:09
saravanan052-Oct-08 19:09 
Questionhave a problem with sessions Pin
kheer2-Oct-08 18:33
kheer2-Oct-08 18:33 
AnswerRe: have a problem with sessions Pin
Sneha Bisht2-Oct-08 18:48
Sneha Bisht2-Oct-08 18:48 
GeneralRe: have a problem with sessions Pin
kheer2-Oct-08 18:57
kheer2-Oct-08 18:57 
GeneralRe: have a problem with sessions Pin
N a v a n e e t h2-Oct-08 22:29
N a v a n e e t h2-Oct-08 22:29 
AnswerRe: have a problem with sessions Pin
Brij2-Oct-08 19:02
mentorBrij2-Oct-08 19:02 
GeneralRe: have a problem with sessions Pin
Krazy Programmer2-Oct-08 21:39
Krazy Programmer2-Oct-08 21:39 
GeneralRe: have a problem with sessions Pin
N a v a n e e t h2-Oct-08 22:33
N a v a n e e t h2-Oct-08 22:33 
QuestionTotal Days of Month Pin
Socheat.Net2-Oct-08 17:28
Socheat.Net2-Oct-08 17:28 
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 

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.