Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
53 views
Hi,

I've two page aspx: first page is search.aspx, second page is reasult.aspx

into page search.aspx i write this code:

Response.Redirect(

 

"reasult.aspx?_str1=" & Txtsearch1.Text & "&_str2=" & Txtsearch2.Text)

and then pass the values to the second page result.aspx....Into first page there's a ajaxloadingpanel that appears when I send the data, but the loading is still.

Perhaps because the page has result.aspx in load_page loading data from the database? And so it stops loading.

this code in second page:

 

Imports System
Imports System.Data
Imports System.Web
Imports System.Data.SqlClient
Imports Telerik.Web.UI
Imports System.IO
    
  Private Loadsearch As New GestoreUtente     
  Dim list As List(Of PropertyUtente) = Loadsearch.Search(_str1, _str2)
        RadListView1.DataSource = list
        RadListView1.DataBind()
 
Public Class GestoreUtente
    Public Function Search(ByVal _Str1 As String, ByVal _Str2 As String) As List(Of PropertyUtente)
        Dim lista As New List(Of PropertyUtente)
        Try
            Dim conString = ConfigurationManager.ConnectionStrings("TrycontactString")
            Dim strConnString As String = conString.ConnectionString
            Using db As New SqlConnection(strConnString)
                db.Open()
                Using sqlcmd As New SqlCommand("Sp_searching_like", db)
                    sqlcmd.CommandType = CommandType.StoredProcedure
                    sqlcmd.Parameters.AddWithValue("@Search", SqlDbType.VarChar).Value = _Str1
                    sqlcmd.Parameters.AddWithValue("@Searchluogo", SqlDbType.VarChar).Value = _Str2
                    Using sqldr As SqlDataReader = sqlcmd.ExecuteReader
                        While sqldr.Read
                            lista.Add(New PropertyUtente With {.idutente = sqldr.GetSqlInt32(0).Value, _
                                                                .utente = sqldr.GetSqlString(1).Value, _
                                                                .Desccategoria = sqldr.GetSqlString(2).Value, _
                                                                .Desccomune = sqldr.GetSqlString(3).Value, _
                                                                .Telefono = sqldr.GetSqlString(4).Value, _
                                                                .Cellulare = sqldr.GetSqlString(5).Value, _
                                                                .Imageprofile = sqldr.GetSqlString(6).Value, _
                                                                .Email = sqldr.GetSqlString(7).Value})
                        End While
                    End Using
                End Using
            End Using
        Catch ex As SqlException
            Exit Try
        Catch ex As Exception
            Exit Try
        End Try
        Return lista
    End Function
End Class
Maria Ilieva
Telerik team
 answered on 07 Dec 2012
1 answer
137 views
1)hide the list of files that shown above fakeinput? 
Princy
Top achievements
Rank 2
 answered on 07 Dec 2012
2 answers
58 views
I am using rad calendar thru which the use can select/unselect dates. And we will add some special days like holiday which can not be selected by the user. When I click on the column header 'M' if atleast one monday is a special day, then I am not able to unselect the complete column. Selection is possible even if special dates are availble. but only unselection is not possible. Is there any property to set or any solution to oversome this problem.
Esther Nirmala
Top achievements
Rank 1
 answered on 07 Dec 2012
5 answers
357 views
Hi,

Can someone please tell me why I got the a javascript error when I click the "Refresh using ajaxPanel.ajaxRequest()" button the second time?

Thank you,

Vincent


Javascript Error:
Sys.ArgumentException: Value must not be null for Controls and Behaviors.    Parameter name:  element

Here are my codes:

WebForm1.aspx
        <asp:ScriptManager runat="server" ID="scriptMgr" /> 
          
        <uc1:UserControl1 ID="UserControl1" runat="server" />     
        <br /> 
          
        <asp:Button runat="server" ID="btnRefreshAjaxManager" Text="Refresh AjaxManager" /> 
          
        <telerik:RadAjaxManager runat="server" ID="ajaxMgr">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="btnRefreshAjaxManager">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="UserControl1"/>  
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager>    

UserControl1.ascx:
<script language="javascript">  
    function Refresh( controlId )  
    {  
        var panel = $find(controlId );  
        panel.ajaxRequest();  
    }  
</script> 
 
 
<telerik:RadAjaxPanel runat="server" ID="ajaxPanel" > 
    <asp:TextBox runat="server" ID="TextBox1" /> 
    <asp:Label runat="server" ID="Label1" /> 
    <br /> 
    <asp:Button runat="server" ID="btnRefreshAjaxPanel" Text="Refresh AjaxPanel" /> 
</telerik:RadAjaxPanel> 
 
<br /> 
<asp:Button runat="server" ID="btnRefreshJS" Text="Refresh using ajaxPanel.ajaxRequest()" /> 

UserControl1.ascx.cs
        protected void Page_Load(object sender, EventArgs e)  
        {  
            TextBox1.Text = DateTime.Now.ToString();  
 
            thisthis.Label1.Text = this.ajaxPanel.ClientID;  
 
            this.btnRefreshJS.OnClientClick = string.Format( "Refresh( '{0}' ); return false;", ajaxPanel.ClientID);  
 
        } 
Maria Ilieva
Telerik team
 answered on 07 Dec 2012
1 answer
51 views
1)how to sort tabs alphabeticaly in a tabstrip?  
Shinu
Top achievements
Rank 2
 answered on 07 Dec 2012
4 answers
93 views
Is there a way for me to style by a hidden resource/attribute?  Every time an event is written I also log which user enters it via a insert parameter that is assigned via page_load so the user never sees this field and its not part of the form.  I would assume I need to add it as a resource or attribute and then set the visibility to false and set the value to something if I want to make it work?
Plamen
Telerik team
 answered on 07 Dec 2012
6 answers
142 views
Hello,

With asp.net 4 and version 2010.3.1317.
It seems that CDN usage disable any css combine feature ? Dommage because my header is full of links (and my personnal head is tired with all this).

So what is the best to do: use CDN and get many file to lad or using a single file whitout CDN but with combining ?

Moreover I must tell that thye help file is very poor on this and we must spend hours on forums to get some idea of real feature....


Thanks
CS
Kate
Telerik team
 answered on 07 Dec 2012
6 answers
186 views
I am stucked at 1 point in the radscheduler.

I need to find out value of a control from InlineEditTemplate on the OnAppointmentUpdate event.

protected void RadScheduler1_AppointmentUpdate(object sender, ApponitmentUpdateEventArgs e )
{

}

in my InLineEditTemplate there is a radiobuttonlist control, i am not able to get the value selected in the radio button list.

Thanks in Advance
Plamen
Telerik team
 answered on 07 Dec 2012
1 answer
220 views

I have a radtextbox that I am updating the text with JavaScript (clientside). The new value shows on the page but if I access the control server side, it shows the old value. This control is not being reloaded server side.

JavaScript: this will set the new value which shows up on the web page

document.Form1.txtTotalCharge_text.value = document.Form1.txtHdTotalCharge.value

If I access txtTotalCharge.text on the server side, the old value shows up. The asp:textbox doesn't have this issue. Can anyone tell me how to fix this.

Milena
Telerik team
 answered on 07 Dec 2012
5 answers
246 views
Hello,

  On my webpage, I am using RadAsyncUpload and i'd like to have a description for each image the user upload. For that i need a textbox and the user can upload as many images as they want. What would be the best way to achieve this?

Appreciate the help
Thanks
Plamen
Telerik team
 answered on 07 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?