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

Autocompleteextender And ScrollBar

$
0
0

I apologize in advance if I have missed this post elsewhere, but I have looked and not seen this particular issue.

 

I am running both IE 7 and Firefox 2.0.  I have created a panel on my page and set the CompletionListElementID to the panel's ID.  I set the scroll bars to vertical on the panel and everything seems to look alright on IE 7 until I go and click on the scroll bar.  As soon as I click on the scroll bar it scrolls down briefly and then hides the drop down panel.  In firefox the scroll bar is not displayed at all just a huge list of text.

 Any ideas would be much appreciated.

 

Josh


 


ModalPopup flashes on page load

$
0
0

I have a page with a ModalPopupExtender control and when the page loads I can see the popup for just a second before the rest of the content loads into the browser.  Is there a way to stop this from happening?  Can I set a CSS property to make the popup invisible prior to page load?

Thanks,
Frank
 

updating of json string on partial postback and wrong registering of javascript

$
0
0

https://www.facebook.com/photo.php?fbid=668133936623771&l=2f461a1e3a

1. When i click on button 1 it should not call javascript but i will be called.(though iam not calling results function where i register script)

When i comment the json line in javascript the there will be no call of javascript on button click.Why?

2. when i change filters the results varies but the json variable will not change .How to achieve this?

Please help????

Opeaning in new tab on click of repeater button in update panel

$
0
0

String url = "window.open('ProjectCompleteDetails?ProjectId=" + projectid + "','_newtab');";

ScriptManager.RegisterStartupScript(this, this.GetType(), "OpenWindow", "window.open('url','_newtab');", true);

or

