Telerik Forums
Community Forums Forum
0 answers
99 views
Hello,
I want to share this:
5 CSS Techniques For Your Next Web Design

Best regards,
Mostafa Anoosheh
Mostafa Anoosheh
Top achievements
Rank 1
 asked on 04 Aug 2009
3 answers
2.4K+ views
I am trying to get the windows logged on user name inside the user control using ASP.NET and C#. I am using (System.Web.HttpContext.Current.User.Identity.Name) to get the current  windows logged on username. It is giving NETWORK SERVICE as the username instead of current logged in username. After some research i have changed the sitefinity web.config. I have changed authentication mode to windows and now i am getting current logged on username. But, the sitefinity admin site is not working and everything else is working fine.
getting error message when accessing admin site

Server Error in '/' Application.

This type of page is not served.

Description: The type of page you have requested is not served because it has been explicitly forbidden.  The extension '.aspx' may be incorrect.   Please review the URL below and make sure that it is spelled correctly.

Requested URL: /sitefinity/admin/default.aspx


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


Please post if you have any ideas how to get current logged on username without changing the authentication mode to windows or post how to recover the sitefinity admin site.

Thanks in advance..........
Dido
Telerik team
 answered on 04 Aug 2009
5 answers
176 views

I haven't explored all yet.. but, I'm loving what I'm finding!  

This company, you guys, and gals.. are a class act!

Thanks!
Peter
Telerik team
 answered on 03 Aug 2009
0 answers
114 views
Some useful links on web development:

Building fast sites - http://code.google.com/speed/page-speed/docs/rules_intro.html
ASP.NET model cheatsheet - http://blog.krisvandermast.com/content/binary/ASP.NET-2.0-life-cycle.png

All of these links/documents/software I use in my development. I have plenty of stuff to share, which will make life easier.



G S S
Top achievements
Rank 1
 asked on 01 Aug 2009
2 answers
120 views
Hi,

I am new to ASP.NET and the rad controls.
I have developed a sample application using the trial version of the rad controls and I am trying to publish it on to our website that is hosted by a 3rd party service provider.

While I am able to run the app in my development environment, the application does not run once published to the remote server.

I am using the Copy website option in VS2005 to do this.

Is there a doc that will tell me the steps I should go through while doing such deployment.

Thanks,
Sri
Edmund Kenrick Kenrick
Top achievements
Rank 1
 answered on 29 Jul 2009
3 answers
117 views
Hi,

I would like to know if it is possible to launch Visual Web developer 2008 from the telerik trainer instead of VS2005 or VS2008

Thanks..., great trainer...
Edmund Kenrick Kenrick
Top achievements
Rank 1
 answered on 29 Jul 2009
2 answers
77 views
It would be great to have a training module for how to integrate the MOSS editor and to point to key resources for getting it up and running and customizing.

Thank You,
Mike
Edmund Kenrick Kenrick
Top achievements
Rank 1
 answered on 29 Jul 2009
5 answers
156 views

Hi all,

What is the best way to add CSS file references between the <head> tags?

The original way is like this:

<link type="text/css" rel="stylesheet" href="../Assets/Css/all.css" media="screen" />  
<link type="text/css" rel="stylesheet" href="../Assets/Css/Menu.Multiflexx.css" media="screen" />  
<link type="text/css" rel="stylesheet" href="../Assets/Css/Menu.MultiflexxSide.css" media="screen" />  
 
<script type="text/javascript" src="../Assets/Js/script.js"></script>  
<script type="text/javascript" src="../Assets/Js/vscrollarea.js"></script>  
 
<!--[if lte IE 6]><link type="text/css" rel="stylesheet" href="../Assets/Css/ie6.css" /><![endif]-->  
<!--[if IE]><link type="text/css" rel="stylesheet" href="../Assets/Css/ie.css" /><![endif]--> 

When I use this on pages that are 1 or 2 levels deep (in the menu structure) then some styles are not applied. Well, the IE 6 hacks in particular. I tried all kind of things to resolve the right path for the files, but none of them are working.

If anyone has some more ideas to solve this right, let me know.
The problem is that it is important that the order of the files is the same, and that the Conditional comments are also beeing used.

-Daniel

Atanas Korchev
Telerik team
 answered on 28 Jul 2009
