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

Can I place button Target Control ID outside the Update Panel of Modal Popup in asp.net?

0
0

I have a button inside grid view. What I want to do is to show a modal popup when I click that button.

Since, I cannot place the modal popup extender inside the gridview I am placing it outside of gridview. Because I am placing it outside the gridview the gridview button has no access to it. For this I created a dummy button outside the gridview and calling the modal popup from the click event of Gridview button.

Let me show you my Grid view(Its telerik)

<telerik:RadGrid ID="GridView2" runat="server" AutoGenerateColumns="false" Width="400"
                    GridLines="None" ><MasterTableView ><Columns><telerik:GridBoundColumn DataField="fname" HeaderText="First Name" /><telerik:GridBoundColumn DataField="mname" HeaderText="Middle Name" /><telerik:GridBoundColumn DataField="lname" HeaderText="Last Name" /><telerik:GridTemplateColumn><ItemTemplate><asp:CheckBox ID="checkselect" runat="server" /></ItemTemplate><HeaderTemplate><asp:Button ID="Button4" runat="server" Text="Remove"  CommandName="Split" OnClick="Button4_Click" /></HeaderTemplate></telerik:GridTemplateColumn></Columns></MasterTableView ></telerik:RadGrid></div></td></tr></ItemTemplate></telerik:GridTemplateColumn></Columns></MasterTableView></telerik:RadGrid>



Now my modal popup

<asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate><asp:Button ID="Button5" runat="server" Text="Button" style="display:none"/><asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="Button5" CancelControlID="Button1" PopupControlID="Panel1"></asp:ModalPopupExtender><asp:Panel ID="Panel1" runat="server" Height="65px" style="display:none" ><p>
    Thank You for Removing records</p></asp:TextBox> <asp:Button ID="Button3" runat="server" Text="Submit"  /><asp:Button ID="Button1" runat="server" Text="Cancel" /></asp:Panel></ContentTemplate></asp:UpdatePanel>

The problem is when I am clicking the gridview button( Button4) it is throwing me Invalid Postback error. I think thats because I am placing the Modalpopup inside update panel and gridview outside. Can someone tell me how to deal with this issue? I cannot place the Gridview inside the update panel because it is stopping the button click event which is causing the modal popup extender to show.

I would truly appreciate if someone can tell me how to deal with this problem? Also, I tried without updatepanel but it still gives me Invalid Post Back Error. 

Button Click Event:

protectedvoidButton4_Click(object sender,EventArgs e){ModalPopupExtender1.Show();}

Insert image in HTMLEditorExtender

0
0

Hi,

Can we add Insert image button in HTMLEditorExtender tool bar.

Please suggest.

Error The GridView fired event PageIndexChanging which wasn't handled

0
0

Hi,

I set paging in grid view control but got error when clicked on paging number below the grid.

Error:

The GridView 'Grid_part_stock' fired event PageIndexChanging which wasn't handled.
Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[HttpException (0x80004005): The GridView 'Grid_part_stock' fired event PageIndexChanging which wasn't handled.]
   System.Web.UI.WebControls.GridView.OnPageIndexChanging(GridViewPageEventArgs e) +1464505
   System.Web.UI.WebControls.GridView.HandlePage(Int32 newPage) +62
   System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +408
   System.Web.UI.WebControls.GridView.RaisePostBackEvent(String eventArgument) +210
   System.Web.UI.WebControls.GridView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +176
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563




CK Editor Not Working with MultiView and UpdatePanel

0
0

Very strange issue with CK Editor. It works fine with update panel in a single page but When use the MultiView control it doesn't work.

I searched for the solution but didn't found any solution.

Downloaded latest CK editor files from: http://ckeditor.com/

Code Below. 

<%@ Page Title="CK Editor Demo" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="ck.aspx.cs" Inherits="ck" %><asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server"><script src="ckeditor/ckeditor.js"></script></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="Server"><section class="featured"><div class="content-wrapper"><hgroup class="title"><h1><%: Title %>.</h1></hgroup><p>
                CK Editor Demo with Update Panel</p></div></section></asp:Content><asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="Server"><asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate><asp:MultiView ID="mvEditor" runat="server" ActiveViewIndex="0"><asp:View ID="v1" runat="server"><asp:Button ID="btnAdd" runat="server" Text="Add New" OnClick="btnAdd_Click" /><asp:Button ID="btnEdit" runat="server" Text="Edit" OnClick="btnEdit_Click" /></asp:View><asp:View ID="v2" runat="server"><asp:Button ID="btnBack" runat="server" Text="Back" OnClick="btnBack_Click" /><asp:TextBox ID="txtEditor1" runat="server" TextMode="MultiLine"></asp:TextBox></asp:View></asp:MultiView><script type="text/javascript">
                $(function () {
                    CKEDITOR.replace('<%= txtEditor1.ClientID %>', { width: '100%', height: '200px', toolbar: "Basic" });
                });</script></ContentTemplate></asp:UpdatePanel></asp:Content>

protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        { }
    }
    protected void btnAdd_Click(object sender, EventArgs e)
    {
        mvEditor.ActiveViewIndex = 1;
        txtEditor1.Text = "";
    }
    protected void btnEdit_Click(object sender, EventArgs e)
    {
        mvEditor.ActiveViewIndex = 1;
        txtEditor1.Text = "Bingoo!!!";
    }
    protected void btnBack_Click(object sender, EventArgs e)
    {
        txtEditor1.Text = "";
        mvEditor.ActiveViewIndex = 0;        
    }

Any help must be appreciated.

Masked Edit Validator making the wrong validation

0
0

Hi, 

I have the above wrongly validating an entered date WHEN the 'day' part of the day is greater than 12; so for example: 

07/03/2012 validates is ok; 

13/03/2012 is validated is 'Invalid'. 

It is as if the validator is thinking that the day part is the month and that month part is the day. 

My Mask is 99/99/9999 and the date format is dd/MM/yyyy (on the calendar). 

here is the code: 

<tr>
<td>
Date Due: *
</td>
<td>
<asp:TextBox ID="txtDateDue" runat="server" Width="110"></asp:TextBox>
<ajaxToolkit:CalendarExtender ID="txtDateDue_CalendarExtender" Format="dd/MM/yyyy" runat="server" Enabled="True" PopupButtonID="txtDateDue" TargetControlID="txtDateDue">
</ajaxToolkit:CalendarExtender>
</td>
<td>
<ajaxToolkit:MaskedEditExtender ID="meDateDue"
runat="server"
TargetControlID="txtDateDue"
Mask="99/99/9999"
MaskType="Date" CultureName=""
MessageValidatorTip="true" />
<ajaxToolkit:MaskedEditValidator ID="mvDateDue"
runat="server"
ControlToValidate="txtDateDue"
ControlExtender="meDateDue"
Display="Dynamic" ValidationGroup="valGroupInsert"
IsValidEmpty="true"
EmptyValueMessage="A Date is Required"
InvalidValueMessage="Invalid." />
<asp:RequiredFieldValidator ID="valDateDue" ControlToValidate="txtDateDue" ValidationGroup="valGroupInsert" InitialValue="" runat="server" Display="Dynamic" ErrorMessage="Required."></asp:RequiredFieldValidator>
</td>
</tr>

Could you please suggest a solution for this problem.. 

Thank you . 

ToolkitScriptManager error using W3C validation service

0
0

hello,

i have been trying to figure out why i recieve these errors from the W3C Markup Validation Service.  to access this tool, i select F12>Validate>HTML tool in IEv10.

the errors i receive look like this:

document type does not allow element X here; missing one of Y start-tag

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

