Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all 5678 articles
Browse latest View live

youtube thumnail image not saving in to PC

$
0
0

Hi All,

          i try to save youtube thumnail image in my local pc by asp.net c# application. some of them are saving my pc. but some of them are not saving. why.?

     

 saving images  

http://img.youtube.com/vi/8xthEGaywuk/1.jpg
http://img.youtube.com/vi/jh-PnSxVFSI/1.jpg
http://img.youtube.com/vi/8OYf79iu2VI/1.jpg

not saving images

http://img.youtube.com/vi/OMjAWg63ZKY/1.jpg
http://img.youtube.com/vi/YmzQccIEef4/1.jpg

below i giving my c# code

a = a + 1;
string connection = System.Configuration.ConfigurationManager.ConnectionStrings["TenantDataConnection"].ConnectionString.ToString();
SqlConnection conn = new SqlConnection(connection);
SqlCommand cmd;
cmd = new SqlCommand("ConvertImage", conn);
cmd.CommandType = System.Data.CommandType.StoredProcedure;

//cmd.Parameters.Add("@imageconvert",System.Data.SqlDbType.Int,1,"1");
if (a == 6) { a = 7; }
SqlParameter tblvaluetype = cmd.Parameters.AddWithValue("@imageconvert", a);
tblvaluetype.SqlDbType = System.Data.SqlDbType.Int;
conn.Open();
SqlDataReader dr = cmd.ExecuteReader();
dr.Read();
string value = dr[0].ToString();
//string value2 = dr[1].ToString();
conn.Close();
string[] value3 = null;
value3 = value.Split('/');
string remoteUri = value;
string fileName = value3[5], myStringWebResource = null;
string filepathis = @"D:\Binu\Images\" + value3[4] + fileName;
WebClient myWebClient = new WebClient();
myStringWebResource = remoteUri;
myWebClient.DownloadFile(myStringWebResource, filepathis);


Close ModalPopup From frame(another page)

$
0
0

hello, m showing another page (i.e Default2.aspx) for modalpoup . Default2.aspx has gridview.

By clicking on 'Select ' linkbutton in Gridview,i want to close the popup window

How to close it....Please help

FirstPage.aspx-->

<cc1:ModalPopupExtender ID="mp1" runat="server" PopupControlID="Panl1" TargetControlID="Button1"
CancelControlID="Button2" BackgroundCssClass="Background" BehaviorID="mpeBehavior">
</cc1:ModalPopupExtender>
<asp:Panel ID="Panl1" runat="server" CssClass="Popup" align="center" style = "display:none">
<iframe style=" width: 350px; height: 300px;" id="irm1" src="Default2.aspx" runat="server"></iframe>
<br/>
<asp:Button ID="Button2" runat="server" Text="Close" />

-------------------------------------------------------------------------------------------------------------------

Default2.aspx-->

<asp:GridView ID="grvDemo" runat="server" onrowcommand="grvDemo_RowCommand">
<Columns>
<asp:TemplateField>
<ItemTemplate>

<asp:LinkButton ID="lnkSelect" runat="server" Text="Select" CommandName = "Select" OnClientClick = "return GetSelectedRow(this)" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>

what is this error "AsyncFileUpload"?

$
0
0

Hi,

I used this ajax control in my project and my Debugger get this error

"0x800a01bd - JavaScript runtime error: Object doesn't support this action"

this is my code:

<div class="FontFamily"><div><asp:Label runat="server" CssClass="fit">TEST</asp:Label><div><asp:TextBox runat="server" ID="TextBox1" CssClass="TextBox-control fit" /><%--<asp:RequiredFieldValidator runat="server" ControlToValidate="Email"
                                        CssClass="text-danger" ErrorMessage="The email field is required." />--%></div></div><div><div><asp:Label runat="server" CssClass="fit">TEST</asp:Label><div><cc1:Editor ID="Editor1" runat="server" Width="650" Height="300" /><%--<asp:RequiredFieldValidator runat="server" ControlToValidate="Email"
                                            CssClass="text-danger" ErrorMessage="The email field is required." />--%></div></div></div><div dir="ltr"><asp:Label runat="server" CssClass="fit">TEST</asp:Label><%--<asp:AsyncFileUpload ID="AsyncFileUpload1" runat="server"                                                                       CssClass="FontFamily" />--%><asp:AsyncFileUpload ID="AsyncFileUpload1" runat="server" OnUploadedFileError="AsyncFileUpload1_UploadedFileError" /></div></div>