ScriptManager.RegisterStartupScript(UpdatePanel2, UpdatePanel2.GetType(), "OpenWindow", window.open('url','_newtab');", true);

Will open in new tab but same tab again and again and not in other new tab ?????? Why

Masterpage usercontrol -> Enter key press on text box -> show search user control in Modalpoupup

$
0
0

Hi ,

I have search textbox and button in master page. If I click on search button it will show ajax modal popup with user contorl and load all the results.its is working fine without any issue.

The issue when I press enter in textbox it is opening modalpopup but wrong event is firing instead of search event.I have set panel with default button as search. I dont know still it is firing some pagination event.

This is my modal popup user control code

<asp:Panel ID="pnlDefault" runat=server DefaultButton="btnHiddenSearch">
<asp:UpdatePanel ID="UpdatePanel1" runat="server" Visible="true">
<ContentTemplate>
<script type="text/javascript">


//triggers search popup
function fireSearchPopupFromEnter(imageButtonClientId)
{

//if enter has been pressed
if(window.event && window.event.keyCode == 13)
{
var imageButton = document.getElementById(imageButtonClientId);
imageButton.focus();
imageButton.click();
return false;
}

return true;

}

var baseId;
var baseKey;
var baseValue;

function rememberClickValue(id, value)
{
baseId = id;
baseValue = value;
}

function rememberClickKeyValue(id, key, value)
{
baseId = id;
baseKey = key;
baseValue = value;
}

function AssignValues(idObject, idValue, nameObject, nameValue, additionalIDs, additionalValues)
{
if(idObject.trim() != "")
{
var id = document.getElementById(idObject);
id.value = idValue;
}

if(nameObject.trim() != "")
{
var name = document.getElementById(nameObject);
name.value = nameValue;
}

if(additionalIDs != null && additionalIDs.trim() != "" && additionalValues != null && additionalValues.trim() != "")
{
var additionalIDArr = additionalIDs.split("$-#!$");
var additionalValueArr = additionalValues.split("$-#!$");
var parentControl;

for(i = 1; i<additionalIDArr.length; i++)
{
if(additionalIDArr[i].trim() != "")
{
parentControl = document.getElementById(additionalIDArr[i]);
parentControl.value = additionalValueArr[i];
}
}
}

}


//BELOW ARE THE SCRIPTS NECESSARY FOR RETAINING SEARCH RESULTS
//Make sure we run "<%=ClientID + "_modalSetup"%>" function when we first load the page
Sys.Application.add_load(<%=ClientID + "_modalSetup"%>);

//Add "<%=ClientID + "_PopupFired"%>" function to the shown event of the modal popup extender
function <%=ClientID + "_modalSetup()"%>
{
var modalPopup = $find("<%=ClientID + "_PopupBehaviour"%>");
modalPopup.add_shown(<%=ClientID + "_PopupFired"%>);
}

//When we first load the page, popup is not launched yet
var <%=ClientID + "_IsPopupFiredOnce"%> = '<%=(Session[ClientID + "_stringCriteria"] == null).ToString().ToUpper()%>';


//Makes an AJAX search request into the modal popup
function <%=ClientID + "_PopupFired()"%>
{
//If this is a IncomingWordSearch from the left side then we must click the search button
if(('<%=IncomingWordSearch.ToString().ToUpper()%>' == 'TRUE'))
{
//var search = document.getElementById("<%=ClientID %>" + "_btnSearch");
//search.click();
var searchHidden = document.getElementById("<%=ClientID %>" + "_btnHiddenSearch");
searchHidden.focus();
alert('hi');
//searchHidden.style.display = "none";
searchHidden.click();

return;
}

//Connect hidden button and make it invisible; it is not supposed to be visible but we didn't make it invisible
//at the client side since we won't be able to click it then
var searchHidden = document.getElementById("<%=ClientID %>" + "_btnHiddenSearch");
searchHidden.style.display = "none";

//Only try to retain search results if results not already at the client (<%=ClientID + "_IsPopupFiredOnce"%>) and we are supposed
//to retain the search result (<%=RetainSearchResult.ToString().ToUpper()%>)
if((<%=ClientID + "_IsPopupFiredOnce"%> == 'FALSE') && ('<%=RetainSearchResult.ToString().ToUpper()%>' == 'TRUE'))
{
//Click the hidden button so when first time we show the popup, we make sure we get the result into it (if we are supposed to retain the search result)
searchHidden.click();

//Mark the variable so we won't click hidden button since we have the result at the client (popup launched once at the client)
<%=ClientID + "_IsPopupFiredOnce"%> = "true";
}
}
</script>



<div id="pcontent">

<asp:UpdatePanel ID="upLetters" runat="server" UpdateMode="Conditional" Visible="true" RenderMode="Inline" >
<ContentTemplate>

<ul class="searchbar">
<li class="firstitem"><asp:ImageButton id="btn_" runat="server" CommandArgument="_" OnClick="Letter_Click" ImageUrl="~/images/popup/hash.gif" AlternateText="Search #" Width="19" Height="18" TabIndex="-1" CausesValidation="false" /></li>

</ContentTemplate>
</asp:UpdatePanel>
</div> <!--pcontent-->


<div class="searchtxtbox" runat=server id="searchtxtbox">
<asp:label id="lblCriteriaCaption" AssociatedControlID="txtSearchCriteria" runat="server">Missing Title</asp:label>
<asp:TextBox ID="txtSearchCriteria" runat="server" TabIndex="1"></asp:TextBox>
</div>
<div class="searchradio" runat="server" id="boxSearchRadio">
<input type="radio" name="scope" id="searchOptionPhrase" value="phrase" runat="server" checked="true" /> <asp:label ID="Label1" runat="server" AssociatedControlID="searchOptionPhrase">Phrase Search</asp:label>
<input type="radio" name="scope" id="searchOptionWord" value="word" runat="server"/> <asp:label ID="Label2" runat="server" AssociatedControlID="searchOptionWord">Word Search</asp:label>
</div>
<div class="searchbtn">
<asp:ImageButton id="btnSearch" OnClick="btnSearch_Click" runat="server" ImageUrl="~/images/search_btn.gif" AlternateText="Search" CausesValidation="false"/>
<asp:ImageButton id="btnHiddenSearch" OnClick="btnHiddenSearch_Click" runat="server" ImageUrl="~/images/search_btn.gif" AlternateText="Search hidden" CausesValidation="false" style="display:none"/>
</div>

</ContentTemplate>

</asp:UpdatePanel>
</asp:Panel>

Please suggest me to resolve this issue.

Thanks
Bhavani

open a enlarged image as a popup/modalpop

$
0
0

i am displaying a image in gridview from database as
<asp:ImageField DataImageUrlField="Photo" ControlStyle-Width="100" ControlStyle-Height = "100" HeaderText = " Image"/>


on the click of the image displayed i want to open a enlarged image as a popup/modalpop

AJAX Calendar Extender Using in Gridview

$
0
0

I am using ajax calendar extender using under a gridview control which is under an updatepanel. This gridview control generating multiple rows, only first of gridview calendar extender works  but when I click on the second row textbox the calendar does not show.

I do now know what is the problem, please help, I am stuck up.

asp ToolkitScriptManager and asp ScriptManager for Content Page

$
0
0

Hi,

I am using ajax Rating tool and encountering an error: "AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts". I have found a solution to use ToolkitScriptManager to handle it. Was able to get it work in an independent Web page for testing purpose.

<asp:ToolkitScriptManager ID="toolkitScriptMaster" runat="server">
</asp:ToolkitScriptManager>

When I come back to my website, the ScriptManager on master page has conflict with ToolkitScriptManager on my content page.

"{"Only one instance of a ScriptManager can be added to the page."}

Obviousely, my master page does not accept ToolkitScriptManager to include all javascript libraries, only ScriptManager. I am using Visual Web Developer Express 2013 - Framework 4.5. I have tried AjaxControlToolKit 4.5 and 4.0, both gave me the same error.  Could any one give me a solution?

Thank you in advance,

Ella


Ajax button call inside a MVC grid

$
0
0

In a MVC grid i have an edit button to edit the details.But when i am clicking on the button im unable to call the method.

<script>
    function updatecall(id) {
        alert(id);$.ajax({
            url: '@Url.Action("edit", "PhoneBook")',
            cache: false,
            data: {
                'id': id
            },
            success: function (result) { },
            error: function (result) { }
        })
    }</script><b><a href=@Url.Action("edit", "PhoneBook", new { id = d.MObileNUmber }) title="Edit" >Edit</a><a href="#Delete" id="Delete_pop" onclick="Delete(@d.MObileNUmber)">Delete</a></b>);