•Line 10, column 102: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag …tScriptManager1_HiddenField" id="ToolkitScriptManager1_HiddenField" value="" />

•Line 11, column 562: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag …...h7Wv" />

•Line 16, column 56: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag …type="hidden" name="__VIEWSTATEENCRYPTED" id="__VIEWSTATEENCRYPTED" value="" />

•Line 17, column 102: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag …...aQBk1" />

•Line 28, column 167: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag …...CE=" />

does anyone have an idea why this occurs?

 

why updateProgress doesn't show?

0
0

Hi ;

I have a fileUpload and a button  and a gridView in my page .

I wanna have a update progress for uploading image . 

but the updateProgress doesn't show . I don't know why .

this is my code:

<div id="wrapper" style="margin:0px auto;border:1px dashed black;width:40%;padding:10px;text-align:center;"><asp:FileUpload ID="FileUpload1" runat="server" /><asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" /><asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="p1" DynamicLayout="true" DisplayAfter="100"><ProgressTemplate><p id="Label1">Wait...</p></ProgressTemplate></asp:UpdateProgress><asp:UpdatePanel runat="server" ID="p1"><ContentTemplate><div id="showData" style="text-align:left; width:85%;margin:0px auto;"><h1>Uploaded Images</h1><asp:GridView ID="GridView1" runat="server" CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None"><AlternatingRowStyle BackColor="White" /><EditRowStyle BackColor="#2461BF" /><FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /><HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /><PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" /><RowStyle BackColor="#EFF3FB" /><SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" /><SortedAscendingCellStyle BackColor="#F5F7FB" /><SortedAscendingHeaderStyle BackColor="#6D95E1" /><SortedDescendingCellStyle BackColor="#E9EBEF" /><SortedDescendingHeaderStyle BackColor="#4870BE" /></asp:GridView></div></ContentTemplate></asp:UpdatePanel></div>

and this is my code behind: 

if (FileUpload1.HasFile)
            {
                string path = Server.MapPath("Images\\Posts\\");
                FileUpload1.PostedFile.SaveAs(path+FileUpload1.PostedFile.FileName);

                SqlDataSource1.InsertCommandType = SqlDataSourceCommandType.Text;
                SqlDataSource1.InsertCommand = "Insert Into Images(ImageName,ImageSize) Values(@imgName,@imgSize)";
                
                SqlDataSource1.InsertParameters.Add("@imgName", FileUpload1.PostedFile.FileName);
                SqlDataSource1.InsertParameters.Add("@imgSize", FileUpload1.PostedFile.ContentLength.ToString());

                SqlDataSource1.Insert();

                System.Threading.Thread.Sleep(5000);//for update Progress test .
                GridView1.DataBind();
                
            }

whats my wrong ?

Autocompleteextender for dynamically created textboxes

0
0

hi all!
am using ajax AutoCompleteExtender for the textbox in my asp.net2.0 page with c#, which is working fine.

in certain page am creating a number of textboxes at runtime where the no of textboxes will get vary for the selected options.

i want to implement the AutoCompleteExtender for the textboxes which is created dynamically.

i dont know how to create the AutoCompleteExtender & assign to the targetid at runtime.

can anyone guide me to do the same.


Tanks inadvance ..


Hide and Display of TabPanel in TabContainer

0
0

I'm trying to hide the TabPanel4 when the application start, then when user select specific item from the dropdownlist it then display the TabPanel4 out for the user. Below is the code I used, not sure why it not working. Do help me take a look at my code see which part did I do wrongly. Thanks!

Aspx

<asp:TabContainer ID="TabContainer1" runat="server" Height="75%" Width="100%" UseHorizontalStripPlacement="true"
    ActiveTabIndex="0" OnDemand="true" AutoPostBack="true" TabStripPlacement="Top" ScrollBars="Auto"><asp:TabPanel ID="TabPanel1" runat="server" HeaderText="Incident Information" Enabled="true" ScrollBars="Auto" OnDemandMode="Once"><ContentTemplate><table width="100%"><tr><td><b>Type of crime:</b><asp:DropDownList ID="ddlToC" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlToC_SelectedIndexChanged"><asp:ListItem>Accident</asp:ListItem><asp:ListItem>Theft</asp:ListItem><asp:ListItem>Robbery</asp:ListItem><asp:ListItem>Housebreaking</asp:ListItem><asp:ListItem>Fraud</asp:ListItem><asp:ListItem>Loan Shark</asp:ListItem></asp:DropDownList><br /></td></tr></table></ContentTemplate></asp:TabPanel><asp:TabPanel ID="TabPanel4" runat="server" HeaderText="Property" Enabled="true" ScrollBars="Auto" OnDemandMode="Once" Visible="false"><ContentTemplate>
            Is there any property lost in the incident?<asp:RadioButton ID="rbPropertyYes" runat="server" GroupName="rbGroup3" Text="Yes" AutoPostBack="True" /><asp:RadioButton ID="rbPropertyNo" runat="server" GroupName="rbGroup3" Text="No" AutoPostBack="True" /><br /><br /><asp:Label ID="Label4" runat="server" Text="Describe what was lost in the incident." Visible="False"></asp:Label><br /><br /><asp:TextBox ID="txtProperty" runat="server" Height="75px" TextWrapping="Wrap" TextMode="MultiLine" Width="400px" Visible="False"/><br /><br /><asp:Label ID="Label5" runat="server" Text="You have " Visible="False"></asp:Label><asp:Label ID="lblCount3" runat="server" Text="500" Visible="False"></asp:Label>&nbsp;<asp:Label ID="Label6" runat="server" Text=" characters left." Visible="False"></asp:Label></ContentTemplate></asp:TabPanel></asp:TabContainer>

Code behind

protected void ddlToC_SelectedIndexChanged(object sender, EventArgs e)
{
if (ddlToC.SelectedValue.Equals("Theft"))
{
TabPanel4.Visible = true;
}
else if (ddlToC.SelectedValue.Equals("Robbery"))
{
TabPanel4.Visible = true;
}
else if (ddlToC.SelectedValue.Equals("Housebreaking"))
{
TabPanel4.Visible = true;
}
else if (ddlToC.SelectedValue.Equals("Fraud"))
{
TabPanel4.Visible = true;
}
}

To add on: even I take away the Visible="false" from the aspx page and set it in code behind page under Page_Load it don't work, it still don't appear when I select the item in the dropdownlist. Also tried using 

TabContainer1.Tabs[3].Visible = false / true;
 to hide or display it but it also don't seem to work.

How can the Ajax calendar control show a monthly schedule-style view?

The type 'System.Web.UI.ScriptManager' exists in both..

0
0

Hello i have upgrated my 2005 vs application to 2008 vs. But when i am executing my application i am getting this error.

CS0433: The type 'System.Web.UI.ScriptManager' exists in both 'c:\Users\Badar\AppData\Local\Temp\Temporary ASP.NET Files\mobily_alexmar\38ec3ccb\18941eb9\assembly\dl3\8d4d8927\00968a0d_72dbc801\System.Web.Extensions.DLL' and 'c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll'

in my master page i have script manager

<asp:ScriptManager ID="MainScriptManager" LoadScriptsBeforeUI="<%$ AppSettings:IsScriptBeforeUI %>"
Line 38:             runat="server" EnablePageMethods="True" ScriptMode="Release" EnablePartialRendering="<%$ AppSettings:IsAjaxEnabled %>">
Line 39:             <services>

here at the script manager i am getting that error.

Any suggestions please.

