Click here to Skip to main content
15,913,089 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Getting a Value of a Hidden Field in Gridview Pin
Ibrahim Bello14-May-09 6:22
Ibrahim Bello14-May-09 6:22 
QuestionHTML Table Cell value Pin
Girish48112-May-09 23:40
Girish48112-May-09 23:40 
AnswerRe: HTML Table Cell value Pin
Ramesh Swaminathan12-May-09 23:59
Ramesh Swaminathan12-May-09 23:59 
GeneralRe: HTML Table Cell value Pin
Girish48113-May-09 2:37
Girish48113-May-09 2:37 
GeneralRe: HTML Table Cell value Pin
Baran M13-May-09 18:19
Baran M13-May-09 18:19 
AnswerRe: HTML Table Cell value Pin
saanj13-May-09 2:29
saanj13-May-09 2:29 
QuestionDisplay image in Detailsvew control.... Pin
pranavcool12-May-09 23:18
pranavcool12-May-09 23:18 
AnswerRe: Display image in Detailsvew control.... Pin
Ramesh Swaminathan12-May-09 23:35
Ramesh Swaminathan12-May-09 23:35 
Put this code in .aspx page
<asp:DataList ID="dataListImages" runat="server" RepeatColumns="3" RepeatDirection="Horizontal"
Width="100%" CellPadding="2" CellSpacing="0">
<ItemTemplate>
<img alt="" src='<%#DataBinder.Eval(Container.DataItem, "Image_Path")%>' />
</ItemTemplate>
</asp:DataList>




In code behind .cs file

private void BindDataList()
{

using (SqlConnection connection = new SqlConnection("Database=DOTNET;Server=HELLO-COMP;Integrated Security=SSPI"))
{
string queryString = "SELECT Image_Path FROM Image_Table";
SqlCommand command = new SqlCommand(queryString, connection);
SqlDataAdapter da = new SqlDataAdapter(command);
DataTable dt = new DataTable();
da.Fill(dt);

dataListImages.DataSource = dt;
dataListImages.DataBind();
}
}


protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BindDataList();
}
}
QuestionWeb.config Pin
Xpycm12-May-09 22:24
Xpycm12-May-09 22:24 
AnswerRe: Web.config Pin
Ramesh Swaminathan12-May-09 22:30
Ramesh Swaminathan12-May-09 22:30 
GeneralRe: Web.config Pin
Xpycm13-May-09 0:09
Xpycm13-May-09 0:09 
AnswerRe: Web.config Pin
Baran M12-May-09 22:51
Baran M12-May-09 22:51 
AnswerRe: Web.config Pin
Abhijit Jana12-May-09 22:53
professionalAbhijit Jana12-May-09 22:53 
AnswerRe: Web.config Pin
Xpycm13-May-09 0:37
Xpycm13-May-09 0:37 
GeneralRe: Web.config Pin
specialdreamsin13-May-09 0:50
specialdreamsin13-May-09 0:50 
QuestionAdding a Checkbox in a Gridview Pin
Vimalsoft(Pty) Ltd12-May-09 22:12
professionalVimalsoft(Pty) Ltd12-May-09 22:12 
AnswerRe: Adding a Checkbox in a Gridview Pin
Ramesh Swaminathan12-May-09 22:23
Ramesh Swaminathan12-May-09 22:23 
GeneralRe: Adding a Checkbox in a Gridview Pin
Vimalsoft(Pty) Ltd12-May-09 22:41
professionalVimalsoft(Pty) Ltd12-May-09 22:41 
GeneralRe: Adding a Checkbox in a Gridview Pin
Ramesh Swaminathan12-May-09 23:12
Ramesh Swaminathan12-May-09 23:12 
GeneralRe: Adding a Checkbox in a Gridview Pin
Vimalsoft(Pty) Ltd12-May-09 23:48
professionalVimalsoft(Pty) Ltd12-May-09 23:48 
QuestionPage.Controls.Add error Pin
The_Collector12-May-09 21:59
The_Collector12-May-09 21:59 
AnswerRe: Page.Controls.Add error Pin
Ramesh Swaminathan12-May-09 23:14
Ramesh Swaminathan12-May-09 23:14 
GeneralRe: Page.Controls.Add error Pin
The_Collector12-May-09 23:37
The_Collector12-May-09 23:37 
GeneralRe: Page.Controls.Add error Pin
Ramesh Swaminathan12-May-09 23:51
Ramesh Swaminathan12-May-09 23:51 
GeneralRe: Page.Controls.Add error Pin
The_Collector13-May-09 0:03
The_Collector13-May-09 0:03 

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.