0 answers
72 views
Hello,
I hope this useful:
Advanced jQuery - Turning a good app into a great app

Kind regards,
Mostafa Anoosheh
Mostafa Anoosheh
Top achievements
Rank 1
 asked on 21 Jul 2009
1 answer
147 views
Hi, Sometime I am getting following error while I changed the dropdown index(autopostback=true)..

 Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.

please tell me what's the wrong with this??

here is my page code
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="MasterContentPlaceHolder">
    <telerik:RadAjaxLoadingPanel ID="LoadingPanel" runat="server">
            <img src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading7.gif") %>'
                alt="Loading..." style="border: 0;"/>
        </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxManagerProxy ID="ajaxProxyContracts" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="tsContractCapture">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="tsContractCapture" />
                    <telerik:AjaxUpdatedControl ControlID="mpContractCapture" LoadingPanelID="LoadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="cmbContractType">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="tsContractCapture" />
                    <telerik:AjaxUpdatedControl ControlID="mpContractCapture" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="chkAutoRenewal">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="tsContractCapture" />
                    <telerik:AjaxUpdatedControl ControlID="mpContractCapture" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="cmbGLCountry">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="tsContractCapture" />
                    <telerik:AjaxUpdatedControl ControlID="mpContractCapture" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <telerik:RadTabStrip AutoPostBack="true" ID="tsContractCapture" OnTabClick="tsContractCapture_TabClick" runat="server" MultiPageID="mpContractCapture">
        <Tabs>
            <telerik:RadTab runat="server" Value="0" Text="General" Selected="true" >
            </telerik:RadTab>           
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="mpContractCapture" runat="server" Width="100%">
        <telerik:RadPageView BorderColor="Gray" Selected="true" BorderStyle="Solid" BorderWidth="1" ID="pvGeneral"
            runat="server">
            <Control:General ID="ucGeneral" runat="server" />
        </telerik:RadPageView>       
    </telerik:RadMultiPage>
    <asp:HiddenField ID="hdnContractID" runat="server" Value="-1" />   
</asp:Content>


and here is my general control code..



<script type="text/javascript">
    function validateCombo(source, args) {
        args.IsValid = false;
        var combo = $find('<%= cmbCounterparty.ClientID %>');
        var text = combo.get_text();
        if (text.length < 1) {
            args.IsValid = false;
        }
        else {
            var node = combo.findItemByText(text);
            if (node) {
                var value = node.get_value();
                if (value.length > 0 && value != -1) {
                    args.IsValid = true;
                }
            }
            else {
                args.IsValid = false;
            }
        }
    }
</script>