<?xml version="1.0"?><configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"><!-- FTP Settings:
	URL:        site375.mysite4now.com
	Username:   netwave2
	Password:   blueriver
	--><!-- Clickatell (Third party) Login detials
	URL:        http://www.clickatell.com/login.php?csite=clickatell
	Username:   sherif10
	Client ID:  HSA516
	Password:   sherif20
	--><!-- Custom locations security --><configSections><sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"><sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"><section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/><sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"><section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/><section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/><section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/><section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/></sectionGroup></sectionGroup></sectionGroup></configSections><location path="Pages/Setup"><system.web><clear/><add name="LocalSqlServer" connectionString="Data Source=H-PC\Sqlexpress;Initial Catalog=Mobily_Alexmar;Integrated Security=True"/><add name="alexmarConnectionString" connectionString="Data Source=H-PC\Sqlexpress;Initial Catalog=Mobily_Alexmar;Integrated Security=True"/><add name="mobily_alexmar_testConnectionString" connectionString="Data Source=H-PC\Sqlexpress;Initial Catalog=Mobily_Alexmar;Integrated Security=True"/><add name="mobily_alexmarConnectionString" connectionString="Data Source=H-PC\Sqlexpress;Initial Catalog=Mobily_Alexmar;Integrated Security=True" providerName="System.Data.SqlClient"/><add name="Excel07ConString" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;


            Data Source={0};Extended Properties='Excel 8.0;HDR={1}'"/><add name="conString" connectionString="Data Source=H-PC\Sqlexpress;Initial Catalog=Mobily_Alexmar;Integrated Security=True"/></connectionStrings><!-- Code for SMS and Email Configuration --><appSettings><clear/><add key="LocalSqlServer" value="Data Source=H-PC\Sqlexpress;Initial Catalog=dddd;Integrated Security=True; Connect Timeout=200;"/></appSettings><system.net><mailSettings></mailSettings></system.net><!-- End: Code for SMS and Email Configuration --><system.web><sessionState mode="InProc" timeout="60"></sessionState><customErrors mode="Off" defaultRedirect="~/Pages/Common/Messages.aspx?MessageID=500"><error statusCode="404" redirect="~/Pages/Common/Messages.aspx?MessageID=404"/><error statusCode="403" redirect="~/Pages/Common/Messages.aspx?MessageID=403"/></customErrors><membership defaultProvider="CustomProvider"><providers><add name="CustomProvider" type="Alexmar.CustomMembershipProvider"/></providers></membership><roleManager enabled="true" defaultProvider="CustomProvider"><providers><add name="CustomProvider" type="Alexmar.CustomRoleProvider"/></providers></roleManager><!--
			The <authentication> section enables configuration
			of the security authentication mode used by
			ASP.NET to identify an incoming user.
		--><authentication mode="Forms"><forms protection="All" defaultUrl="~/Pages/Common/index.aspx" loginUrl="~/Pages/Common/Login.aspx"></forms></authentication><authorization><deny users="?"/></authorization><trust level="Full" processRequestInApplicationTrust="true" originUrl=""/><pages pageBaseType="PageBase" enableSessionState="ReadOnly" validateRequest="false" compilationMode="Always" buffer="true" theme="default"><controls></pages><!--
			Set compilation debug="true" to insert debugging
			symbols into the compiled page. Because this
			affects performance, set this value to true only
			during development.
		--><compilation debug="true" batch="true"><assemblies><add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/><add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><!--<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>--><add assembly="Telerik.Web.UI, Version=2009.3.1208.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/><!--<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>--><add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies></compilation><!--
			The <customErrors> section enables configuration
			of what to do if/when an unhandled error occurs
			during the execution of a request. Specifically,
			it enables developers to configure html error pages
			to be displayed in place of a error stack trace.<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"><error statusCode="403" redirect="NoAccess.htm" /><error statusCode="404" redirect="FileNotFound.htm" /></customErrors>
		--><httpHandlers><add path="*.Netwave" verb="*" type="System.Web.UI.PageHandlerFactory" validate="true"/><add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/><add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/><add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/><add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/><add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/><remove verb="*" path="*.asmx"/><add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></httpHandlers><httpModules><add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></httpModules></system.web><!--
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    --><system.webServer><modules><remove name="ScriptModule"/><add name="CuteEditor.UploadModule" type="CuteEditor.UploadModule,CuteEditor"/><add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></modules><handlers><remove name="WebServiceHandlerFactory-Integrated"/><remove name="ScriptHandlerFactory"/><remove name="ScriptHandlerFactoryAppServices"/><remove name="ScriptResource"/><add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/><add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/><add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/><add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/><add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/><add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></handlers><validation validateIntegratedModeConfiguration="false"/></system.webServer><system.codedom><compilers><compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4"><providerOption name="CompilerVersion" value="v3.5"/><providerOption name="WarnAsError" value="false"/></compiler><compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4"><providerOption name="CompilerVersion" value="v3.5"/><providerOption name="OptionInfer" value="true"/><providerOption name="WarnAsError" value="false"/></compiler></compilers></system.codedom><runtime><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/><bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly><dependentAssembly><assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/><bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly></assemblyBinding></runtime></configuration>


 

Error: type 'System.Web.UI.ScriptManager' exists in extensions 3.5 and 3.6?

0
0

I am getting my feet wet with AJAX and I am unfortunately recieving the error below. Is it safe to turn off the 3.5 extensions? If not, how do I resolve this issue? Thank you for help!

 

(I am using Visual Studio 2008 Full Edition & ASP.NET 3.5)

 

Server Error in '/ContentManagement' Application.

Compilation Error

Description:An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0433: The type 'System.Web.UI.ScriptManager' exists in both 'c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll' and 'c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.6.0.0__31bf3856ad364e35\System.Web.Extensions.dll'

Source Error:


Line 23:     <form id="form1" runat="server">
Line 24: <div>
Line 25: <asp:ScriptManager ID="ScriptManager1" runat="server">
Line 26: </asp:ScriptManager>
Line 27: <br />

Source File: d:\ContentManagement\Default.aspx    Line: 25


<div class="expandable" onclick="OnToggleTOCLevel1('compilerOutputDiv')">Show Detailed Compiler Output:</div> <div id="compilerOutputDiv" style="display: none;">
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE> "C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe" /t:library /utf8output /R:"C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Data.Linq\3.5.0.0__b77a5c561934e089\System.Data.Linq.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Data.DataSetExtensions\3.5.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml.Linq\3.5.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.6.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Users\Chance\AppData\Local\Temp\Temporary ASP.NET Files\contentmanagement\e88e827c\5bf2f9a\App_Code.5rucwewo.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /out:"C:\Users\Chance\AppData\Local\Temp\Temporary ASP.NET Files\contentmanagement\e88e827c\5bf2f9a\App_Web_lr5f_ib5.dll" /D:DEBUG /debug+ /optimize- /win32res:"C:\Users\Chance\AppData\Local\Temp\Temporary ASP.NET Files\contentmanagement\e88e827c\5bf2f9a\lr5f_ib5.res" /w:4 /nowarn:1659;1699;1701 /warnaserror-  "C:\Users\Chance\AppData\Local\Temp\Temporary ASP.NET Files\contentmanagement\e88e827c\5bf2f9a\App_Web_lr5f_ib5.0.cs" "C:\Users\Chance\AppData\Local\Temp\Temporary ASP.NET Files\contentmanagement\e88e827c\5bf2f9a\App_Web_lr5f_ib5.1.cs" "C:\Users\Chance\AppData\Local\Temp\Temporary ASP.NET Files\contentmanagement\e88e827c\5bf2f9a\App_Web_lr5f_ib5.2.cs"