Somethings is cool when try to upload pic in other project never get this error??????????

what is problem in this project??????????

just something you must know is this This div in side ofUpdate paneland this update panel shown inModalPopupExtender.

and used ToolkitScriptManagerin master page.

plz help me THANKS.

Could not load file or assembly 'AjaxControlToolkit, Version=4.1.7.1213, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HR

$
0
0

Hello I am having problem with this , please help me out guys

Could not load file or assembly 'AjaxControlToolkit, Version=4.1.7.1213, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Thank you

max

How to create slide Show Extender From Database?

$
0
0

Hi,

How to create slide Show Extender From Database?

I need SlideShow, get it slides from Database Images, Images Saved in Database sql (BINARY).

plz Help me THANKS

How to insert page break for printing after specified number of rows in data List

$
0
0

hi,

I want to print n number of barcodes in 10 Rows  and 3 Columns upto n number of pages. 

So that each page will have 10 Rows and 3 Columns.

I have already tried one of the method posted in this forum but it did not worked for me.

By the way I am doing this way. But only problem I am facing is improper page breaks.

ASPX:

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %><%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %><asp:Content ID="Content1" ContentPlaceHolderID="Content_Pop"  runat="Server"><script language="javascript">
        function Print() {

            window.print();

        }
    </script><asp:DataList ID="DataList1" runat="server" BorderWidth ="0" BorderColor ="Red" CellSpacing ="5" CellPadding ="10"
        RepeatColumns="2" RepeatDirection="Horizontal"  Width="100%"><ItemStyle VerticalAlign ="Top" /><ItemTemplate><%#IIf(Request.QueryString("c") = "3", "<div style ='float:left; border:0px solid green;' >", "<div style ='float:left; border:0px solid green;'>")%><telerik:RadBarcode ID="barcode_pallet" runat="server" OutputType="SVG_VML" Visible="True" Font-Size ="8"  Width="80" Height="90"  ShowChecksum ="false" ShowText ="true" LineWidth="1" Type="Code11" Text='<%#eval("barcode") %>'></telerik:RadBarcode></div></ItemTemplate></asp:DataList><%  If Request("print") = "Y" Then%><script>Print();</script><%  End If%></asp:Content>

    Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
            If Not IsPostBack Then
                If Request.QueryString.Get("p") > 0 AndAlso Request.QueryString.Get("r") > 0 AndAlso Request.QueryString.Get("c") > 0 Then
                    DataList1.RepeatColumns = Request.QueryString.Get("c")
                    DataList1.DataSource = Create_table()
                    DataList1.DataBind()
                    insert_record()

                End If

            End If
        End Sub




 Protected Sub DataList1_ItemDataBound(sender As Object, e As DataListItemEventArgs) Handles DataList1.ItemDataBound
            If Request.QueryString.Get("p") > 0 AndAlso Request.QueryString.Get("r") > 0 AndAlso Request.QueryString.Get("c") > 0 Then
                Dim pageSize As Integer = Request.QueryString.Get("r") * Request.QueryString.Get("c")
                If (e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem) Then
                    If (e.Item.ItemIndex + 1) Mod pageSize = 0 Then
                        e.Item.Controls.Add(New LiteralControl("<p style='page-break-after:always;'></p>"))
                    End If
                End If
            End If

        End Sub

 Please note in the Item data Bound r is Rows and c is Columns.

autocomplete in gridview not working

$
0
0

using <ajaxToolkit:AutoCompleteExtender to fill a textbox with data from table

i have written the AutoComplete.asmx, though i dont get any errors , the textbox is not getting autocomplete

i have put a breakpoint in asmx page but the file is not called

my html is

<ItemTemplate><asp:TextBox ID="txtName" runat="server" AutoPostBack="true" Width="200px" Height="15px" Text="0" 
                                               Enabled="true" Style="text-align: right" /><ajaxToolkit:AutoCompleteExtender
                                 runat="server"
                                 ID="autoComplete1"
                                 TargetControlID="txtName"
                                 ServicePath="AutoComplete.asmx"
                                 ServiceMethod="GetCompletionList"
                                 MinimumPrefixLength="1"
                                 CompletionInterval="10"
                                 EnableCaching="true"
                                 CompletionSetCount="12" /></ItemTemplate>

ASP.NET 4.5 Autocomplete code in class

$
0
0

Hi, 

