Showing posts with label tab. Show all posts
Showing posts with label tab. 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,

Use a menu control in updatepanel

that occurs a javascript error when click another tab: "0.cells" is null or not an object.

who can help me? thanks.

The menu control is not compatible with partial-page updates and can't be used inside a UpdatePanel.


what can i do if i want to implement this function?thx.
Could you run this in JS debugger and post a snippet of affected JS.. I vaguely remember dealing with this issue and it might allow us to see what is exactly happening

did quick google

and found e.g. this

http://forums.asp.net/thread/1485169.aspx


thanks for your information, i read a blog and using this method it works well.

http://mcosier.blogspot.com/2006/12/0cells-is-null-or-not-object-aspnet-20.html

but i have a problem that:

it seems that using AsyncPostBackTrigger can't change the StaticSelectedStyle after i clicked another menuitem?

thanks.


I've been using this piece of javascript to go around the menu problem:

var oldMenu_HideItems = Menu_HideItems;if(oldMenu_HideItems){Menu_HideItems = function(items){if (!items || ((typeof(items.tagName) =="undefined") && (items instanceof Event))) { items = __rootMenuItem; }if(items && items.rows && items.rows.length == 0){ items.insertRow(0); }return oldMenu_HideItems(items);} }
I got it from the asp:menu javascript code and I hook it to "patch" the problem.
Adding it to a page where a menu resides makes the javascript error go away. 

This one works great for me.

Thank you very very much.Big Smile

Great


it is working.. Smile Thank you for your great solutions.

thanks t0yBig Smile

i tryed it.and i dident give that error.

thanks again.


Dear sir

can you please tell me where to put this code in what event, name of the function it is very imp.

thank you,

please advise what to do.


This piece of Javascript has saved me hours of googling! Awesome work buddy and thanks heaps!

See for more info , which controls are not compatable with UpdatePanel

http://ajax.asp.net/docs/overview/UpdatePanelOverview.aspx


I cannot figure out how to use this fix. I put this script in my page and I'm still getting the 0.cells is nothing error.

How do I hook this up?

Thanks!


Have you tried the solution thatt0y provided..

It's working..Smile