Microsoft (R) Visual C# 2008 Compiler version 3.5.21022.8
for Microsoft (R) .NET Framework version 3.5
Copyright (C) Microsoft Corporation. All rights reserved.

d:\ContentManagement\Default.aspx(25,37): error CS0433: The type 'System.Web.UI.ScriptManager' exists in both 'c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll' and 'c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.6.0.0__31bf3856ad364e35\System.Web.Extensions.dll'
c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll: (Location of symbol related to previous error)
c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.6.0.0__31bf3856ad364e35\System.Web.Extensions.dll: (Location of symbol related to previous error)
d:\ContentManagement\Default.aspx(28,37): error CS0433: The type 'System.Web.UI.UpdatePanel' exists in both 'c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll' and 'c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.6.0.0__31bf3856ad364e35\System.Web.Extensions.dll'
c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll: (Location of symbol related to previous error)
c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.6.0.0__31bf3856ad364e35\System.Web.Extensions.dll: (Location of symbol related to previous error)
c:\Users\Chance\AppData\Local\Temp\Temporary ASP.NET Files\contentmanagement\e88e827c\5bf2f9a\App_Web_lr5f_ib5.0.cs(344,39): error CS0433: The type 'System.Web.UI.ScriptManager' exists in both 'c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll' and 'c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.6.0.0__31bf3856ad364e35\System.Web.Extensions.dll'
c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll: (Location of symbol related to previous error)
c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.6.0.0__31bf3856ad364e35\System.Web.Extensions.dll: (Location of symbol related to previous error)
c:\Users\Chance\AppData\Local\Temp\Temporary ASP.NET Files\contentmanagement\e88e827c\5bf2f9a\App_Web_lr5f_ib5.0.cs(512,39): error CS0433: The type 'System.Web.UI.UpdatePanel' exists in both 'c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll' and 'c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.6.0.0__31bf3856ad364e35\System.Web.Extensions.dll'
c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll: (Location of symbol related to previous error)
c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.6.0.0__31bf3856ad364e35\System.Web.Extensions.dll: (Location of symbol related to previous error)