its possible the following  webservice code for auto-complete ajax toolkit can put into class

 


<System.Web.Script.Services.ScriptMethod(), _
System.Web.Services.WebMethod()> _
Public Shared Function SearchCustomers(ByVal prefixText As String, ByVal count As Integer) As List(Of String)
Dim conn As SqlConnection = New SqlConnection
conn.ConnectionString = ConfigurationManager _
.ConnectionStrings("SQLConnection").ConnectionString
Dim cmd As SqlCommand = New SqlCommand
cmd.CommandText = "select account_no from coa where" & _
" account_no like @SearchText + '%'"
cmd.Parameters.AddWithValue("@SearchText", prefixText)
cmd.Connection = conn
conn.Open()
Dim customers As List(Of String) = New List(Of String)
Dim sdr As SqlDataReader = cmd.ExecuteReader
While sdr.Read
customers.Add(sdr("account_no").ToString)
End While
conn.Close()
Return customers
End Function

thank you.


Ajax Editor Not Working

$
0
0

Very Simple. Drag and AJAX Editor onto page.. When visible in design view. Have my scriptmanager in correct location, but when I run the site, all I see is a dash, as if the editor is minimized. eerrrgh... any ideas???

Return value from first Auto Complete list and pass it to second Auto complete list for search

$
0
0

Hi Friends,

please help me on following code as I want to get account_no in first search autocompletelist based on return value from first search, I want to get Description in second search. so first search working fine , but second search not return value.

 thank you. regards, asad

First Search 

<System.Web.Script.Services.ScriptMethod(), _
System.Web.Services.WebMethod()> _
Public Shared Function search_accountno(ByVal prefixText As String, ByVal count As Integer) As List(Of String)
Dim conn As SqlConnection = New SqlConnection
conn.ConnectionString = ConfigurationManager _
.ConnectionStrings("SQLConnection").ConnectionString
Dim cmd As SqlCommand = New SqlCommand
cmd.CommandText = "select account_no from coa where" & _
" account_no like @SearchText + '%'"
cmd.Parameters.AddWithValue("@SearchText", prefixText)
cmd.Connection = conn
conn.Open()
Dim account_no As List(Of String) = New List(Of String)
Dim sdr As SqlDataReader = cmd.ExecuteReader
While sdr.Read
account_no.Add(sdr("account_no").ToString)
End While
conn.Close()
Return account_no
End Function

Second search


<System.Web.Script.Services.ScriptMethod(), _
System.Web.Services.WebMethod()> _
Public Shared Function Searchaccount(ByVal account_no As String, ByVal count As Integer) As List(Of String)
Dim conn As SqlConnection = New SqlConnection
conn.ConnectionString = ConfigurationManager _
.ConnectionStrings("SQLConnection").ConnectionString
Dim cmd As SqlCommand = New SqlCommand
cmd.CommandText = "select description from coa where" & _
" account_no like prefixText + '%'"
cmd.Parameters.AddWithValue("account_no", account_no)
cmd.Connection = conn
conn.Open()
Dim accno As List(Of String) = New List(Of String)
Dim sdr As SqlDataReader = cmd.ExecuteReader
While sdr.Read
accno.Add(sdr("account_no").ToString)
End While
conn.Close()
Return accno
End Function

sometimes I get a listsearch extender exception

$
0
0

Hi!

I've an asp.net 3.5 application which uses the latest ajax control toolkit available for 3.5 (December 2013). The application works fine but I sometimes get an exception with a listsearch extender one page. Other pages also use listsearch extenders without any problems. But the page causing the Problem isn't very complex - just an update Panel which includes a Details view which inserts a record into a database:

