Click here to Skip to main content
15,891,423 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Migrating to .NET 2.0 Pin
Guffa6-Jun-06 13:11
Guffa6-Jun-06 13:11 
QuestionUser settings... Pin
Super Lloyd5-Jun-06 20:22
Super Lloyd5-Jun-06 20:22 
AnswerRe: User settings... Pin
CWIZO6-Jun-06 22:34
CWIZO6-Jun-06 22:34 
GeneralRe: User settings... Pin
Super Lloyd6-Jun-06 22:49
Super Lloyd6-Jun-06 22:49 
GeneralRe: User settings... Pin
CWIZO6-Jun-06 22:54
CWIZO6-Jun-06 22:54 
GeneralRe: User settings... Pin
Super Lloyd6-Jun-06 23:13
Super Lloyd6-Jun-06 23:13 
QuestionExecute multiple Biztalk 2004 messages from .NET Pin
mittalpa5-Jun-06 19:07
mittalpa5-Jun-06 19:07 
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 control( 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:29 Monday 5th June, 2006
QuestionDifference between .net2.0 redist and IDE? Pin
Soundman32.24-Jun-06 22:46
Soundman32.24-Jun-06 22:46 
AnswerRe: Difference between .net2.0 redist and IDE? Pin
Ed.Poore7-Jun-06 12:05
Ed.Poore7-Jun-06 12:05 
QuestionLoading dynamic assembly. Pin
webC#4-Jun-06 18:51
webC#4-Jun-06 18:51 
AnswerRe: Loading dynamic assembly. Pin
Hesham Amin4-Jun-06 21:17
Hesham Amin4-Jun-06 21:17 
GeneralRe: Loading dynamic assembly. Pin
phanikumar.kanumilli5-Jun-06 23:36
phanikumar.kanumilli5-Jun-06 23:36 
Questiongdwrapper Pin
jkirkerx4-Jun-06 11:04
professionaljkirkerx4-Jun-06 11:04 
Questionselecting a row in datagrid Pin
Siva Myneni2-Jun-06 18:48
Siva Myneni2-Jun-06 18:48 
QuestionDataSet vs. DB query Pin
Rabbit172-Jun-06 9:07
Rabbit172-Jun-06 9:07 
AnswerRe: DataSet vs. DB query Pin
Stephan Samuel2-Jun-06 10:23
Stephan Samuel2-Jun-06 10:23 
AnswerRe: DataSet vs. DB query Pin
Guffa2-Jun-06 10:35
Guffa2-Jun-06 10:35 
QuestionMySQL Query help! Pin
Rabbit172-Jun-06 8:55
Rabbit172-Jun-06 8:55 
AnswerRe: MySQL Query help! Pin
Stephan Samuel2-Jun-06 10:16
Stephan Samuel2-Jun-06 10:16 
QuestionTesting user-interface Pin
Tomerland1-Jun-06 22:51
Tomerland1-Jun-06 22:51 
AnswerRe: Testing user-interface Pin
Ed.Poore2-Jun-06 6:25
Ed.Poore2-Jun-06 6:25 
AnswerRe: Testing user-interface Pin
Stephan Samuel2-Jun-06 6:43
Stephan Samuel2-Jun-06 6:43 
AnswerRe: Testing user-interface Pin
Jim Conigliaro2-Jun-06 8:37
Jim Conigliaro2-Jun-06 8:37 
GeneralRe: Testing user-interface Pin
Stephan Samuel2-Jun-06 10:25
Stephan Samuel2-Jun-06 10:25 

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.