</div>
<div class="expandable" onclick="OnToggleTOCLevel1('dynamicCodeDiv')">Show Complete Compilation Source:</div> <div id="dynamicCodeDiv" style="display: none;">
Line 1:    #pragma checksum "D:\ContentManagement\Default.aspx" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "C5B345A52459BE777D9B926BE691DC5B"
Line 2:    //------------------------------------------------------------------------------
Line 3:    // <auto-generated>
Line 4:    //     This code was generated by a tool.
Line 5:    //     Runtime Version:2.0.50727.1433
Line 6:    //
Line 7:    //     Changes to this file may cause incorrect behavior and will be lost if
Line 8:    //     the code is regenerated.
Line 9:    // </auto-generated>
Line 10:   //------------------------------------------------------------------------------
Line 11:   
Line 12:   
Line 13:   
Line 14:   public partial class _Default : System.Web.SessionState.IRequiresSessionState {
Line 15:       
Line 16:       
Line 17:       #line 25 "D:\ContentManagement\Default.aspx"
Line 18:       protected global::System.Web.UI.ScriptManager ScriptManager1;
Line 19:       
Line 20:       #line default
Line 21:       #line hidden
Line 22:       
Line 23:       
Line 24:       #line 30 "D:\ContentManagement\Default.aspx"
Line 25:       protected global::System.Web.UI.WebControls.TextBox TextBox1;
Line 26:       
Line 27:       #line default
Line 28:       #line hidden
Line 29:       
Line 30:       
Line 31:       #line 31 "D:\ContentManagement\Default.aspx"
Line 32:       protected global::System.Web.UI.WebControls.Button Button1;
Line 33:       
Line 34:       #line default
Line 35:       #line hidden
Line 36:       
Line 37:       
Line 38:       #line 32 "D:\ContentManagement\Default.aspx"
Line 39:       protected global::System.Web.UI.WebControls.Label Label1;
Line 40:       
Line 41:       #line default
Line 42:       #line hidden
Line 43:       
Line 44:       
Line 45:       #line 28 "D:\ContentManagement\Default.aspx"
Line 46:       protected global::System.Web.UI.UpdatePanel UpdatePanel1;
Line 47:       
Line 48:       #line default
Line 49:       #line hidden
Line 50:       
Line 51:       
Line 52:       #line 23 "D:\ContentManagement\Default.aspx"
Line 53:       protected global::System.Web.UI.HtmlControls.HtmlForm form1;
Line 54:       
Line 55:       #line default
Line 56:       #line hidden
Line 57:       
Line 58:       protected System.Web.Profile.DefaultProfile Profile {
Line 59:           get {
Line 60:               return ((System.Web.Profile.DefaultProfile)(this.Context.Profile));
Line 61:           }
Line 62:       }
Line 63:       
Line 64:       protected System.Web.HttpApplication ApplicationInstance {
Line 65:           get {
Line 66:               return ((System.Web.HttpApplication)(this.Context.ApplicationInstance));
Line 67:           }
Line 68:       }
Line 69:   }
Line 70:   namespace ASP {
Line 71:       
Line 72:       #line 285 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 73:       using System.Web.Profile;
Line 74:       
Line 75:       #line default
Line 76:       #line hidden
Line 77:       
Line 78:       #line 280 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 79:       using System.Text.RegularExpressions;
Line 80:       
Line 81:       #line default
Line 82:       #line hidden
Line 83:       
Line 84:       #line 282 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 85:       using System.Web.Caching;
Line 86:       
Line 87:       #line default
Line 88:       #line hidden
Line 89:       
Line 90:       #line 278 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 91:       using System.Configuration;
Line 92:       
Line 93:       #line default
Line 94:       #line hidden
Line 95:       
Line 96:       #line 277 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 97:       using System.Collections.Specialized;
Line 98:       
Line 99:       #line default
Line 100:      #line hidden
Line 101:      
Line 102:      #line 25 "D:\ContentManagement\Default.aspx"
Line 103:      using System.Web.UI.WebControls.WebParts;
Line 104:      
Line 105:      #line default
Line 106:      #line hidden
Line 107:      
Line 108:      #line 289 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 109:      using System.Web.UI.HtmlControls;
Line 110:      
Line 111:      #line default
Line 112:      #line hidden
Line 113:      
Line 114:      #line 25 "D:\ContentManagement\Default.aspx"
Line 115:      using System.Web.UI.WebControls;
Line 116:      
Line 117:      #line default
Line 118:      #line hidden
Line 119:      
Line 120:      #line 25 "D:\ContentManagement\Default.aspx"
Line 121:      using System.Web.UI;
Line 122:      
Line 123:      #line default
Line 124:      #line hidden
Line 125:      
Line 126:      #line 276 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 127:      using System.Collections;
Line 128:      
Line 129:      #line default
Line 130:      #line hidden
Line 131:      
Line 132:      #line 275 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 133:      using System;
Line 134:      
Line 135:      #line default
Line 136:      #line hidden
Line 137:      
Line 138:      #line 284 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 139:      using System.Web.Security;
Line 140:      
Line 141:      #line default
Line 142:      #line hidden
Line 143:      
Line 144:      #line 281 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 145:      using System.Web;
Line 146:      
Line 147:      #line default
Line 148:      #line hidden
Line 149:      
Line 150:      #line 283 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 151:      using System.Web.SessionState;
Line 152:      
Line 153:      #line default
Line 154:      #line hidden
Line 155:      
Line 156:      #line 279 "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 157:      using System.Text;
Line 158:      
Line 159:      #line default
Line 160:      #line hidden
Line 161:      
Line 162:      
Line 163:      [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 164:      public class default_aspx : global::_Default, System.Web.IHttpHandler {
Line 165:          
Line 166:          private static bool @__initialized;
Line 167:          
Line 168:          private static object @__stringResource;
Line 169:          
Line 170:          private static object @__fileDependencies;
Line 171:          
Line 172:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 173:          public default_aspx() {
Line 174:              string[] dependencies;
Line 175:              
Line 176:              #line 912304 "D:\ContentManagement\Default.aspx.cs"
Line 177:              ((global::System.Web.UI.Page)(this)).AppRelativeVirtualPath = "~/Default.aspx";
Line 178:              
Line 179:              #line default
Line 180:              #line hidden
Line 181:              if ((global::ASP.default_aspx.@__initialized == false)) {
Line 182:                  global::ASP.default_aspx.@__stringResource = this.ReadStringResource();
Line 183:                  dependencies = new string[2];
Line 184:                  dependencies[0] = "~/Default.aspx";
Line 185:                  dependencies[1] = "~/Default.aspx.cs";
Line 186:                  global::ASP.default_aspx.@__fileDependencies = this.GetWrappedFileDependencies(dependencies);
Line 187:                  global::ASP.default_aspx.@__initialized = true;
Line 188:              }
Line 189:              this.Server.ScriptTimeout = 30000000;
Line 190:          }
Line 191:          
Line 192:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 193:          private global::System.Web.UI.HtmlControls.HtmlTitle @__BuildControl__control3() {
Line 194:              global::System.Web.UI.HtmlControls.HtmlTitle @__ctrl;
Line 195:              
Line 196:              #line 7 "D:\ContentManagement\Default.aspx"
Line 197:              @__ctrl = new global::System.Web.UI.HtmlControls.HtmlTitle();
Line 198:              
Line 199:              #line default
Line 200:              #line hidden
Line 201:              System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
Line 202:              
Line 203:              #line 7 "D:\ContentManagement\Default.aspx"
Line 204:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("Untitled Page"));
Line 205:              
Line 206:              #line default
Line 207:              #line hidden
Line 208:              return @__ctrl;
Line 209:          }
Line 210:          
Line 211:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 212:          private global::System.Web.UI.HtmlControls.HtmlLink @__BuildControl__control4() {
Line 213:              global::System.Web.UI.HtmlControls.HtmlLink @__ctrl;
Line 214:              
Line 215:              #line 13 "D:\ContentManagement\Default.aspx"
Line 216:              @__ctrl = new global::System.Web.UI.HtmlControls.HtmlLink();
Line 217:              
Line 218:              #line default
Line 219:              #line hidden
Line 220:              
Line 221:              #line 13 "D:\ContentManagement\Default.aspx"
Line 222:              @__ctrl.Href = "Script/treeview/jquery.treeview.css";
Line 223:              
Line 224:              #line default
Line 225:              #line hidden
Line 226:              
Line 227:              #line 13 "D:\ContentManagement\Default.aspx"
Line 228:              ((System.Web.UI.IAttributeAccessor)(@__ctrl)).SetAttribute("rel", "stylesheet");
Line 229:              
Line 230:              #line default
Line 231:              #line hidden
Line 232:              
Line 233:              #line 13 "D:\ContentManagement\Default.aspx"
Line 234:              ((System.Web.UI.IAttributeAccessor)(@__ctrl)).SetAttribute("type", "text/css");
Line 235:              
Line 236:              #line default
Line 237:              #line hidden
Line 238:              return @__ctrl;
Line 239:          }
Line 240:          
Line 241:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 242:          private global::System.Web.UI.HtmlControls.HtmlLink @__BuildControl__control5() {
Line 243:              global::System.Web.UI.HtmlControls.HtmlLink @__ctrl;
Line 244:              
Line 245:              #line 15 "D:\ContentManagement\Default.aspx"
Line 246:              @__ctrl = new global::System.Web.UI.HtmlControls.HtmlLink();
Line 247:              
Line 248:              #line default
Line 249:              #line hidden
Line 250:              
Line 251:              #line 15 "D:\ContentManagement\Default.aspx"
Line 252:              @__ctrl.Href = "../Content/ContentManagement.css";
Line 253:              
Line 254:              #line default
Line 255:              #line hidden
Line 256:              
Line 257:              #line 15 "D:\ContentManagement\Default.aspx"
Line 258:              ((System.Web.UI.IAttributeAccessor)(@__ctrl)).SetAttribute("rel", "stylesheet");
Line 259:              
Line 260:              #line default
Line 261:              #line hidden
Line 262:              
Line 263:              #line 15 "D:\ContentManagement\Default.aspx"
Line 264:              ((System.Web.UI.IAttributeAccessor)(@__ctrl)).SetAttribute("type", "text/css");
Line 265:              
Line 266:              #line default
Line 267:              #line hidden
Line 268:              return @__ctrl;
Line 269:          }
Line 270:          
Line 271:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 272:          private global::System.Web.UI.HtmlControls.HtmlHead @__BuildControl__control2() {
Line 273:              global::System.Web.UI.HtmlControls.HtmlHead @__ctrl;
Line 274:              
Line 275:              #line 6 "D:\ContentManagement\Default.aspx"
Line 276:              @__ctrl = new global::System.Web.UI.HtmlControls.HtmlHead("head");
Line 277:              
Line 278:              #line default
Line 279:              #line hidden
Line 280:              global::System.Web.UI.HtmlControls.HtmlTitle @__ctrl1;
Line 281:              
Line 282:              #line 6 "D:\ContentManagement\Default.aspx"
Line 283:              @__ctrl1 = this.@__BuildControl__control3();
Line 284:              
Line 285:              #line default
Line 286:              #line hidden
Line 287:              System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
Line 288:              
Line 289:              #line 6 "D:\ContentManagement\Default.aspx"
Line 290:              @__parser.AddParsedSubObject(@__ctrl1);
Line 291:              
Line 292:              #line default
Line 293:              #line hidden
Line 294:              
Line 295:              #line 6 "D:\ContentManagement\Default.aspx"
Line 296:              @__parser.AddParsedSubObject(this.CreateResourceBasedLiteralControl(0, 316, true));
Line 297:              
Line 298:              #line default
Line 299:              #line hidden
Line 300:              global::System.Web.UI.HtmlControls.HtmlLink @__ctrl2;
Line 301:              
Line 302:              #line 6 "D:\ContentManagement\Default.aspx"
Line 303:              @__ctrl2 = this.@__BuildControl__control4();
Line 304:              
Line 305:              #line default
Line 306:              #line hidden
Line 307:              
Line 308:              #line 6 "D:\ContentManagement\Default.aspx"
Line 309:              @__parser.AddParsedSubObject(@__ctrl2);
Line 310:              
Line 311:              #line default
Line 312:              #line hidden
Line 313:              
Line 314:              #line 6 "D:\ContentManagement\Default.aspx"
Line 315:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n    <script src=\"Script/contextmenu/jquery.contextmenu.r2.js\" type=\"text/javasc" +
Line 316:                          "ript\"></script>\r\n    "));
Line 317:              
Line 318:              #line default
Line 319:              #line hidden
Line 320:              global::System.Web.UI.HtmlControls.HtmlLink @__ctrl3;
Line 321:              
Line 322:              #line 6 "D:\ContentManagement\Default.aspx"
Line 323:              @__ctrl3 = this.@__BuildControl__control5();
Line 324:              
Line 325:              #line default
Line 326:              #line hidden
Line 327:              
Line 328:              #line 6 "D:\ContentManagement\Default.aspx"
Line 329:              @__parser.AddParsedSubObject(@__ctrl3);
Line 330:              
Line 331:              #line default
Line 332:              #line hidden
Line 333:              
Line 334:              #line 6 "D:\ContentManagement\Default.aspx"
Line 335:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n    \t<script type=\"text/javascript\">\n\t\t$(function() {\n\t\t\t$(\"#tree\").treeview()\n" +
Line 336:                          "\t\t})\r\n\t</script>\r\n"));
Line 337:              
Line 338:              #line default
Line 339:              #line hidden
Line 340:              return @__ctrl;
Line 341:          }
Line 342:          
Line 343:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 344:          private global::System.Web.UI.ScriptManager @__BuildControlScriptManager1() {
Line 345:              global::System.Web.UI.ScriptManager @__ctrl;
Line 346:              
Line 347:              #line 25 "D:\ContentManagement\Default.aspx"
Line 348:              @__ctrl = new global::System.Web.UI.ScriptManager();
Line 349:              
Line 350:              #line default
Line 351:              #line hidden
Line 352:              this.ScriptManager1 = @__ctrl;
Line 353:              
Line 354:              #line 25 "D:\ContentManagement\Default.aspx"
Line 355:              @__ctrl.ID = "ScriptManager1";
Line 356:              
Line 357:              #line default
Line 358:              #line hidden
Line 359:              return @__ctrl;
Line 360:          }
Line 361:          
Line 362:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 363:          private global::System.Web.UI.WebControls.TextBox @__BuildControlTextBox1() {
Line 364:              global::System.Web.UI.WebControls.TextBox @__ctrl;
Line 365:              
Line 366:              #line 30 "D:\ContentManagement\Default.aspx"
Line 367:              @__ctrl = new global::System.Web.UI.WebControls.TextBox();
Line 368:              
Line 369:              #line default
Line 370:              #line hidden
Line 371:              this.TextBox1 = @__ctrl;
Line 372:              @__ctrl.TemplateControl = this;
Line 373:              @__ctrl.ApplyStyleSheetSkin(this);
Line 374:              
Line 375:              #line 30 "D:\ContentManagement\Default.aspx"
Line 376:              @__ctrl.ID = "TextBox1";
Line 377:              
Line 378:              #line default
Line 379:              #line hidden
Line 380:              return @__ctrl;
Line 381:          }
Line 382:          
Line 383:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 384:          private global::System.Web.UI.WebControls.Button @__BuildControlButton1() {
Line 385:              global::System.Web.UI.WebControls.Button @__ctrl;
Line 386:              
Line 387:              #line 31 "D:\ContentManagement\Default.aspx"
Line 388:              @__ctrl = new global::System.Web.UI.WebControls.Button();
Line 389:              
Line 390:              #line default
Line 391:              #line hidden
Line 392:              this.Button1 = @__ctrl;
Line 393:              @__ctrl.TemplateControl = this;
Line 394:              @__ctrl.ApplyStyleSheetSkin(this);
Line 395:              
Line 396:              #line 31 "D:\ContentManagement\Default.aspx"
Line 397:              @__ctrl.ID = "Button1";
Line 398:              
Line 399:              #line default
Line 400:              #line hidden
Line 401:              
Line 402:              #line 31 "D:\ContentManagement\Default.aspx"
Line 403:              @__ctrl.Text = "Button";
Line 404:              
Line 405:              #line default
Line 406:              #line hidden
Line 407:              
Line 408:              #line 31 "D:\ContentManagement\Default.aspx"
Line 409:              @__ctrl.Click += new System.EventHandler(this.Button1_Click);
Line 410:              
Line 411:              #line default
Line 412:              #line hidden
Line 413:              return @__ctrl;
Line 414:          }
Line 415:          
Line 416:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 417:          private global::System.Web.UI.WebControls.Label @__BuildControlLabel1() {
Line 418:              global::System.Web.UI.WebControls.Label @__ctrl;
Line 419:              
Line 420:              #line 32 "D:\ContentManagement\Default.aspx"
Line 421:              @__ctrl = new global::System.Web.UI.WebControls.Label();
Line 422:              
Line 423:              #line default
Line 424:              #line hidden
Line 425:              this.Label1 = @__ctrl;
Line 426:              @__ctrl.TemplateControl = this;
Line 427:              @__ctrl.ApplyStyleSheetSkin(this);
Line 428:              
Line 429:              #line 32 "D:\ContentManagement\Default.aspx"
Line 430:              @__ctrl.ID = "Label1";
Line 431:              
Line 432:              #line default
Line 433:              #line hidden
Line 434:              
Line 435:              #line 32 "D:\ContentManagement\Default.aspx"
Line 436:              @__ctrl.Text = "Label";
Line 437:              
Line 438:              #line default
Line 439:              #line hidden
Line 440:              return @__ctrl;
Line 441:          }
Line 442:          
Line 443:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 444:          private void @__BuildControl__control6(System.Web.UI.Control @__ctrl) {
Line 445:              System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
Line 446:              
Line 447:              #line 28 "D:\ContentManagement\Default.aspx"
Line 448:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n                "));
Line 449:              
Line 450:              #line default
Line 451:              #line hidden
Line 452:              global::System.Web.UI.WebControls.TextBox @__ctrl1;
Line 453:              
Line 454:              #line 28 "D:\ContentManagement\Default.aspx"
Line 455:              @__ctrl1 = this.@__BuildControlTextBox1();
Line 456:              
Line 457:              #line default
Line 458:              #line hidden
Line 459:              
Line 460:              #line 28 "D:\ContentManagement\Default.aspx"
Line 461:              @__parser.AddParsedSubObject(@__ctrl1);
Line 462:              
Line 463:              #line default
Line 464:              #line hidden
Line 465:              
Line 466:              #line 28 "D:\ContentManagement\Default.aspx"
Line 467:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n                "));
Line 468:              
Line 469:              #line default
Line 470:              #line hidden
Line 471:              global::System.Web.UI.WebControls.Button @__ctrl2;
Line 472:              
Line 473:              #line 28 "D:\ContentManagement\Default.aspx"
Line 474:              @__ctrl2 = this.@__BuildControlButton1();
Line 475:              
Line 476:              #line default
Line 477:              #line hidden
Line 478:              
Line 479:              #line 28 "D:\ContentManagement\Default.aspx"
Line 480:              @__parser.AddParsedSubObject(@__ctrl2);
Line 481:              
Line 482:              #line default
Line 483:              #line hidden
Line 484:              
Line 485:              #line 28 "D:\ContentManagement\Default.aspx"
Line 486:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n                "));
Line 487:              
Line 488:              #line default
Line 489:              #line hidden
Line 490:              global::System.Web.UI.WebControls.Label @__ctrl3;
Line 491:              
Line 492:              #line 28 "D:\ContentManagement\Default.aspx"
Line 493:              @__ctrl3 = this.@__BuildControlLabel1();
Line 494:              
Line 495:              #line default
Line 496:              #line hidden
Line 497:              
Line 498:              #line 28 "D:\ContentManagement\Default.aspx"
Line 499:              @__parser.AddParsedSubObject(@__ctrl3);
Line 500:              
Line 501:              #line default
Line 502:              #line hidden
Line 503:              
Line 504:              #line 28 "D:\ContentManagement\Default.aspx"
Line 505:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n            "));
Line 506:              
Line 507:              #line default
Line 508:              #line hidden
Line 509:          }
Line 510:          
Line 511:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 512:          private global::System.Web.UI.UpdatePanel @__BuildControlUpdatePanel1() {
Line 513:              global::System.Web.UI.UpdatePanel @__ctrl;
Line 514:              
Line 515:              #line 28 "D:\ContentManagement\Default.aspx"
Line 516:              @__ctrl = new global::System.Web.UI.UpdatePanel();
Line 517:              
Line 518:              #line default
Line 519:              #line hidden
Line 520:              this.UpdatePanel1 = @__ctrl;
Line 521:              
Line 522:              #line 28 "D:\ContentManagement\Default.aspx"
Line 523:              @__ctrl.ContentTemplate = new System.Web.UI.CompiledTemplateBuilder(new System.Web.UI.BuildTemplateMethod(this.@__BuildControl__control6));
Line 524:              
Line 525:              #line default
Line 526:              #line hidden
Line 527:              
Line 528:              #line 28 "D:\ContentManagement\Default.aspx"
Line 529:              @__ctrl.ID = "UpdatePanel1";
Line 530:              
Line 531:              #line default
Line 532:              #line hidden
Line 533:              return @__ctrl;
Line 534:          }
Line 535:          
Line 536:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 537:          private global::System.Web.UI.HtmlControls.HtmlForm @__BuildControlform1() {
Line 538:              global::System.Web.UI.HtmlControls.HtmlForm @__ctrl;
Line 539:              
Line 540:              #line 23 "D:\ContentManagement\Default.aspx"
Line 541:              @__ctrl = new global::System.Web.UI.HtmlControls.HtmlForm();
Line 542:              
Line 543:              #line default
Line 544:              #line hidden
Line 545:              this.form1 = @__ctrl;
Line 546:              
Line 547:              #line 23 "D:\ContentManagement\Default.aspx"
Line 548:              @__ctrl.ID = "form1";
Line 549:              
Line 550:              #line default
Line 551:              #line hidden
Line 552:              System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
Line 553:              
Line 554:              #line 23 "D:\ContentManagement\Default.aspx"
Line 555:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n    <div>\r\n        "));
Line 556:              
Line 557:              #line default
Line 558:              #line hidden
Line 559:              global::System.Web.UI.ScriptManager @__ctrl1;
Line 560:              
Line 561:              #line 23 "D:\ContentManagement\Default.aspx"
Line 562:              @__ctrl1 = this.@__BuildControlScriptManager1();
Line 563:              
Line 564:              #line default
Line 565:              #line hidden
Line 566:              
Line 567:              #line 23 "D:\ContentManagement\Default.aspx"
Line 568:              @__parser.AddParsedSubObject(@__ctrl1);
Line 569:              
Line 570:              #line default
Line 571:              #line hidden
Line 572:              
Line 573:              #line 23 "D:\ContentManagement\Default.aspx"
Line 574:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n        <br />\r\n        "));
Line 575:              
Line 576:              #line default
Line 577:              #line hidden
Line 578:              global::System.Web.UI.UpdatePanel @__ctrl2;
Line 579:              
Line 580:              #line 23 "D:\ContentManagement\Default.aspx"
Line 581:              @__ctrl2 = this.@__BuildControlUpdatePanel1();
Line 582:              
Line 583:              #line default
Line 584:              #line hidden
Line 585:              
Line 586:              #line 23 "D:\ContentManagement\Default.aspx"
Line 587:              @__parser.AddParsedSubObject(@__ctrl2);
Line 588:              
Line 589:              #line default
Line 590:              #line hidden
Line 591:              
Line 592:              #line 23 "D:\ContentManagement\Default.aspx"
Line 593:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n        <br />\r\n        <br />\r\n    </div>\r\n    "));
Line 594:              
Line 595:              #line default
Line 596:              #line hidden
Line 597:              return @__ctrl;
Line 598:          }
Line 599:          
Line 600:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 601:          private void @__BuildControlTree(default_aspx @__ctrl) {
Line 602:              
Line 603:              #line 1 "D:\ContentManagement\Default.aspx"
Line 604:              this.InitializeCulture();
Line 605:              
Line 606:              #line default
Line 607:              #line hidden
Line 608:              System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
Line 609:              
Line 610:              #line 1 "D:\ContentManagement\Default.aspx"
Line 611:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n\r\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3" +
Line 612:                          ".org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n\r\n<html xmlns=\"http://www.w3.org/1" +
Line 613:                          "999/xhtml\">\r\n"));
Line 614:              
Line 615:              #line default
Line 616:              #line hidden
Line 617:              global::System.Web.UI.HtmlControls.HtmlHead @__ctrl1;
Line 618:              
Line 619:              #line 1 "D:\ContentManagement\Default.aspx"
Line 620:              @__ctrl1 = this.@__BuildControl__control2();
Line 621:              
Line 622:              #line default
Line 623:              #line hidden
Line 624:              
Line 625:              #line 1 "D:\ContentManagement\Default.aspx"
Line 626:              @__parser.AddParsedSubObject(@__ctrl1);
Line 627:              
Line 628:              #line default
Line 629:              #line hidden
Line 630:              
Line 631:              #line 1 "D:\ContentManagement\Default.aspx"
Line 632:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n<body>\r\n    "));
Line 633:              
Line 634:              #line default
Line 635:              #line hidden
Line 636:              global::System.Web.UI.HtmlControls.HtmlForm @__ctrl2;
Line 637:              
Line 638:              #line 1 "D:\ContentManagement\Default.aspx"
Line 639:              @__ctrl2 = this.@__BuildControlform1();
Line 640:              
Line 641:              #line default
Line 642:              #line hidden
Line 643:              
Line 644:              #line 1 "D:\ContentManagement\Default.aspx"
Line 645:              @__parser.AddParsedSubObject(@__ctrl2);
Line 646:              
Line 647:              #line default
Line 648:              #line hidden
Line 649:              
Line 650:              #line 1 "D:\ContentManagement\Default.aspx"
Line 651:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n</body>\r\n</html>\r\n"));
Line 652:              
Line 653:              #line default
Line 654:              #line hidden
Line 655:          }
Line 656:          
Line 657:          
Line 658:          #line 912304 "D:\ContentManagement\Default.aspx.cs"
Line 659:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 660:          protected override void FrameworkInitialize() {
Line 661:              base.FrameworkInitialize();
Line 662:              this.SetStringResourcePointer(global::ASP.default_aspx.@__stringResource, 0);
Line 663:              this.@__BuildControlTree(this);
Line 664:              this.AddWrappedFileDependencies(global::ASP.default_aspx.@__fileDependencies);
Line 665:              this.Request.ValidateInput();
Line 666:          }
Line 667:          
Line 668:          #line default
Line 669:          #line hidden
Line 670:          
Line 671:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 672:          public override int GetTypeHashCode() {
Line 673:              return -680366995;
Line 674:          }
Line 675:          
Line 676:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 677:          public override void ProcessRequest(System.Web.HttpContext context) {
Line 678:              base.ProcessRequest(context);
Line 679:          }
Line 680:      }
Line 681:  }
Line 682:  