<asp:UpdatePanel ID="UpdatePanelTicket" runat="server"><ContentTemplate><asp:DetailsView ID="DetailsViewTicket" runat="server" AutoGenerateRows="False" CellPadding="5"
                DataKeyNames="Oid" DataSourceID="TicketsDS" DefaultMode="Insert" GridLines="None"
                Height="50px" Width="300px"><FieldHeaderStyle Font-Bold="True" /><Fields><asp:TemplateField meta:resourcekey="tfProject"><InsertItemTemplate><asp:DropDownList ID="DropDownListProject" runat="server" AutoPostBack="True" DataSourceID="ProjectsDS"
                                DataTextField="Name" DataValueField="Oid" OnSelectedIndexChanged="DropDownListProject_SelectedIndexChanged"
                                OnLoad="DropDownListProject_Load" AppendDataBoundItems="true"></asp:DropDownList><ajaxToolkit:ListSearchExtender ID="ListSearchExtenderProjects" runat="server" TargetControlID="DropDownListProject"
                                PromptCssClass="ListSearchExtenderPrompt" PromptText='<%$ Resources:GlobalResource, ListSearchExtender.PromptText%>'
                                QueryPattern="Contains" IsSorted="true" QueryTimeout="2000"></ajaxToolkit:ListSearchExtender><asp:ObjectDataSource ID="ProjectsDS" runat="server" OldValuesParameterFormatString="original_{0}"
                                SelectMethod="GetUserProjects" TypeName="AreaService" OnSelecting="ProjectsDS_Selecting"><SelectParameters><asp:Parameter Name="pUser" Type="Decimal" /></SelectParameters></asp:ObjectDataSource><asp:RequiredFieldValidator ID="reqValPrj" runat="server" ControlToValidate="DropDownListProject"
                                InitialValue="-1" meta:resourcekey="reqValPrj" Display="None" /><ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtenderPrj" runat="server"
                                TargetControlID="reqValPrj" /></InsertItemTemplate></asp:TemplateField><asp:TemplateField meta:resourcekey="tfTitle" SortExpression="Title"><InsertItemTemplate><asp:TextBox ID="TextBoxTitle" runat="server" MaxLength="100" Width="450px" Text='<%# Bind("Title") %>'
                                onkeypress="HideStatusMessage();"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidatorTitle" runat="server" ControlToValidate="TextBoxTitle"
                                Display="None" meta:resourcekey="RequiredFieldValidatorTitle" /><ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server"
                                TargetControlID="RequiredFieldValidatorTitle" /></InsertItemTemplate></asp:TemplateField><asp:TemplateField meta:resourcekey="tfVersion" SortExpression="VersionOid"><InsertItemTemplate><asp:DropDownList ID="DropDownListVersion" runat="server" DataSourceID="VersionsDS"
                                DataTextField="Name" DataValueField="Oid" OnLoad="DropDownListVersion_Load" OnSelectedIndexChanged="DropDownListVersion_SelectedIndexChanged"></asp:DropDownList><ajaxToolkit:ListSearchExtender ID="ListSearchExtenderVersions" runat="server" TargetControlID="DropDownListVersion"
                                PromptCssClass="ListSearchExtenderPrompt" PromptText='<%$ Resources:GlobalResource, ListSearchExtender.PromptText%>'
                                QueryPattern="Contains" IsSorted="true" QueryTimeout="2000"></ajaxToolkit:ListSearchExtender><asp:ObjectDataSource ID="VersionsDS" runat="server" OldValuesParameterFormatString="original_{0}"
                                SelectMethod="GetProjectVersions" TypeName="AreaService" FilterExpression="Available='X'"><SelectParameters><asp:ControlParameter ControlID="DropDownListProject" Name="projectOid" PropertyName="SelectedValue"
                                        Type="Decimal" /></SelectParameters></asp:ObjectDataSource><asp:RequiredFieldValidator ID="RequiredFieldValidatorVersion" runat="server" ControlToValidate="DropDownListVersion"
                                Display="None" meta:resourcekey="RequiredFieldValidatorVersion" /><ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtenderVersion" runat="server"
                                TargetControlID="RequiredFieldValidatorVersion" /></InsertItemTemplate></asp:TemplateField><asp:TemplateField meta:resourcekey="tfComponent" SortExpression="ComponentOid"><InsertItemTemplate><asp:DropDownList ID="DropDownListComponent" runat="server" DataSourceID="ComponentsDS"
                                DataTextField="Name" DataValueField="Oid" OnLoad="DropDownListComponent_Load"
                                OnSelectedIndexChanged="DropDownListComponent_SelectedIndexChanged"></asp:DropDownList><ajaxToolkit:ListSearchExtender ID="ListSearchExtenderComponent" runat="server" TargetControlID="DropDownListComponent"
                                PromptCssClass="ListSearchExtenderPrompt" PromptText='<%$ Resources:GlobalResource, ListSearchExtender.PromptText%>'
                                QueryPattern="Contains" IsSorted="true" QueryTimeout="2000"></ajaxToolkit:ListSearchExtender><asp:ObjectDataSource ID="ComponentsDS" runat="server" OldValuesParameterFormatString="original_{0}"
                                SelectMethod="GetProjectComponents" TypeName="AreaService" FilterExpression="Available='X'"><SelectParameters><asp:ControlParameter ControlID="DropDownListProject" Name="projectOid" PropertyName="SelectedValue"
                                        Type="Decimal" /></SelectParameters></asp:ObjectDataSource><asp:RequiredFieldValidator ID="RequiredFieldValidatorComp" runat="server" ControlToValidate="DropDownListComponent"
                                Display="None" meta:resourcekey="RequiredFieldValidatorComp" /><ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtenderComp" runat="server"
                                TargetControlID="RequiredFieldValidatorComp" /></InsertItemTemplate></asp:TemplateField><asp:TemplateField meta:resourcekey="tfCreator"><InsertItemTemplate><asp:DropDownList ID="DropDownListCreator" runat="server" DataSourceID="ObjectDataSourceCreator"
                                DataTextField="Name" DataValueField="Oid" Enabled='<%# CurrentUserDevOrAdmin() %>'
                                OnDataBound="DropDownListErsteller_DataBound" OnSelectedIndexChanged="DropDownListErsteller_SelectedIndexChanged" /><ajaxToolkit:ListSearchExtender ID="ListSearchExtenderCreator" runat="server" TargetControlID="DropDownListCreator"
                                PromptCssClass="ListSearchExtenderPrompt" PromptText='<%$ Resources:GlobalResource, ListSearchExtender.PromptText%>'
                                QueryPattern="Contains" IsSorted="true" QueryTimeout="2000"></ajaxToolkit:ListSearchExtender><asp:ObjectDataSource ID="ObjectDataSourceCreator" runat="server" OldValuesParameterFormatString="original_{0}"
                                SelectMethod="GetProjectPersons" TypeName="PersonService" EnableCaching="true"
                                CacheDuration="3600" CacheKeyDependency="cCreatorList"></asp:ObjectDataSource></InsertItemTemplate></asp:TemplateField><asp:TemplateField meta:resourcekey="tfType" SortExpression="TypeId"><InsertItemTemplate><asp:DropDownList ID="DropDownListTickettype" runat="server" DataSourceID="TickettypesDS"
                                DataTextField="Name" DataValueField="Id" SelectedValue='<%# Bind("TypeId") %>'></asp:DropDownList><ajaxToolkit:ListSearchExtender ID="ListSearchExtenderTickettype" runat="server"
                                TargetControlID="DropDownListTickettype" PromptCssClass="ListSearchExtenderPrompt"
                                PromptText='<%$ Resources:GlobalResource, ListSearchExtender.PromptText%>' QueryPattern="Contains"
                                IsSorted="true" QueryTimeout="2000"></ajaxToolkit:ListSearchExtender><asp:ObjectDataSource ID="TickettypesDS" runat="server" OldValuesParameterFormatString="original_{0}"
                                SelectMethod="GetTickettypes" TypeName="TicketLookupService"></asp:ObjectDataSource></InsertItemTemplate></asp:TemplateField><asp:TemplateField meta:resourcekey="tfPriority" SortExpression="PriorityId"><InsertItemTemplate><asp:DropDownList ID="DropDownListPriority" runat="server" DataSourceID="PrioritiesDS"
                                DataTextField="Name" DataValueField="Id" SelectedValue='<%# Bind("PriorityId") %>'
                                OnDataBound="DropDownListPriority_DataBound"></asp:DropDownList><ajaxToolkit:ListSearchExtender ID="ListSearchExtenderPriority" runat="server" TargetControlID="DropDownListPriority"
                                PromptCssClass="ListSearchExtenderPrompt" meta:resourcekey="ListSearchExtender"
                                QueryPattern="Contains" IsSorted="true" QueryTimeout="2000"></ajaxToolkit:ListSearchExtender><asp:ObjectDataSource ID="PrioritiesDS" runat="server" OldValuesParameterFormatString="original_{0}"
                                SelectMethod="GetPriorities" TypeName="TicketLookupService"></asp:ObjectDataSource></InsertItemTemplate></asp:TemplateField><asp:TemplateField meta:resourcekey="tfDescription" SortExpression="Description"><InsertItemTemplate><asp:Panel ID="PanelText" runat="server" CssClass="frameText"><asp:TextBox ID="TextBoxDesc" runat="server" Rows="5" Text='<%# Bind("Description") %>'
                                    TextMode="MultiLine" CssClass="noborder" /></asp:Panel><ajaxToolkit:ResizableControlExtender ID="resizeDesc" runat="server" TargetControlID="PanelText"
                                ResizableCssClass="resizingText" HandleCssClass="handleText" MinimumWidth="450"
                                MinimumHeight="250" MaximumWidth="900" MaximumHeight="700" OnClientResize="OnClientResizeText" /></InsertItemTemplate></asp:TemplateField><asp:TemplateField meta:resourcekey="tfAttachment"><ItemTemplate><asp:FileUpload ID="attUpload" runat="server" Width="455" /></ItemTemplate></asp:TemplateField><asp:TemplateField meta:resourcekey="tfPublic"><InsertItemTemplate><asp:CheckBox ID="chkPublic" runat="server" Checked="true" Enabled='<%# CurrentUserDevOrAdmin() %>' /></InsertItemTemplate></asp:TemplateField><asp:TemplateField HeaderText="" ControlStyle-CssClass="commentButton" ShowHeader="False"><ItemTemplate><asp:Button ID="ButtonInsert" runat="server" meta:resourcekey="ButtonInsert" OnClientClick="checkUpload(); showWait(); CheckDoubleClick();"
                                OnClick="DetailView_Insert" CommandName="Insert" CausesValidation="true" /><asp:Button ID="ButtonCancel" runat="server" meta:resourcekey="ButtonCancel" CommandName="Cancel"
                                CausesValidation="false" /></ItemTemplate><ControlStyle CssClass="commentButton" /></asp:TemplateField></Fields></asp:DetailsView>

