This is a migrated thread and some comments may be shown as answers.

Save an record in ToolTip and Comunicate about it the mainpage

1 Answer 27 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Inessa Parfjonova
Top achievements
Rank 1
Inessa Parfjonova asked on 09 Feb 2010, 02:33 PM
I need to save one new record in tooltip and to comunicate about it the page. How could I do it?

With this code I load control in the tooltip.
protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)
    {
        this.UpdateToolTip(args.Value, args.UpdatePanel);
    }

    private void UpdateToolTip(string elementID, UpdatePanel panel)
    {
        var idanagraficatipo = -1;
        int.TryParse(ddlCentroRichiedente.SelectedValue, out idanagraficatipo);

        Control ctrl = Page.LoadControl("~/controls/preaccettazione/Anagrafica.ascx");
        panel.ContentTemplateContainer.Controls.Add(ctrl);
        controls_preaccettazione_Anagrafica details = (controls_preaccettazione_Anagrafica)ctrl;
        details.IdAnagraficaTipo = idanagraficatipo;
    }

I try to save record in the control but the problem that after postback I find textboxs empty.

Thank you,
Ines

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 12 Feb 2010, 09:36 AM
Hello Inessa,

I am not completely sure about your scenario but as far as I understood you want to show a user control with textboxes and to save what the user has populated in them e.g on submit button click. I prepared a simple demo which does this but unfortunately to no avail - the textbox value is correctly taken and saved in the Session object and it is not empty. Would you please examine the attached demo and let me know what I should change in order to reproduce the issue with the empty textbox on my side? Once you reproduce it in this very simple demo, share its full source and I will modify and test it on my side and I will do my best to help.


Regards,
Svetlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ToolTip
Asked by
Inessa Parfjonova
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or