</div> <script type="text/javascript"> function OnToggleTOCLevel1(level2ID) { var elemLevel2 = document.getElementById(level2ID); if (elemLevel2.style.display == 'none') { elemLevel2.style.display = ''; } else { elemLevel2.style.display = 'none'; } } </script>


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
 

 

winthusiasm.HtmlEditor

0
0

Hello,

               when i take winthusiasm.HtmlEditor in javascript dialog then there is an issue that HtmlEditor is goes to disabled mode, now what is the best solution to enabled it

Problem with AJAX, Application_AcquireRequestState and session

0
0

Hi everybody!

I've got a 3.5 site where I'm adding a second language implemented with resources. I've got buttons on the master page for setting a session variable with the language and in Application_AquireRequestState is the following code:

Sub Application_AcquireRequestState(ByVal sender As Object, ByVal e As EventArgs)
        Dim l As String = ""
        If System.Web.HttpContext.Current.Session("lang") Is Nothing Then
            l = "fi-FI"
        ElseIf CStr(System.Web.HttpContext.Current.Session("lang")) = "sv-FI" Then
            l = "sv-FI"
        Else
            l = "fi-FI"
        End If

        Dim ci As New System.Globalization.CultureInfo(l)
        System.Threading.Thread.CurrentThread.CurrentCulture = ci
        System.Threading.Thread.CurrentThread.CurrentUICulture = ci