As I've mentioned at the beginning the page works but SOMETIMES I get the following exception:

System.ArgumentException: the extender control "ListSearchExtenderProjects" is not a registered control. Extendersteuerelemente müssen mithilfe von RegisterExtenderControl() registriert werden, bevor RegisterScriptDescriptors() aufgerufen wird.
Parametername: extenderControl
   bei System.Web.UI.ScriptControlManager.RegisterScriptDescriptors(IExtenderControl extenderControl)
   bei System.Web.UI.ExtenderControl.Render(HtmlTextWriter writer)
   bei AjaxControlToolkit.ExtenderControlBase.Render(HtmlTextWriter writer) in f:\TeamCity\buildAgent\work\80acd78aa4c25314\Server\AjaxControlToolkit\ExtenderBase\ExtenderControlBase.cs:line 360.
   bei System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   bei System.Web.UI.WebControls.TableCell.RenderContents(HtmlTextWriter writer)
   bei System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
   bei System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   bei System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
   bei System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
   bei System.Web.UI.WebControls.Table.RenderContents(HtmlTextWriter writer)
   bei System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
   bei System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   bei System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
   bei System.Web.UI.WebControls.DetailsView.Render(HtmlTextWriter writer, Boolean renderPanel)
   bei System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   bei System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   bei System.Web.UI.UpdatePanel.RenderChildren(HtmlTextWriter writer)
   bei System.Web.UI.UpdatePanel.Render(HtmlTextWriter writer)
   bei ASP.general_createticket_aspx.__RenderContent2(HtmlTextWriter __w, Control parameterContainer)
   bei System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   bei System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   bei System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
   bei System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)
   bei System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer)
   bei System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   bei System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   bei System.Web.UI.Page.Render(HtmlTextWriter writer)
   bei System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei System.Web.UI.Page.HandleError(Exception e)
   bei System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   bei System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   bei System.Web.UI.Page.PageAsyncInfo.CallHandlersPossiblyUnderLock(Boolean onPageThread)
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei System.Web.UI.Page.AsyncPageEndProcessRequest(IAsyncResult result)
   bei ASP.general_createticket_aspx.EndProcessRequest(IAsyncResult ar)
   bei System.Web.HttpApplication.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar)

