I have a problem with upload in my grid using Automatic operations
In your example you have the following code
My problem is that you are sending the data to the Session("DataVB") and not to the grid.
How do i change that if i have automatic inserts with stored procedures like
I need the uploaded filenmae to hook on the Filename parameter.
Any suggestions how to?
And to make it more compplex, I only want the upload on insert, not on upodate, there it should be a normal textbox.
is this possible at all?
In your example you have the following code
Private Sub InitializeUpdateParameter(ByVal currentUpload As RadUpload) | |
If currentUpload.UploadedFiles.Count > 0 Then | |
Dim data As Byte() = New Byte(currentUpload.UploadedFiles(0).ContentLength) {} | |
currentUpload.UploadedFiles(0).InputStream.Read(data, 0, data.Length) | |
Session("DataVB") = data | |
End If | |
End Sub |
My problem is that you are sending the data to the Session("DataVB") and not to the grid.
How do i change that if i have automatic inserts with stored procedures like
<asp:SqlDataSource ID="SqlDataSource1" runat="server" | |
ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>" | |
SelectCommandType="StoredProcedure" | |
SelectCommand="Selectimage" | |
DeleteCommandType="StoredProcedure" | |
DeleteCommand="Deleteimage" | |
UpdateCommandType="StoredProcedure" | |
UpdateCommand="Updateimage" | |
InsertCommandType="StoredProcedure" | |
InsertCommand="Insertimage"> | |
<UpdateParameters> | |
<asp:Parameter Name="FileName" Type="String" /> | |
<asp:Parameter Name="imageID" Type="int32" /> | |
</UpdateParameters> | |
<InsertParameters> | |
<asp:Parameter Name="FileName" Type="String" /> | |
</InsertParameters> | |
</asp:SqlDataSource> |
I need the uploaded filenmae to hook on the Filename parameter.
Any suggestions how to?
And to make it more compplex, I only want the upload on insert, not on upodate, there it should be a normal textbox.
is this possible at all?