Click here to Skip to main content
16,005,149 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: asp:Login --> how can I add onmousedown javascript handler? Pin
devvvy13-May-09 13:46
devvvy13-May-09 13:46 
GeneralRe: asp:Login --> how can I add onmousedown javascript handler? Pin
devvvy13-May-09 14:08
devvvy13-May-09 14:08 
QuestionSame control appearing different in seperate web pages - though rendered code is same in view source [modified] Pin
NetQuestions13-May-09 6:04
NetQuestions13-May-09 6:04 
AnswerRe: Same control appearing different in seperate web pages - though rendered code is same in view source [modified] Pin
Ian McCaul13-May-09 6:10
Ian McCaul13-May-09 6:10 
GeneralRe: Same control appearing different in seperate web pages - though rendered code is same in view source Pin
NetQuestions14-May-09 0:30
NetQuestions14-May-09 0:30 
AnswerRe: Same control appearing different in seperate web pages - though rendered code is same in view source Pin
Ian McCaul14-May-09 5:34
Ian McCaul14-May-09 5:34 
GeneralRe: Same control appearing different in seperate web pages - though rendered code is same in view source Pin
NetQuestions19-May-09 10:16
NetQuestions19-May-09 10:16 
Questionhelp in ItemCreated method plus javascript Pin
Sujay chakraborty13-May-09 6:04
Sujay chakraborty13-May-09 6:04 
Hi all,
I am working on a ASP.NET project where i am displaying several images and their details, both coming from a database table. What i want is i am calling a javascript when some one moves the mouse cursor over the image, for that i have designed the javascript but the javascript depends on the id (stored as a coloumn in the same table) of the row containing the image on which the cursor is positioned. I have taken the id field in an hidden field and tried the following code

protected void DataList1_ItemCreated(object sender, DataListItemEventArgs e)
    {
        ListItemType elemType = e.Item.ItemType;
        if ((elemType == ListItemType.Item) || (elemType == ListItemType.AlternatingItem))
        {
            CheckBox cBox = (CheckBox)e.Item.FindControl("chkSel");
            Image pimg = (Image)e.Item.FindControl("Image2");
            HiddenField hf_Pid = (HiddenField)e.Item.FindControl("hfPid");            
            pimg.Attributes.Add("onmouseover", "showButton('"+hf_Pid.Value+"');");
            cBox.CheckedChanged += new EventHandler(OnChangeHandler);
        }
    }



The idea is to find the value in the hidden field that is coming from the database and then pass it to the showButton() function in the javascript. But this doesn't seemed to work. Please help me in accomplishing this task. Your help will be highly appreciated. Thanks in advance

Regards
Sujay
GeneralRe: help in ItemCreated method plus javascript Pin
Sujay chakraborty13-May-09 6:39
Sujay chakraborty13-May-09 6:39 
AnswerRe: help in ItemCreated method plus javascript Pin
Brian W King13-May-09 7:29
Brian W King13-May-09 7:29 
GeneralRe: help in ItemCreated method plus javascript Pin
Ramesh Swaminathan13-May-09 7:37
Ramesh Swaminathan13-May-09 7:37 
GeneralRe: help in ItemCreated method plus javascript Pin
Brian W King13-May-09 9:35
Brian W King13-May-09 9:35 
GeneralRe: help in ItemCreated method plus javascript Pin
Sujay chakraborty13-May-09 18:26
Sujay chakraborty13-May-09 18:26 
Questionc# with Linq help getting box checked in database Pin
Franklinlloyd13-May-09 5:32
Franklinlloyd13-May-09 5:32 
AnswerRe: c# with Linq help getting box checked in database Pin
Christian Graus13-May-09 6:04
protectorChristian Graus13-May-09 6:04 
AnswerRe: c# with Linq help getting box checked in database Pin
Brian W King13-May-09 9:33
Brian W King13-May-09 9:33 
GeneralRe: c# with Linq help getting box checked in database Pin
Franklinlloyd13-May-09 9:51
Franklinlloyd13-May-09 9:51 
QuestionAccess server side data from client side Pin
dptalt13-May-09 5:19
dptalt13-May-09 5:19 
AnswerRe: Access server side data from client side Pin
AlexeiXX313-May-09 5:42
AlexeiXX313-May-09 5:42 
GeneralRe: Access server side data from client side Pin
dptalt13-May-09 7:23
dptalt13-May-09 7:23 
GeneralRe: Access server side data from client side Pin
dptalt14-May-09 3:44
dptalt14-May-09 3:44 
QuestionProblem with Compiling a WEb Setup Project Pin
Vimalsoft(Pty) Ltd13-May-09 5:10
professionalVimalsoft(Pty) Ltd13-May-09 5:10 
QuestionExcel Error System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800A03EC Pin
DotNetCoderJunior13-May-09 4:48
DotNetCoderJunior13-May-09 4:48 
AnswerRe: Excel Error System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800A03EC Pin
MidwestLimey13-May-09 5:38
professionalMidwestLimey13-May-09 5:38 
GeneralRe: Excel Error System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800A03EC Pin
DotNetCoderJunior13-May-09 20:07
DotNetCoderJunior13-May-09 20:07 

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.