or


<asp:SqlDataSource ID="sqlGetDocs" runat="server" OnInserting="SqlGetDocs_Updating" ConnectionString="<%$ ConnectionStrings:DBConnectionString %>" SelectCommand="spAspGetEnrollDocs" SelectCommandType="StoredProcedure" InsertCommand="spASPinsertClientDocDatabase" InsertCommandType="StoredProcedure"> <SelectParameters> <asp:SessionParameter Name="SSN" SessionField="SSN" Type="String" /> </SelectParameters> <InsertParameters> <asp:ControlParameter ControlID="DropDownList1" Name="Client" PropertyName="SelectedValue" Type="String" /> <asp:Parameter Name="SSN" Type="String" /> <asp:Parameter Name="DocDesc" Type="String" /> <asp:Parameter Name="FileType" Type="String" /> <asp:Parameter Name="ImageFile" dbType="Binary" /> <asp:Parameter Name="Updated" Type="DateTime" /> <asp:Parameter Name="Comments" Type="String" /> <asp:ControlParameter ControlID="lblUserName" Name="UserID" PropertyName="Text" Type="String" /> </InsertParameters> </asp:SqlDataSource>Protected Function UpdateImageField(ByVal gridEditableItem As GridEditableItem) As Byte() Dim bytes As Byte() = (DirectCast(gridEditableItem.EditManager.GetColumnEditor("ImageFile"), GridBinaryImageColumnEditor)).UploadedFileContent If bytes Is Nothing OrElse bytes.Length = 0 Then bytes = New Byte() {} End If Return bytesEnd FunctionProtected Sub SqlGetDocs_Updating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceCommandEventArgs) Dim imageBytes As Byte() = UpdateImageField(TryCast(RadGrid.EditItems(0), GridEditableItem)) e.Command.Parameters("@ImageFile").Value = imageBytesEnd Sub
Could someone tell me what I'm doing wrong?TextBox txtGameUPC = (TextBox)editForm.FindControl("txtGameUPC"); txtGameUPC.Visible = true; txtGameUPC.Enabled = false; //Call Java script function to validate the UPC code txtGameUPC.Attributes.Add("onblur", "validateUPC('" + txtGameUPC.ClientID + "');");
protected void RadGridNextSteps_UpdateCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e) { GridDataItem editItem = e.Item as GridDataItem; // found the row TableCell cell = editItem["sDisplayText"]; // found the cell TextBox txt = cell.Controls[0] as TextBox; // found the control string itemValue = txt.Text; // found the control’s value // Problem: itemValue is old value, not new value. }
Hello Telerik Team,
I have a requirement where i need to bind the Radscheduler to two datasources.Meaning
I have developed a usercontrol which is wrapped in a Sharepoint webpart which consists of a
rad scheduler.As of now my rad scheduler pulls the information from a specific list.
But now i need to pull the information for the appointments not only from a specific list but also from a sql database table.
what is the method i need to follow.
Do i need to use this
Any sample for this is greatly appreciated.
Thank you,
Smith