End Sub

The problem is that the above code somehow doesn't work with AJAX. My AJAX pages get the "'Sys' is not defined" error. It doesn't throw a runtime error, it's just the AJAX functionality that won't work. When I comment out the above code the AJAX is working, but I can't switch languages on the fly. Any suggestions on how to solve this?

Index was out of range.

0
0

hey all

when i try to select command the following error comes in my code

ERROR

Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

CODE

protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName == "Delete")
            {
                DepartmentSupervisorInfo.DeleteDeptSupervisor(Convert.ToInt32(GridView1.Rows[Convert.ToInt32(e.CommandArgument)].Cells[2].Text));
                GridView1.DataSource = DepartmentSupervisorInfo.getDeptSupervisor();
                GridView1.DataBind();
            }
            else if (e.CommandName == "Select")
            {
                DataSet ds = DepartmentSupervisorInfo.getDeptSupervisorbyID(Convert.ToInt32(GridView1.Rows[Convert.ToInt32(e.CommandArgument)].Cells[2].Text));
                Hdnfld_deptsupid.Value = ds.Tables[0].Rows[0]["DepartmentSupervisorID"].ToString();
                Dd_supDepid.DataValueField = ds.Tables[0].Rows[0]["DepartmentID"].ToString();
                dd_supEmpid.DataValueField = ds.Tables[0].Rows[0]["EmployeeID"].ToString();
           }
        }