Page Post Back issue for Asp Repeater in Update Panel

$
0
0

I am using two repeater controls one to show database table records and one to show custom paging that i developed to display paging like 1 2 3 4 ... 

i kept both the repeater controls inside asp update panel when i click paging numbers like 1 or 2 or 3 so on the page gets posted back but there are some other buttons inside the same update panel and when i click those buttons the page does not post back but i want to stop post back when i click any page number as well.

Please suggest what can i do to stop page post back when i click on paging numbers  

Getting changed value from modalpopupextender

$
0
0

Hi,

I need to use modalpopupextender to confirm some value in my webform and perform some action.

User can change some value in textbox on modalpopupextemder and apply mod.

Problem is that when execute server side function, text box value in modalpopupextender was some before change.

There is a way to get changed value in control on modalpopupextender?

<tk:ModalPopupExtender ID="mp1" runat="server" PopupControlID="Panl1" TargetControlID="cmdInizioLavoro"
        CancelControlID="cmdAnnulla"  BackgroundCssClass="Background" DropShadow="True"  ></tk:ModalPopupExtender><asp:Panel ID="Panl1" runat="server" CssClass="Popup" align="center" style="display:none">            <div style="background-color: ButtonFace;border-color:black; border-style:outset;height:290px;width:400px" class="content-box-header">            <br />            <asp:Label runat="server" ID="Label85" Text="CONFERMA DATI" Font-Bold="true" ></asp:Label><br /><br /><asp:Label runat="server" ID="Label62" Text="Seriale" AssociatedControlID="txtSeriale" meta:resourcekey="Label8Resource1"></asp:Label><asp:TextBox runat="server" CssClass="text-input large-input" Autocomplete="Off"  ID="txtSeriale" ></asp:TextBox><br/><asp:Label runat="server" ID="Label86" Text="Modello" AssociatedControlID="txtModello" meta:resourcekey="Label2Resource1"></asp:Label><asp:TextBox runat="server" CssClass="text-input large-input" Autocomplete="Off"  ID="txtModel" ></asp:TextBox><br/><br/><asp:Label runat="server" ID="Label87" Text="Modello" AssociatedControlID="txtAccessories" meta:resourcekey="Label10Resource1"></asp:Label><asp:TextBox runat="server" CssClass="text-input large-input" Autocomplete="Off"  ID="txtAccessories" ></asp:TextBox><div style="float:right;padding-right:20px;padding-top:20px"><asp:Button ID="cmdAnnulla" runat="server" Text="Annulla"  CssClass="button" CausesValidation="false" /><asp:Button ID="cmdConferma" runat="server" Text="Conferma" CssClass="button" CausesValidation="false" OnClick="cmdConferma_Click"/></div>            </div></asp:Panel><asp:Button runat="server" ID="Button1" Text="Inizio lavoro" CausesValidation="False" style="float: right; margin: 5px" CssClass="button" meta:resourcekey="cmdInizioLavoroResource1" />

