Showing posts with label tabs. Show all posts
Showing posts with label tabs. Show all posts

Saturday, March 24, 2012

Upload image in Tab container

Hi,

I have a tab container which has 3 tabs Picture, profile and Description......

On clicking Picture tab i need to upload an image and display.....

But i am not able to do so......

pls help me....

Hi,

Thank you for your post!

Here is a good article aboutuploading-files-without-a-full-postback:http://msmvps.com/blogs/luisabreu/archive/2006/12/14/uploading-files-without-a-full-postback.aspx

Our good old friend the IFrame used to be the preferred option for asynchronous http communications. Because an iframe is in essence it's own browser window, it can be used to fire off asynchronous requests (both POST and GET). However, even more important is an IFrame's ability to be a 'target' of a form POST. By adding an IFrame to the page and setting it as the target of the form post, you can in essence create an asynchronous file transfer.

When you upload your image to the server,display it like this:

<asp:Image ID="Image2" runat="server" Visible="False" />
Image2.ImageUrl = "the path you saved the image to";

Image2.Visible = true;


For more infoemation, see:

AJAX, file downloads, and IFRAMEs

http://blogs.infragistics.com/blogs/tony_lombardo/archive/2007/04/09/file-uploads-where-s-the-ajax.aspx

If you have further questions,let me know.

Best Regards,

Wednesday, March 21, 2012

Usage of CallBack Implementation in TAB Control of AJAX

The requirement is like i have to select different selection criteria in different tabs of tab control of ajax.

i have implemented call back functionality in one tab for getting the values of gridview dynamically. in the first tab its all working fine.

but the thing is call back implementation is getting the same value from the selected row of gridview in all tabs.

So can u do the needful so that i can able to get different selected values of gridview in different tabs of tab control using call back implementation.

Hi,

Thank you for your post!

But I am afraid I cann't understand you well, would you please provide with any code or a simple repro?

Best Regards,