The page runs asynchron because I'm sending an email in async mode in code behind. But I've a second page which runs with async=true and there the listsearch extenders run well...

Do you have any tips or ideas how to solve this issue?

Thanks!

Best Regards,
Markus

asp modual popup Repositioning after postback

$
0
0

I have a modual popup that does some server side actions when a dropdown list is selected.  After the postpack the popup prepositions itself.  I have RepositionMode="None".  But it still repositions itself.

Let me know if I need to throw the code up here.  There is a lot and would take a bit of time to go through.  I am hoping that there might be some javascript I can use to over come this issue.

autocompleteextender focus problem.

$
0
0

Hello,

I am facing strange issue.I am using autocomplete extender and when i try to search by typing some text into it, it works fine.

But as soon as i remove the focus autocomplete extender stops working.

How to fix this.

Thanks

OutOfMemoryException errors

$
0
0

I am receiving OutOfMemoryException errors, i have installed my application on windows 2003 server with 4 GB of RAM , and every time to fix the issue i need to reset the IIS , if anything i can do to fix the issue.

---------------------------------------------

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 9/21/2014 1:37:04 PM
Event time (UTC): 9/21/2014 5:37:04 PM
Event ID: 12ec83643bd9474ead94f5a78cb4e50a
Event sequence: 595206
Event occurrence: 6139
Event detail code: 0