And my server side code

 Protected Sub cmdConferma_Click(sender As Object, e As EventArgs) Handles cmdConferma.Click

        Dim AccessoriMod As Boolean
        Dim SerialeMod As Boolean
        Dim ModelloMod As Boolean

        If txtAccessori.Text <> txtAccessories.Text Then
            AccessoriMod = True
        End If

        If txtModel.Text <> txtModello.Text Then
            ModelloMod = True
        End If

        If txtSeriale.Text = txtSerialNumber.Text Then
            SerialeMod = True
        End If

        If ModelloMod Or AccessoriMod Or SerialeMod Then
          ' execute update in DB
        End If

End  Sub

Stop modalpopup until i click yes or no

$
0
0
dear sir

I have created a messagebox using the ajax modalpopup
But when i show the modalpopup i want it to stay and do not execute the code which are written after the line where i am using modalpopup.show();

And when user click yes or no on the modalpopup it executes the line afterward bcos the input which user gives on that modalpopup decides what to do next

Thanks please reply

Sending large number of data in JSON form

$
0
0

Hello Developers, 

 I am working on Asp.Net MVC application and I have incorporated JSON term in this.  There is a form which is having 50 text boxes and I need to send value of all those text boxes to a controller in the form of JSON. In a nutshell, I need to send entire form a view to a controller using AJAX so that I may extract a  value of a specific control by using Key ( Name attricute) .

Could you please let me know how can I accomplish that?

Looking forward to hear asap.

Best Regards,

Sukhdeep

AJAX History Points Lost When Returning to Previous Page

$
0
0

I am attempting to retrofit a web application that had a rudimentary,
yet mostly effective navigation infrastructure that, when properly
utilized, allowed navigating forward and backward through AJAX states
and other pages through the use of additional <asp:Button> objects
labeled "Back" to perform special code for restoring previous states.
There was an elaborate stack push and pop algorithm for this.  The
effect was very similar to what is described in Diagram 1 (AStatex
refers to an AJAX related state of the page).  The reason for this is
so that it takes away the reliance on the contrived Back button and so
that accidentally hitting the browser's back button or hitting the
Backspace key won't cause a loss of state.

Diagram 1
Page1 -> Page2.AState1 -> Page2.AState2 -> Page2.AState3 -> Page3
Using contrived Back button
Page3 -> Page2.AState3 -> Page2.AState2 -> Page2.AState1 -> Page1

The intent is to utilize the ASP.NET 3.5 ability to add history points
via the bookmarking feature of the browser.  I have read a non-trivial
amount about this technique, however the problem I am experiencing is
that when either redirecting to a new page, performing a cross-page
postback, or some other way of leaving a page, the history points
programatically added for the previous page are now lost, causing the
previous page's AJAX state history to be lost.   All pages that will implement this will implement an INavigableWebForm interface that requires some key methods.  I have the one and only ScriptManager object in the Master Page and the Master Page handles OnNavigate event by then calling one of those interface methods in the page to restore values to controls and handle hiding or displaying controls.

Referring to Diagram 2, I can return to Page2 with the last state
restored, but if
I hit the browser's back button again, it takes me back to Page1 instead of the previous state on Page2.

