0

I have a database where i have the physical path where image of a person is stored . now i want a code by which I can display the image of that person in a aspx window.

as I am new to asp.net & C# can somebody provide me the full code of aspx page and the C# code behind it?

4
  • Click the accepted answer icon below the votebuttons on the answer that solved your problem. The user who provided the answer will get points and the answer will appear at the top. Commented Jun 25, 2010 at 6:59
  • now can i have solution to this problem? Commented Jun 25, 2010 at 7:01
  • 2
    Your question is both very broad and very easy: Did you try anything yourself at all? Questions of this "Show me te codez" type usually don't get a lot of answers. Commented Jun 25, 2010 at 7:49
  • 1
    I agree with @Jakob, What have you tried yourself? Where are you coming unstuck? What does your database schema look like? Are you limited by any technologies (.NET 2?, 3?, 3.5) ? Commented Jun 25, 2010 at 7:53

1 Answer 1

2

Here's a good example on how to connect to a database and display the data in ASP.NET: How to: Bind to Data in a Templated Control on MSDN.
Also there a lots of great tutorials on the ASP.NET "official" site.

Update: Alright, now we got something to work with. Do you know if your HttpHandler is throwing any exceptions? Place a breakpoint in the HttpHandler code and hit F5 (Visual Studio) to launch the site in debug bug mode. Maybe you're not passing an image ID to the handler? Try and hardcode an ID in the .aspx for an image you know that exists in the database.

See if you can update your question and format the code: Just select the code sample and click the "code" button in the editor. It will indent the text and apply nice formatting, making it easier to read. Also include your .aspx page so we can see what's going on there.

Sign up to request clarification or add additional context in comments.

1 Comment

help me by the above context plzz.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.