Application information:
    Application domain: /LM/W3SVC/809297663/Root/LotFinder-1-130557227588125000
    Trust level: Full
    Application Virtual Path: /LotFinder
    Application Path: D:\inetpub\wwwroot\LotFinder\
    Machine name: GALIIS01

Process information:
    Process ID: 8284
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:
    Exception type: OutOfMemoryException
    Exception message: Exception of type 'System.OutOfMemoryException' was thrown.

Request information:
    Request URL: http://www.galaxy.com/lotfinder/searchresults.aspx?entry=roman+glass&action=search&searchtype=u&searchFrom=header&searchSubmit=Search
    Request path: /lotfinder/searchresults.aspx
    User host address: 21.32.28.36
    User:  
    Is authenticated: False
    Authentication Type:  
    Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
    Thread ID: 8
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    at System.Collections.ArrayList.set_Capacity(Int32 value)
   at System.Collections.ArrayList.EnsureCapacity(Int32 min)
   at System.Collections.ArrayList.Add(Object value)
   at WebCommonServices.Page.PageBase..ctor()
   at galaxyDotComCommonServices.InternetPage..ctor()
   at LotFinder_searchresults..ctor()
   at ASP.searchresults_aspx..ctor()
   at __ASP.FastObjectFactory_app_web_hew5bhuo.Create_ASP_searchresults_aspx()
   at System.Web.Compilation.BuildResultCompiledType.CreateInstance()
   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
   at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

      

Ajax client-side framework failed to load after file selection in Asyncfileupload control

$
0
0

Now before you all start pasting in links to other posts that contain the phrase "Ajax client-side framework failed to load" (and are not helpful in anyway), read below.

There are two (2) Asyncfileupload controls on this page (one works and the other does not).

  • One is in the FooterTemplate of a GridView that is in the InsertItemTemplate of FormView1
  • The other is in the FooterTemplate of a GridView that is in the EditItemTemplate of FormView1
  1. The Asyncfileupload in the InsertItemTemplate works fine. 'Choose File' is clicked, a file is selected and OK is then clicked ........... the control does what ever it does to store the file path in memory or whatever it does (i have no events of my own triggering at this time) and the control background turns green.
  2. The Asyncfileupload in the EditItemTemplate does not work at all (it use to). 'Choose File' is clicked, a file is selected and OK is then clicked ........... the control does what ever it does to store the file path in memory or whatever it does (i have no events of my own triggering at this time) and then the controls background turns red and throws up useless errors.
    • In Chrome:
      • Unknown, server error
    • In IE: 
      • Unknown, server error
      • Ajax client-side framework failed to load

I have looked at the differences in the two and have even reduced the one in the EditItemTemplate to just the Asyncfileupload but it still errors.

I have a couple other pages set up the exact same way, Asyncfileupload in the FooterTemplate of a GridView, inside an InsertItemTemplate and an EditItemTemplate of a FormView.

My only other option is to start the page over from scratch (2,200 lines in the cs and 2,600 in aspx), which is an option I would prefer to avoid.

Thanks for any thoughts you might have.


why is this happening?

$
0
0

Hi,

I used Editor html and AsyncFileUpload in my page,

when I run this page and try to upload image with asyncfileupload send this error,

"0x800a01bd - JavaScript runtime error: Object doesn't support this action"

I found out editor is my problem when delete this Ajax control this problem gone, And I can use it again to upload file, But I need both together.

plz help me THANKS.

Progressing Image for ModalPoupExtender

$
0
0

Hi,

I'm using a modal popup extender where I have a dropdown. On selectedindex change event of dropdown, I do some processing. So, I need to show a progressing image while processing. How to achieve this?

can't position Modal Popup

$
0
0