Diagram 2
Page1 -> Page2.AState1 -> Page2.AState2 -> Page2.AState3 -> Page3
Using AJAX History Points, the ScriptManager.OnNavigate method and
Browser's back button
Page3 -> Page2.AState3 -> Page1

I had thought about attempting to use a combination of pushing state
information onto the original stack object so that it could be
restored in instances of navigating back to a different page, such as
Page2 and somehow have all of the browser's history points remaining
intact for Page2.  The problem is that you cannot sporadically (or
asynchronously) add history points, so even if I had the ability to
retrieve the history from data popped from the stack, I can't repopulate the missing
history points.

Is there a way to prevent the loss of the previous page's history
points?

AJAX Installation and Versions

$
0
0

Hi,

1. Could some one explain what is the difference between the Ajax Extensions, Ajax Library and Ajax Toolkit.

2. As I remember, I was working few years ago on Ajax Toolkit and I didn't remember installing Ajax Extensions or Ajax library separately.
If we install Ajax Control Toolkit, do we get all the features of Ajax Extensions and Ajax Library? i.e., is Ajax Control Toolkit a super set of all of those?

3. I heard the words:

a. ASP.NET AJAX,
b. ASP.NET AJAX Extensions,
c. ASP.NET 2.0 AJAX Extensions 1.0,
d. ASP.NET AJAX Extensions 1.0, etc.

What is the real difference between each of them?

4. Also, I remember observing the standard ajax controls in latest Visual Studio versions by default (at least recollecting observed from VS 2010)
   So, do we need to install Ajax Control Toolkit on top of it or is that getting deployed along with VS?

5. Could someone explain what is the difference between

https://www.microsoft.com/en-us/download/details.aspx?id=971 andhttps://www.microsoft.com/en-pk/download/details.aspx?id=883

I've gone through http://www.asp.net/ajax/documentation/live/installingaspnetajax.aspx to get some information on this but couldn't get quite much if this is the latest one or, do we need to refer codeplex website for the recent information.


Editor ajaxcontroltoolkit is not working correctly in IE 6.0 windows servere 2003 R2

$
0
0

I used Editor AJAXTOOLKIT in vs2008 on windows7  IE11 ,this is working correctly 

Show me Editor and the text place So,I can write  write the text in Editor.content

But I run my application in IE 6.0 Windows server 2003 R2  and Show me the editor but,

I can not write any text in editor because , the text place does not show me  in editor

how can I do ,please help me ?

How to Change the Value of Label and Display a Div

$
0
0

Hi Friends, I have designed a page to register employee.

