Click here to Skip to main content
16,005,682 members
Home / Discussions / C#
   

C#

 
AnswerRe: How do i position the output of a Response.Write() [modified] Pin
Christian Graus5-Jun-06 13:38
protectorChristian Graus5-Jun-06 13:38 
AnswerRe: How do i position the output of a Response.Write() [modified] Pin
liuqm.china5-Jun-06 16:29
liuqm.china5-Jun-06 16:29 
QuestionHow to show selected rectangle? Pin
Susuko5-Jun-06 12:50
Susuko5-Jun-06 12:50 
AnswerRe: How to show selected rectangle? Pin
stancrm5-Jun-06 22:51
stancrm5-Jun-06 22:51 
QuestionCalling event from the main form Pin
Raj Lal5-Jun-06 11:50
professionalRaj Lal5-Jun-06 11:50 
AnswerRe: Calling event from the main form [modified] Pin
Ed.Poore5-Jun-06 12:18
Ed.Poore5-Jun-06 12:18 
GeneralRe: Calling event from the main form [modified] Pin
Raj Lal5-Jun-06 12:37
professionalRaj Lal5-Jun-06 12:37 
Questionhow to display image description? [modified] Pin
mujin035-Jun-06 10:44
mujin035-Jun-06 10:44 
I have a repeater control to display thumbnail pictures. The itemtemplate is made of a web image control. When user clicks on the thumbnail picture, I want it to display a larger image in a web image control and display the image description in a label( the image description is saved in database).

My current code is :

I have a getPhoto function which will get the thumbnail pictures through IhttpHandler and bound to the repeater control.

Then I have a repPhotoG_ItemDataBound function, here I add the javascript to the image html control and call a javascript to pass the thumbnail imagename as parameter and show the large image.
Sniff | :^)
Now, I can get the thubnail picture and display the large images, but I just don’t know how to get and display the image description. Please help!!


private void repPhotoG_ItemDataBound(object sender, System.Web.UI.WebControls.RepeaterItemEventArgs e)
{
//finding repeater item Image

System.Web.UI.HtmlControls.HtmlImage img=(System.Web.UI.HtmlControls.HtmlImage)e.Item.FindControl("iPhoto");
//create a relative path for image and add onclick function
img.Src=img.Src.Replace('\\', '/');
string Description="";
string Image;
Image=IMGpath(img.Src);
img.Attributes["onclick"]="showImg('"+Image+"')";

}




function showImg(imgName)
{

imgOn = ("" + imgName);
document.imgLarge.filters[0].Apply();
document.imgLarge.src = imgOn;
hdr.innerHTML=imgName;
document.imgLarge.filters[0].Play();



-- modified at 17:30 Monday 5th June, 2006
Questionstruct methods Pin
mattlove5-Jun-06 10:16
mattlove5-Jun-06 10:16 
AnswerRe: struct methods [modified] Pin
Dustin Metzgar5-Jun-06 10:26
Dustin Metzgar5-Jun-06 10:26 
AnswerRe: struct methods Pin
Josh Smith5-Jun-06 10:37
Josh Smith5-Jun-06 10:37 
AnswerRe: struct methods Pin
Guffa5-Jun-06 10:59
Guffa5-Jun-06 10:59 
QuestionNeed help creating installer for project with Interop.SHDocVw.dll Pin
Vengeance5-Jun-06 10:10
Vengeance5-Jun-06 10:10 
AnswerRe: Need help creating installer for project with Interop.SHDocVw.dll Pin
Ed.Poore5-Jun-06 12:22
Ed.Poore5-Jun-06 12:22 
QuestionCodeDom question Pin
Pablo Hernandez Valdes5-Jun-06 9:57
Pablo Hernandez Valdes5-Jun-06 9:57 
AnswerRe: CodeDom question Pin
Dustin Metzgar5-Jun-06 10:22
Dustin Metzgar5-Jun-06 10:22 
QuestionDrawing in loop Pin
Nikhil Wason5-Jun-06 9:56
Nikhil Wason5-Jun-06 9:56 
AnswerRe: Drawing in loop [modified] Pin
Le centriste5-Jun-06 10:05
Le centriste5-Jun-06 10:05 
GeneralRe: Drawing in loop [modified] Pin
Nikhil Wason5-Jun-06 10:19
Nikhil Wason5-Jun-06 10:19 
GeneralRe: Drawing in loop [modified] Pin
Dan Neely5-Jun-06 10:29
Dan Neely5-Jun-06 10:29 
AnswerRe: Drawing in loop Pin
Le centriste5-Jun-06 10:17
Le centriste5-Jun-06 10:17 
GeneralRe: Drawing in loop Pin
Nikhil Wason5-Jun-06 10:21
Nikhil Wason5-Jun-06 10:21 
GeneralRe: Drawing in loop Pin
S. Senthil Kumar5-Jun-06 22:27
S. Senthil Kumar5-Jun-06 22:27 
AnswerRe: Drawing in loop Pin
Josh Smith5-Jun-06 10:42
Josh Smith5-Jun-06 10:42 
QuestionHow to re-use form/control manipulation code? Pin
nicknotyet5-Jun-06 9:51
nicknotyet5-Jun-06 9:51 

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.