or
<telerik:RadTabStrip OnClientTabSelecting="onTabSelecting" ID="RadTabStrip1" SelectedIndex="0" runat="server" MultiPageID="RadMultiPage1" OnTabClick="RadTabStrip1_TabClick" Width="900px" AutoPostBack="true" ></telerik:RadTabStrip><telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" OnPageViewCreated="RadMultiPage1_PageViewCreated" Width="900px" RenderSelectedPageOnly="true" ></telerik:RadMultiPage>function onTabSelecting(sender, args) { if (args.get_tab().get_pageViewID()) { args.get_tab().set_postBack(false); }}protected void Page_Load(object sender, EventArgs e){ if (!Page.IsPostBack) { AddTab("MyForms"); AddPageView(RadTabStrip1.FindTabByText("MyForms")); AddTab("MyApprovals"); AddTab("MySystemsApprovals"); AddTab("MyGateKeeperApprovals"); }}private void AddTab(string tabName){ RadTab tab = new RadTab(); tab.Text = tabName; RadTabStrip1.Tabs.Add(tab);}private void AddPageView(RadTab tab){ RadPageView pageView = new RadPageView(); pageView.ID = tab.Text; RadMultiPage1.PageViews.Add(pageView); pageView.CssClass = "pageView"; tab.PageViewID = pageView.ID;}protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e){ AddPageView(e.Tab); e.Tab.PageView.Selected = true;}protected void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e){ string userControlName = e.PageView.ID + "CS.ascx"; Control userControl = Page.LoadControl(userControlName); userControl.ID = e.PageView.ID + "_userControl"; e.PageView.Controls.Add(userControl);}

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
|
|
<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" AllowedFileExtensions="jpg,jpeg,png,gif" Font-Names="Verdana" ManualUpload="True" MaxFileInputsCount="1" MaxFileSize="3000000" Skin="Sunset" Width="343px"> <Localization Select="Cerca" /> </telerik:RadAsyncUpload> function startManualUpload() { var upload = $find('<%=RadAsyncUpload1.ClientID%>'); upload.startUpload(); } Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load If Not IsPostBack Then RadAsyncUpload1.TargetFolder = "~/Image/image_utenti/" & Session.Item("idutente") End If End Sub Protected Sub Imgbtncarica_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles Imgbtncarica.Click ScriptManager.RegisterStartupScript(Page, Me.GetType, "Upload", "startManualUpload();", True) ViewState("DirImage") = ViewState("RemoteFolder") & RadAsyncUpload1.UploadedFiles.Item(0).FileName update_image(Session.Item("idutente"), ViewState("DirImage")) End Subfunction onClientFileUploaded(radAsyncUpload, args) { var row = args.get_row(), inputName = radAsyncUpload.getAdditionalFieldID("TextBox"), inputType = "text", inputID = inputName, input = createInput(inputType, "Title", "Title"), label = createLabel(inputID), br = document.createElement("br"); row.appendChild(br); row.appendChild(input); row.appendChild(label);}function createInput(inputType, inputID, inputName) { var input = document.createElement("input"); input.setAttribute("type", inputType); input.setAttribute("id", inputID); input.setAttribute("name", inputName); return input;}function createLabel(forArrt) { var label = document.createElement("label"); label.setAttribute("for", forArrt); label.innerHTML = "info: "; return label;}<telerik:RadAsyncUpload runat="server" ID="rada_attach" OnClientFileUploaded="onClientFileUploaded" MultipleFileSelection="Disabled" InitialFileInputsCount="1" MaxFileInputsCount="1" Width="100%" />foreach (UploadedFile UF in rada_attach.UploadedFiles) { OBJ.File_name = UF.GetFieldValue("Title");//always null
}