Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am new to ASP.NET and has an issue like this.

I have a form with a table. I have an image in in one of the . I want to change this dynamically on a button click event. I have a javascript function to do this:
C#
function showGraph(url)
{
    var tdimage = document.getElementById("graphimage");//graphimage is the id of td in the table
    if(tdimage != null)
    {
        tdimage.setAttribute(src, url);
    }
}

But, when I click on the button and go to the debug view using VS2008, I don't see any controls in my form except __EVENTTARGET, __EVENTARGUMENT and __VIEWSTATE. What happened to the table that I have added??
Posted

1 solution

In which event are you looking at ?

Did you tried
HttpContext.Current.Request.Forms["id"]

to see the form control that you have submitted.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900