Please go through the code of Page: -

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"><script src="javascripts/jquery-1.7.1.min.js" type="text/javascript"></script><script src="javascripts/jquery.hashchange.js" type="text/javascript"></script><script src="javascripts/jquery.easytabs.js" type="text/javascript"></script><link rel="Stylesheet" href="css/css/button.css" /><link rel="Stylesheet" href="css/menu.css" /><link rel="Stylesheet" href="css/base.css" /><link rel="Stylesheet" href="css/etab.css" /><%--<script src="js/jquery-1.11.1.min.js" type="text/javascript"></script>--%>   <!--Responsive--><meta name="viewport" content="width=device-width, initial-scale=1"/>   <!--Responsive--><script type="text/javascript">
        function PrintThis() {
            document.getElementById("RegisterEmp").style.display = "none";
            document.getElementById("btnPrint").style.display = "none";
            document.title = 'Employee Registration Number';
            window.print();
            document.getElementById("RegisterEmp").style.display = "block";
            document.getElementById("btnPrint").style.display = "block";
        }</script><script type="text/javascript">
        function register() {
            var name = document.getElementById("txtName").value;
            var gender = document.getElementById("ddlGender").value;
            var dob = document.getElementById("txtDOB").value;
            var mobile = document.getElementById("txtMobile").value;
            var url = "registerEmp.aspx?name=" + name + "&gender=" + gender + "&dob=" + dob + "&mobile=" + mobile;
            //alert(url);
            var search = new XMLHttpRequest();
            search.open("get", url, true);
            search.onreadystatechange = function () { f2(search); };
            search.send(null);
        }
        function f2(search) {
            if (search.readyState != 4)
                return;
            var id = search.responseText;$('#lblMessage').val('Registration Successfull.');$('#PrintReg').show(); $('#lblRegNo').val(id);
            //document.getElementById("lblMessage").innerHTML = "Registration Successfull.";
            //document.getElementById("PrintReg").style.display = "block";
            //document.getElementById("lblRegNo").innerHTML = id;
        }</script></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"><div class="tab-container" id="outer-container"><ul class='etabs'><li class='tab'><a href="#Add_Admin">Add Admin</a></li><li class='tab'><a href="#Add_Employee">Add Employee</a></li><li class='tab'><a href="#nested-tab-3">Contains more tabs</a></li></ul><div class="panel-container"><div id="Add_Admin"><h2>Heading 1</h2><p>This is the content of the first tab.</p></div><div id="Add_Employee"><div class="tab-container" id="inner-container-emp"><ul class='etabs'><li class='tab'><a href="#Register_Employee">Register Employee</a></li><li class='tab'><a href="#Create_Login_ID">Create Log-in ID</a></li></ul> <br /> <br /><div id="Register_Employee" style="text-align:left;">     <!--Contact Form-->  <br />    <div id="RegisterEmp"><form method="get" onsubmit="register()"><table><tr><td><input type="text" id="txtName" name="txtName" class="tb" required placeholder="Name *" title="Employee Name"/></td></tr><tr><td><br /></td></tr><tr><td><select id="ddlGender" class="ddl" required title="Employee Gender"><option value="Male" title="Male">Male</option><option title="Female" value="Female">Female</option></select></td></tr><tr><td><br /></td></tr><tr><td><input id="txtDOB" class="tb" required type="text" pattern="\d{1,2}-\d{1,2}-\d{4}" placeholder="Date of Birth *" title="DD-MM-YYYY"/></td></tr><tr><td><br /></td></tr><tr><td><input id="txtMobile" class="tb" required placeholder="Mobile *" type="tel" pattern="^\d{2}-\d{10}$" title="Write like 91-xxxxxxxxxx"/></td></tr><tr><td><br /></td></tr><tr><td><input type="submit" class="myButton" id="btnSave" title="Save" value="Save"/></td></tr><tr><td><br /></td></tr><tr><td><label id="lblMessage">hello!!</label></td></tr></table> </form> </div>  <div id="PrintReg" style="display:none;"><table><tr><td colspan="2">Please Keep Safe Your Registration Number!!</td></tr><tr><td>Registration No. is: </td><td><label id="lblRegNo" style="text-transform:lowercase;"></label></td></tr><tr><td colspan="2"><input type="button" class="myButton" value="Print" title="Print" id="btnPrint"  onclick="PrintThis()" /></td></tr></table>    </div><!-- content --></div>  <div id="Create_Login_ID"><p style="color:#ffffff;font-size:1.2em; font-weight:normal; font-family:Consolas;float:left; font-style: normal;"></p>  <!-- content --> <iframe src="LoginID.aspx" width="900px" frameborder="0" height="500px" scrolling="no"></iframe> <!-- content --> </div></div></div><div id="nested-tab-3"><h2>Heading 3</h2><p>More stuff from the last tab.</p><div class="tab-container" id="inner-container"><ul class='etabs'><li class='tab'><a href="#tab-a">Subtab A</a></li><li class='tab'><a href="#tab-b">Subtab B</a></li><li class='tab'><a href="#tab-c">Subtab C</a></li></ul><div class="panel-container"><div id="tab-a"><h3>Heading A</h3><p>This is a nested first tab</p></div><div id="tab-b"><h3>Heading B</h3><p>This is a nested second tab</p></div><div id="tab-c"><h3>Heading C</h3><p>This is a nested third tab</p></div></div><br /></div></div></div></div><script type="text/javascript">$('#outer-container, #inner-container, #inner-container-emp').easytabs();</script></asp:Content>