I am trying to open a modal pop up in response to click on an image. The modal pop up will display a zoomed in version of the image. It keeps displaying the pop up in the center of the screen no matter what I do to position it differently. I tried to put the update panel inside a div, no change. For the images, I have a javascript onclick event:

onclick = "fnZoomImage(this.src)"

The js functions are:

function fnZoomImage(imageUrl) {
    var imgZoom = document.getElementById("imgZoom");
    imgZoom.src = imageUrl.replace("WebVersion/", "");
    imgZoom.style.display = "block";
    var modalpopup = $find('mpeZoom'); 
    modalpopup.show();
    return false;
}

function HideImage() {
    var imgZoom = document.getElementById("imgZoom");
    imgZoom.style.display = "none";
    var modalpopup = $find('mpeZoom'); 
    modalpopup.hide();
}

Pop up extender is:

<div style="position:fixed;top:0;left:0;"><asp:UpdatePanel runat="server" ID="upnlZoom" RenderMode="Inline"><ContentTemplate><asp:Panel runat="server" ID="pnlZoom" style="position:fixed;top:0;left:0;text-align:center;border:solid 2px navy;display:none;"><img id="imgZoom" style="display: none;" /><input type="button" id="btnClose" value="Close" onclick="HideImage()" style="width:75px;" /></asp:Panel><ajaxToolkit:ModalPopupExtender ID="mpeZoom" BehaviorID="mpeZoom" runat="server" TargetControlID="btnFake" BackgroundCssClass="backgrondModal" DropShadow="true"
PopupControlID="pnlZoom" PopupDragHandleControlID="pnlZoom" /><asp:Button runat="server" ID="btnFake" Style="display:none" /> </ContentTemplate></asp:UpdatePanel></div>

I am trying to position the pop up at left:200px, top:100px.

Costum AjaxControlToolkit.HTMLEditor

$
0
0

Hello,

I get thefollowing error code:

Error 1 The type or namespace name 'CostumAjaxEditor' does not exist in the namespace 'AjaxCostumEditor' (are you missing an assembly reference?) C:\Users\MKooijman\documents\visual studio 2013\Projects\Bouwgegevens\Bouwgegevens\WebForm2.aspx.designer.cs 40 44 Bouwgegevens

I have a class in App-Code: CostumAjaxEditor.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AjaxControlToolkit.HTMLEditor;

//namespace Bouwgegevens.App_Code
namespace DybronControl
{
    public class CostumAjaxEditor : Editor
    {
        protected override void FillTopToolbar()
        {
            TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.Bold());
            TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.Italic());
        }

        protected override void FillBottomToolbar()
        {
            BottomToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.DesignMode());
            BottomToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.PreviewMode());
        }
    }
}

I have a Webform: WebForm2.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="Bouwgegevens.WebForm2" %><%@ Register Namespace="DybronControl" TagPrefix="dbc" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><title></title></head>            <body><form id="form1" runat="server"><ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></ajaxToolkit:ToolkitScriptManager><div><dbc:CostumAjaxEditor ID="Editor1" runat="server" Width="500px" Height="250px" /></div></form></body></html>

a code behind: WebForm2.aspx.cs

using Bouwgegevens.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Bouwgegevens
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        DBBouwgegevensEntities _context = new DBBouwgegevensEntities();
        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}

and a code behind designer : WebForm2.aspx.designer.cs

//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated. 
// </auto-generated>
//------------------------------------------------------------------------------

namespace Bouwgegevens {
    
    
    public partial class WebForm2 {
        
        /// <summary>
        /// form1 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlForm form1;
        /// <summary>
        /// ToolkitScriptManager1 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::AjaxControlToolkit.ToolkitScriptManager ToolkitScriptManager1;
        /// <summary>
        /// Editor1 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>protected global::DybronControl.CostumAjaxEditor Editor1;    }
}

What am I doingwrong? I get the errorcodein the code abovelast line.

Please help.

Kind regards Mark

ASP.NET 4.5 AJAX AUTO COMPLETE CASCADING WITH TEXTBOX

$
0
0

Hi,

I want to do autocomplete cascading with textbox its possible , as I want to  enter employee no in textbox having autocomplete ajax and get employee name into another textbox which as having autocomplete (ajax) in my asp.net 

. My table as followed

 Table name:  Employee 

Emp_no nvarchar(10),

Emp_name varchar(30)

thank you.

Viewing all 5678 articles
Browse latest View live




Latest Images