<table width="100%" border="0" cellpadding="0" cellspacing="3">   
    <tr>
        <td align="right">
            Contract Type
        </td>
        <td width="80%">
            <telerik:RadComboBox CausesValidation="false" OnSelectedIndexChanged="cmbContractType_SelectedIndexChanged"
                ID="cmbContractType" AutoPostBack="true" runat="server" Width="250px">
                <CollapseAnimation Duration="200" Type="OutQuint" />
            </telerik:RadComboBox>

            &nbsp;
            <asp:RequiredFieldValidator Display="Dynamic" InitialValue="Select Contract Type"
                ID="reqVal_ContractType" runat="server" ControlToValidate="cmbContractType" ValidationGroup="Contract">
                <asp:Image runat="server" ID="Image2" AlternateText="*" CssClass="error_text" ImageUrl="~/images/Delete16.png" />
            </asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td align="right">
            Counterparty
        </td>
        <td width="80%">
            <telerik:RadComboBox CausesValidation="false" ID="cmbCounterparty" runat="server"
                Width="250px">
                <CollapseAnimation Duration="200" Type="OutQuint" />
            </telerik:RadComboBox>
            &nbsp;
            <asp:CustomValidator ValidationGroup="Contract" ID="CustomValidator1" runat="server"
                ClientValidationFunction="validateCombo" ControlToValidate="cmbCounterparty"
                ErrorMessage="*" OnServerValidate="CustomValidator1_ServerValidate">
                <asp:Image runat="server" ID="Image4" AlternateText="*" CssClass="error_text" ImageUrl="~/images/Delete16.png" />
            </asp:CustomValidator>
        </td>
    </tr>   
    <tr>
        <td align="right">
            Start Date
        </td>
        <td width="80%">
            <telerik:RadDatePicker ID="dpStartDate" runat="server" Width="250px">
                <Calendar runat="server" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x">
                </Calendar>
                <DatePopupButton ImageUrl="~/images/CalendarPopUp.png" HoverImageUrl="~/images/CalendarPopUp.png" />
            </telerik:RadDatePicker>
            &nbsp;
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="dpStartDate"
                ValidationGroup="Contract">
                <asp:Image runat="server" ID="Image6" AlternateText="*" CssClass="error_text" ImageUrl="~/images/Delete16.png" />
            </asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td align="right">
            End Date
        </td>
        <td width="80%">
            <telerik:RadDatePicker ID="dpEndDate" runat="server" Width="250px">
                <Calendar runat="server" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x">
                </Calendar>
                <DatePopupButton ImageUrl="~/images/CalendarPopUp.png" HoverImageUrl="~/images/CalendarPopUp.png" />
            </telerik:RadDatePicker>
        </td>
    </tr>
    <tr>
        <td align="right">
            Execution Date
        </td>
        <td width="80%">
            <telerik:RadDatePicker ID="dtExecutionDate" runat="server" Width="250px">
                <Calendar runat="server" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x">
                </Calendar>
                <DatePopupButton ImageUrl="~/images/CalendarPopUp.png" HoverImageUrl="~/images/CalendarPopUp.png" />
            </telerik:RadDatePicker>
            &nbsp;
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="dtExecutionDate"
                ValidationGroup="Contract">
                <asp:Image runat="server" ID="Image7" AlternateText="*" CssClass="error_text" ImageUrl="~/images/Delete16.png" />
            </asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td width="100%" colspan="2">
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td>
                        <table border="0" cellpadding="0" cellspacing="2" width="100%">
                            <tr>
                                <td width="20%" align="right">
                                    <asp:CheckBox AutoPostBack="true" OnCheckedChanged="chkAutoRenewal_CheckedChanged"
                                        ID="chkAutoRenewal" Text="Auto-Renewal" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td width="20%" align="right">
                                    Renewal Terms
                                </td>
                                <td width="80%">
                                    <table border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                <telerik:RadNumericTextBox CausesValidation="false" Enabled="false" ID="ntxtCounter"
                                                    runat="server" ShowSpinButtons="True" MinValue="0" Value="1.00">
                                                    <NumberFormat DecimalDigits="0" />
                                                </telerik:RadNumericTextBox>
                                                &nbsp;
                                                <asp:RequiredFieldValidator Display="Dynamic" InitialValue="0" ID="req_ntxtCounter"
                                                    runat="server" ControlToValidate="ntxtCounter" ValidationGroup="Contract">
                                                    <asp:Image runat="server" ID="Image8" AlternateText="*" CssClass="error_text" ImageUrl="~/images/Delete16.png" />
                                                    &nbsp;</asp:RequiredFieldValidator>
                                            </td>
                                            <td>
                                                <telerik:RadComboBox ID="cmbPeriod" Enabled="false" runat="server">
                                                    <Items>
                                                        <telerik:RadComboBoxItem runat="server" Text="Day(s)" Value="Day(s)" />
                                                        <telerik:RadComboBoxItem runat="server" Text="Week(s)" Value="Week(s)" />
                                                        <telerik:RadComboBoxItem runat="server" Text="Month(s)" Value="Month(s)" />
                                                        <telerik:RadComboBoxItem runat="server" Text="Year(s)" Value="Year(s)" />
                                                    </Items>
                                                    <CollapseAnimation Duration="200" Type="OutQuint" />
                                                </telerik:RadComboBox>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td width="20%" align="right">
                                    Renewal Reminder
                                </td>
                                <td>
                                    <telerik:RadNumericTextBox Enabled="false" ID="ntxtRenewalReminder" runat="server"
                                        ShowSpinButtons="True" MinValue="0" Value="1.00">
                                        <NumberFormat DecimalDigits="0" />
                                    </telerik:RadNumericTextBox>
                                    &nbsp;
                                    <asp:RequiredFieldValidator Display="Dynamic" InitialValue="0" ID="req_RenewalReminder"
                                        runat="server" ControlToValidate="ntxtRenewalReminder" ValidationGroup="Contract">
                                        <asp:Image runat="server" ID="Image9" AlternateText="*" CssClass="error_text" ImageUrl="~/images/Delete16.png" />
                                        &nbsp;</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td width="20%" align="right">
                                    Early Termination
                                </td>
                                <td>
                                    <telerik:RadNumericTextBox ID="ntxtEarlyTermination" runat="server" ShowSpinButtons="true"
                                        MinValue="0" Value="1.00">
                                        <NumberFormat DecimalDigits="0" />
                                    </telerik:RadNumericTextBox>
                                    &nbsp;
                                    <asp:RequiredFieldValidator Display="Dynamic" InitialValue="0" ID="req_EarlyTermination"
                                        runat="server" ControlToValidate="ntxtEarlyTermination" ValidationGroup="Contract">
                                        <asp:Image runat="server" ID="Image10" AlternateText="*" CssClass="error_text" ImageUrl="~/images/Delete16.png" />
                                        &nbsp;</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td width="20%" align="right">
                                    Governing Law
                                </td>
                                <td>
                                    <table border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                <telerik:RadComboBox ID="cmbGLCountry" runat="server" Width="150px" OnSelectedIndexChanged="cmbGLCountry_SelectedIndexChanged"
                                                    AutoPostBack="True" CausesValidation="False">
                                                    <CollapseAnimation Duration="200" Type="OutQuint" />
                                                </telerik:RadComboBox>

                                                <asp:RequiredFieldValidator Display="Dynamic" InitialValue="Select Country" ID="RequiredFieldValidator5"
                                                    runat="server" ControlToValidate="cmbGLCountry" ValidationGroup="Contract">
                                                    &nbsp;<asp:Image runat="server" ID="Image11" AlternateText="*" CssClass="error_text"
                                                        ImageUrl="~/images/Delete16.png" />
                                                    &nbsp;</asp:RequiredFieldValidator>
                                            </td>
                                            <td style="padding-left: 3px;">
                                                <telerik:RadComboBox ID="cmbGLStats" runat="server" Width="150px">
                                                    <CollapseAnimation Duration="200" Type="OutQuint" />
                                                </telerik:RadComboBox>
                                                &nbsp;
                                                <asp:RequiredFieldValidator Display="Dynamic" InitialValue="Select State/Province"
                                                    ID="RequiredFieldValidator6" runat="server" ControlToValidate="cmbGLStats" ValidationGroup="Contract">
                                                    <asp:Image runat="server" ID="Image12" AlternateText="*" CssClass="error_text" ImageUrl="~/images/Delete16.png" />
                                                </asp:RequiredFieldValidator>
                                                <asp:RequiredFieldValidator Display="Dynamic" InitialValue="" ID="RequiredFieldValidator7"
                                                    runat="server" ControlToValidate="cmbGLStats" ValidationGroup="Contract">
                                                    <asp:Image runat="server" ID="Image13" AlternateText="*" CssClass="error_text" ImageUrl="~/images/Delete16.png" />
                                                </asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td width="20%" valign="middle" align="right">
                                    Geographic Scope
                                </td>
                                <td valign="top">
                                    <uc1:TerritoryPicker ID="ucTerritoryPicker" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td align="right" width="20%">
                                    &nbsp;
                                </td>
                                <td>
                                    <asp:Button ID="btnSaveContract" ValidationGroup="Contract" runat="server" OnClick="btnSaveContract_Click"
                                        CommandName="Save" Text="Save" Width="100px" CausesValidation="true" />&nbsp;<asp:Button
                                            CommandName="SaveExit" ID="btnSaveContractAndExit" ValidationGroup="Contract"
                                            runat="server" OnClick="btnSaveContract_Click" Text="Save & Exit" Width="100px"
                                            CausesValidation="true" /><asp:Button Style="margin-left: 4px;" ID="btnActivate"
                                                ValidationGroup="Contract" runat="server" OnClick="btnActivate_Click" Text="Active"
                                                Width="100px" CausesValidation="true" />&nbsp;<asp:Button OnClick="btnCancelContract_Click"
                                                    CausesValidation="false" ID="btnCancelContract" runat="server" Text="Exit" Width="100px" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>

Please help
Sebastian
Telerik team
 answered on 20 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?