code of registerEmp.aspx is given below: -

 protected void Page_Load(object sender, EventArgs e)
    {
        string name= Request.QueryString["name"];
        string gender = Request.QueryString["gender"];
        string dob = Request.QueryString["dob"];
        string mobile = Request.QueryString["mobile"];
        string result = Utility.RegisterEmployee(name, gender, dob, mobile);
        Response.Write(result);        
    }

With the help of this code my data is being saved to database but I am unable to get the "Employee Registration Number", which is coming form "registerEmp.aspx" page. i.e. Response.Write(result);

As You see the code, I wanted to display my hidden div "PrintReg" after the successfull registration of employees. and Registration number should also be printed against HTML Label.

But Unable to do all these.

If there is any other best way possible to do all these things, then please suggest me.

But also give the suggestion to do all the things.

Thank You.

How to correct this web config file inorder to add ajax calendar in content page?

$
0
0

How to modify this piece of code in web config ? it gives runtime error since i didnt merge them.

<pages><namespaces><add namespace="System.Web.Optimization" /></namespaces><controls><add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" /></controls></pages><pages><controls><add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" /><add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="asp" /></controls></pages>

Also how to find out Publickey token? I tried sn.exe -T System.Web.UI.dll  in command prompt but it shows sn command is invalid.

AjaxControlToolkit CalendarExtender not working after publish

$
0
0

I am using the AjaxControlToolkit CalendarExtender in my web site and its working in the visual studio 2012 but after publish to IIS Calendar Extender control won't show !

asp.net code :

<asp:TextBoxID="txtFrom"runat="server"Width="200"></asp:TextBox><asp:ImageID="image1"runat="server"ImageUrl="~/Image/calendar.png"/><ajaxToolkit:CalendarExtenderID="Calendar1"runat="server"TargetControlID="txtFrom"Format="dd.MM.yyyy"Enabled="true"PopupButtonID="image1"CssClass="cal_Theme1"></ajaxToolkit:CalendarExtender>

Web.config :

<configuration><configSections><!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --><sectionname="entityFramework"type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"requirePermission="false"/></configSections><connectionStrings><addname="DefaultConnection"connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\aspnet-RechnungProgramm-20140827102620.mdf;Initial Catalog=aspnet-RechnungProgramm-20140827102620;Integrated Security=True"providerName="System.Data.SqlClient"/><addname="RechnungConnectionString"connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\Rechnung.mdf;Integrated Security=True"providerName="System.Data.SqlClient"/></connectionStrings><system.web><authenticationmode="None"/><compilationdebug="true"targetFramework="4.5"><assemblies><addassembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/><addassembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><addassembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation><httpRuntimetargetFramework="4.5"/><pages><namespaces><addnamespace="System.Web.Optimization"/><addnamespace="Microsoft.AspNet.Identity"/></namespaces><controls><addassembly="Microsoft.AspNet.Web.Optimization.WebForms"namespace="Microsoft.AspNet.Web.Optimization.WebForms"tagPrefix="webopt"/><addtagPrefix="ajaxToolkit"assembly="AjaxControlToolkit"namespace="AjaxControlToolkit"/></controls></pages><membership><providers><!--
          ASP.NET Membership is disabled in this template. Please visit the following link http://go.microsoft.com/fwlink/?LinkId=301889 to learn about the ASP.NET Membership support in this template
        --><clear/></providers></membership><profile><providers><!--
          ASP.NET Membership Profile is disabled in this template. Please visit the following link http://go.microsoft.com/fwlink/?LinkId=301889 to learn about the ASP.NET Membership support in this template
        --><clear/></providers></profile><roleManager><!--
            ASP.NET Membership Role is disabled in this template. Please visit the following link http://go.microsoft.com/fwlink/?LinkId=301889 to learn about the ASP.NET Membership support in this template
        --><providers><clear/></providers></roleManager><!--
            If you are deploying to a cloud environment that has multiple web server instances,
            you should change session state mode from "InProc" to "Custom". In addition,
            change the connection string named "DefaultConnection" to connect to an instance
            of SQL Server (including SQL Azure and SQL  Compact) instead of to SQL Server Express.
      --><sessionStatemode="InProc"customProvider="DefaultSessionProvider"><providers><addname="DefaultSessionProvider"type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"connectionStringName="DefaultConnection"/></providers></sessionState></system.web><system.webServer><modules><removename="FormsAuthenticationModule"/></modules><handlers><addname="ScriptResource"preCondition="integratedMode"verb="GET,HEAD"path="ScriptResource.axd"type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/></handlers></system.webServer><runtime><assemblyBindingxmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentityname="WebGrease"culture="neutral"publicKeyToken="31bf3856ad364e35"/><bindingRedirectoldVersion="0.0.0.0-1.5.2.14234"newVersion="1.5.2.14234"/></dependentAssembly><dependentAssembly><assemblyIdentityname="Microsoft.WindowsAzure.Storage"publicKeyToken="31bf3856ad364e35"culture="neutral"/><bindingRedirectoldVersion="0.0.0.0-2.1.0.4"newVersion="2.1.0.4"/></dependentAssembly><dependentAssembly><assemblyIdentityname="HtmlAgilityPack"publicKeyToken="bd319b19eaf3b43a"culture="neutral"/><bindingRedirectoldVersion="0.0.0.0-1.4.9.0"newVersion="1.4.9.0"/></dependentAssembly></assemblyBinding></runtime><entityFramework><defaultConnectionFactorytype="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"><parameters><parametervalue="v11.0"/></parameters></defaultConnectionFactory><providers><providerinvariantName="System.Data.SqlClient"type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/></providers></entityFramework></configuration>

