<button id="btnSave" style="width: 80px" onclick = "radprompt('Please enter a Search Name:',
promptCallBackFn, 330, 180); return false;"
>Save</button>
Now my question is
1) how do i grab the name that user entered in the prompt and use it in my .cs file.
how to make the name available in code behind file. pls do help me with code.
2) also, i need to make sure that user has selected atleast 1 radcombo box and entered text in 1 textbox ctrl before prompting for a name. otherwise I need to alert the user telling "you don't have anything to save".
pls help me with code.
Thanks,
ZR
Protected
Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click
For Each file As UploadedFile In RadUpload1.UploadedFiles
Dim bytes As Byte() = New Byte(file.InputStream.Length) {}
file.InputStream.Read(bytes, 0,
DirectCast((file.InputStream.Length), Long))
Dim strImageName As String = txtName.Text.ToString()
Dim con As New SqlConnection()
con.ConnectionString = ConfigurationManager.ConnectionStrings(
"ConnectionString").ConnectionString
Dim cmd As New SqlCommand()
cmd.CommandText =
"spPDFtest"
cmd.CommandType = CommandType.StoredProcedure
cmd.Connection = con
Dim ImageName As New SqlParameter("@pdfName", SqlDbType.VarChar, 50)
ImageName.Value = strImageName.ToString()
cmd.Parameters.Add(ImageName)
Dim UploadedImage As New SqlParameter("@pdf", SqlDbType.Image, bytes.Length)
UploadedImage.Value = bytes
cmd.Parameters.Add(UploadedImage)
con.Open()
Dim result As Integer = cmd.ExecuteNonQuery()
con.Close()
If result > 0 Then
lblMessage.Text =
"File Uploaded"
End If
Next
End Sub
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
<add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
So my question (or begging plea) is this - is there any one out there who could provide more in depth recommendations or assistance in getting rid of this error. It seems benign from an end-user point of view, but probably affects performance, especially since we are logging hundreds of errors per day on this problem. Any assistance would be greatly appreciated!
I having an issue rebinding and/or clearing the old results in the grid. The code below populates RadGridType. On load returnCourseName return 63 records (confirmed). Then the user selects something on RadGridProduct and this function is launched again, this time returnCourseName returns 21 records (confirmed) but the 63 records are still in RadGridType. All I want to do is clear the grid and send it new results. That all!!!
| <telerik:RadGrid |
| ID="RadGridType" |
| runat="server" |
| AutoGenerateColumns="False" |
| GridLines="None" |
| AllowMultiRowSelection="True" |
| ShowHeader="False" |
| BorderStyle="None" |
| Skin="Web20" |
| ForeColor="#3399CC" |
| Font-Bold="False" |
| Font-Italic="False" |
| Font-Names="Verdana" |
| Font-Overline="False" |
| Font-Strikeout="False" |
| Font-Underline="False"> |
| <AlternatingItemStyle |
| Font-Bold="False" |
| Font-Italic="False" |
| Font-Overline="False" |
| Font-Strikeout="False" |
| Font-Underline="False" |
| ForeColor="#3399CC" |
| Wrap="True" /> |
| <ItemStyle |
| Font-Bold="False" |
| Font-Italic="False" |
| Font-Overline="False" |
| Font-Strikeout="False" |
| Font-Underline="False" |
| ForeColor="#3399CC" |
| Wrap="True" /> |
| <MasterTableView |
| Font-Bold="False" |
| Font-Italic="False" |
| Font-Names="Verdana" |
| Font-Overline="False" |
| Font-Strikeout="False" |
| Font-Underline="False" |
| Font-Size="11px"> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridClientSelectColumn Display="False" UniqueName="columnBlank"> |
| </telerik:GridClientSelectColumn> |
| <telerik:GridBoundColumn |
| DataField="CourseName" |
| UniqueName="colCourseNameSelect" |
| HeaderButtonType="None"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" ForeColor="#3399CC" Wrap="True" /> |
| <AlternatingItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" ForeColor="#3399CC" Wrap="True" /> |
| <EditItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="True" BackColor="Black" ForeColor="White" /> |
| </MasterTableView> |
| <SelectedItemStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="True" ForeColor="Maroon" BackColor="Silver" /> |
| <ClientSettings EnableRowHoverStyle="False"> |
| <Selecting AllowRowSelect="True" /> |
| </ClientSettings> |
| </telerik:RadGrid> |
| public void returnCourseName(string strLocation) |
| { |
| GridItemCollection GDC = RadGridProduct.SelectedItems; |
| RadGridType.DataSource = new List<string>(0); |
| RadGridType.DataBind(); |
| RadGridType.DataSource = clsTraining.returnCourseName(strLocation, GDC); |
| RadGridType.DataBind(); |
| } |
I have a number of pages that all use a given master page.
The master page includes a RadAjaxManager and a LoadingPanel control.
I would like, if it possible to arrange it so, to have /all/ of the controls on the page blocked whenever and AJAX request fires and to have the LoadingPanel displayed.
I know I could modify /each/ page but I'd rather, if possible, have it all managed from the Master Page.
Is such a thing possible?
--
Stuart