ERROR IN THIS LINE

                DataSet ds = DepartmentSupervisorInfo.getDeptSupervisorbyID(Convert.ToInt32(GridView1.Rows[Convert.ToInt32(e.CommandArgument)].Cells[2].Text));




IE9 - posting data in AutoCompleteExtender textbox

0
0

I have been weird  problem with IE9.  if only my site opened in ie , then no problem, it works fine.  When multiple sites are open in different tabs, My site is asking for ntml authentication while posting data in AutoCompleteExtender textbox. The site is developed in asp.net and has anonymous access enabled in iis. I have tried resting the options, but no use. Anyone have this issue and know how to fix???

cannot find table 0 in login form

0
0

hey all
 
i have 1 login form for 2 users one is admin and second is simple user
 
when i login from theri password then its fine and working but when ienter worng password it gives me error CANNOT FIND TABLE 0
 
CODE
 

public int Loginuser1(string UserName, string Password)
        {
            // return the values if Admin then 1 else 2 for User
           int a = Convert.ToInt32( db.ExecuteDataSet("splogin3", new object[] { UserName, Password }).Tables[0].Rows[0][0].ToString());
           return a;
        }

AND login button code is

protected void Button1_Click(object sender, EventArgs e)
        {
            if (cd.Loginuser1(UserName.Text, Password.Text)==1)
            {
                Session["UserID2"] = cd.Loginuser1(UserName.Text, Password.Text);
                Session["Login4"] = UserName.Text;
                Session["Login5"] = Password.Text;
                Lgin.Text = ("Login Successfully");
                Response.Redirect("DocUpload.aspx");

 
                Lgin.Text = ("Incorrect Passsword");
            }
 
            else if (cd.Loginuser1(UserName.Text, Password.Text)==2)
            {
                Session["UserID"] = cd.Loginuser1(UserName.Text, Password.Text);
                Session["Login2"] = UserName.Text;
                Session["Login3"] = Password.Text;
                Lgin.Text = ("Login Successfully");
                Response.Redirect("InfoDoc.aspx");
 
                Lgin.Text = ("Incorrect Passsword");
            }
        }



Object Reference

0
0

Why I am getting this message

 

Object reference not set to an instance of an object.

Help please!!!!

Ajax Async File Upload Control Error: 'Unknown Server Error'

0
0

Hi,

I have been messing around with the Async FileUpload control for hours and haven't been able to get it to work.  I am always getting 'Unknown Server Error' when I try to upload a file.  Any help would be greatly appreciated.

Thanks.

How to select items in CascadingDropDown from Code?

0
0

Good afternoon,

My problem is that I have 3 dropdown list :

Parent Dropdown List : contain Component Family Name

<asp:DropDownList ID="ddlComponentFamily" runat="server"
AppendDataBoundItems="True" AutoPostBack="True"
DataSourceID="objDSComponentFamily" DataTextField="ComponentFamilyName"
DataValueField="ComponentFamilyID"
onselectedindexchanged="ddlComponentFamily_SelectedIndexChanged">
<asp:ListItem Value="-1">-- Component Family --</asp:ListItem>
</asp:DropDownList>
<asp:ObjectDataSource ID="objDSComponentFamily" runat="server"
SelectMethod="GetComponentFamily" TypeName="CMMS.DAL.ComponentFamilyFactory">
</asp:ObjectDataSource>

Cascarding DropdownList : contain Component Name base on Component Family Name selected

<asp:DropDownList ID="ddlComponent" runat="server" AutoPostBack="True"
onselectedindexchanged="ddlComponent_SelectedIndexChanged">
</asp:DropDownList>
<ajaxToolkit:CascadingDropDown ID="ccdComponent" runat="server"
Category="Component" Enabled="True" LoadingText="Loading List..."
ParentControlID="ddlComponentFamily" PromptText="--Component--"
ServiceMethod="GetComponentServices"
ServicePath="~/Common/Webservices/ComponentService.asmx"
TargetControlID="ddlComponent" UseContextKey="True">
</ajaxToolkit:CascadingDropDown>

Alternative Select DropDownList : contain all ComponentID name

<asp:DropDownList ID="ddlComponentByID" runat="server"
AppendDataBoundItems="True" AutoPostBack="True"
DataSourceID="objDSComponentByID" DataTextField="ComponentID"
DataValueField="ComponentID"
onselectedindexchanged="ddlComponentByID_SelectedIndexChanged">
<asp:ListItem Value="-1">-- Component ID --</asp:ListItem>
</asp:DropDownList>
<asp:ObjectDataSource ID="objDSComponentByID" runat="server"
SelectMethod="GetActiveComponent" TypeName="CMMS.DAL.ComponentFactory">
</asp:ObjectDataSource>

Normally when I click on an item in Parent Dropdown List[Component Family Name], the list of items[Component Name] in Cascarding DropdownList will fill up from WebService[ComponentService.asmx] base on Component Family Name value. Once I click on an item in Cascarding DropdownList[Component Name], the same ComponentID will be chosen on Alternative Select DropDownList.

What I would like to do is that, when I select an item on Alternative Select DropDownList, I want the linked item in [Component Name] in Cascarding DropdownList andParent Dropdown List[Component Family Name] are also selected.

I have programmed with the following statement on ddlComponentByID_SelectedIndexChanged

Component objComponent = (Component)_objCom.GetActiveComponentByID(ddlComponentByID.SelectedValue)[0];
ddlComponentFamily.SelectedValue = objComponent.ComponentFamilyID.ToString();

ddlComponent.SelectedValue = objComponent.ComponentID;


And when I select an item in Alternative Select DropDownList,  I got the following error: 

'ddlComponent' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value

Could you please guide me how to solve this problem?

Best regards,

Veasna

Viewing all 5678 articles
Browse latest View live


Latest Images