and master page ScriptManager :

<formrunat="server"><ajaxToolkit:ToolkitScriptManagerrunat="Server"EnableScriptGlobalization="true"EnableScriptLocalization="true"ID="ScriptManager1"ScriptMode="Debug"CombineScripts="false"><Scripts><%--To learn more about bundling scripts inScriptManager see http://go.microsoft.com/fwlink/?LinkID=301884 --%><%--FrameworkScripts--%><asp:ScriptReferenceName="jquery"/><asp:ScriptReferenceName="bootstrap"/><asp:ScriptReferenceName="respond"/><asp:ScriptReferenceName="WebForms.js"Path="~/Scripts/WebForms/WebForms.js"/><asp:ScriptReferenceName="WebUIValidation.js"Path="~/Scripts/WebForms/WebUIValidation.js"/><asp:ScriptReferenceName="MenuStandards.js"Path="~/Scripts/WebForms/MenuStandards.js"/><asp:ScriptReferenceName="GridView.js"Path="~/Scripts/WebForms/GridView.js"/><asp:ScriptReferenceName="DetailsView.js"Path="~/Scripts/WebForms/DetailsView.js"/><asp:ScriptReferenceName="TreeView.js"Path="~/Scripts/WebForms/TreeView.js"/><asp:ScriptReferenceName="WebParts.js"Path="~/Scripts/WebForms/WebParts.js"/><asp:ScriptReferenceName="Focus.js"Path="~/Scripts/WebForms/Focus.js"/><asp:ScriptReferenceName="WebFormsBundle"/><%--SiteScripts--%></Scripts></ajaxToolkit:ToolkitScriptManager>

using AjaxControlToolkit.dll Version 4.5.7.1213 , and i checked AjaxControlToolkit dll was in the bin folder 

How can i fix this ?

Ajaxcontroltoolkit source code for .Net 4.0 and visual studio 2010

$
0
0
    • Hi,

      I am using AJAX Control Toolkit - May 2011 Release Version 50508 with .Net framework v4 and Visual studio 2010.

      I made couple of changes to the source code of Calendarextendar (start date, end date, some date format changes).

      Now I want to use the HTMLEditor available in Toolkit but its not available in the release I am using so I thought of upgrading to the more recent release and to my surprise I could not find the source code compatible with VS 2010.

      I tried downloading the latest code and changed the solution file version from 12 to 11 but it still crashes the VS2010.

      Microsoft Visual Studio Solution File, Format Version 11.00 Can any one please help me get the latest code for VS2010 so I can use HTMLEditor and make custom changes to CalendarExtendar?

      Thanks!!!

Viewing all 5678 articles
Browse latest View live




Latest Images