I am using the Telerik.MVC.Grid (version 2013.2.611) from Nuget

The following script

function mouseDown(e)
    var grid = document.getElementById("ColumnsEditor")

throws error: Object doesn't support property or method 'submitChanges'

Documentation indicates this is a valid method. If the method is invalid, is there an alternative method to call.

cshtml pages don't work only in a sub-directory of a subdomain. We have a main domain where cshtml works on 'X' subdirectory folder, but we have a sub-domain where the root directory is a sub-directory of the main domain and cshtml doesn't work there. On IIS, main domain and sub-domain have their own application pool. The 'X' sub directory of the main domain has been converted to application and cshtml pages are working. We tried to accomplish the same process, but we have the following error :

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 '.cshtml' may be incorrect. Please review the URL below and make sure that it is spelled correctly.

Requested URL: /test/test.cshtml

This a simple test file, which works on the main domain sub-directory, but not on the sub-domain sub-directory. I think it is the parent domain that blocks, "it has been explicitly forbidden."

On Handler Mappings the extension is active. (Windows Server 2012 R2, IIS 8.5)

The server has the .NET Framework 4 installed. Also the application is running in an application pool that's configured to use that version of the.NET Framework.

/home/main_domain/X_subdirectory (works cshtml)

/home/main_domain/sub_domain/subdirectory (doesn't work cshtml)

Do you have any ideas ?

The following code gives to me an Internal error :

          <remove fileExtension=".cshtml" />
          <add fileExtension=".cshtml" allowed="true" />

Ref : http://www.asp.net/web-pages/overview/more-resources/aspnet-web-pages-%28razor%29-troubleshooting-guide

I'm wondering why for one of my views I get the error "Section not defined: "featured2"". The path to the layout is correct, and I define the featured2 section in the view.


@using System.Data;
@using System.Data.SqlClient;
ViewBag.Title = "Attempted Unauthorized Access";
Layout = "../Shared/Layout2.cshtml";
string whoareyoupeople = User.Identity.Name.ToString();
DateTime date = DateTime.Now;
string myerrorstring = "User " + whoareyoupeople + " attempted unauthorized access on " + date + ".";

    string fileName = "C:\\BillingExport\\SECURITY\\seclog.txt";
    using (FileStream fs = new FileStream(fileName, FileMode.Append, FileAccess.Write)){
    using (StreamWriter sw = new StreamWriter(fs))
@section featured2 {
<center><h2 style="color:red">Access Denied for user @User.Identity.Name. You are not authorized to view this application.</h2></center>


ViewBag.Title = "Layout2";

<link runat="server" rel="icon" href="../Content/images/eifavicon.ico" type="image/x-icon" />
@RenderSection("scripts", required: false)
                                         browsername = navigator.appName;
                                         if (browsername.indexOf("Microsoft") != -1) {
                                             browsername = "MSIE";
                                             document.write("<p id='indent2'>You're viewing this page using Internet Explorer. Please use a supported browser (<a href='https://www.google.com/chrome/browser/'>Chrome</a>, <a href='https://www.mozilla.org/en-US/firefox/new/'>Firefox</a>)</p>");


SELECT tbl_Shows.ShowTime FROM tbl_Shows INNER JOIN tbl_MovieTimings ON tbl_Shows.ShowId = tbl_MovieTimings.ShowId WHERE (tbl_MovieTimings.Date = 10 / 02 / 2014)

My project is online cinema ticket booking , this query doesn't work. I want get ShowTime in dropdownlist as per date is selected.

I've a Link button on a web page which is a child page of a master page. Here is the link button code

<asp:LinkButton ID="lb_submit"  ClientIDMode="Static" runat="server" 
CssClass="btn btn-green submit-button pull-right btn-block">
<span class="start-text" style="font-family:Arial;font-size:14pt;">Start</span>

The way I tried to do was


But its not firing the actual click event of that link button.

Also I tried


That also didnt help me to solve that issue. Actually my purpose was to trigger that button when ever the enter key on anywhere of the page. That event is working fine and I confirmed it. But am sharing that function also

$(document).on("keypress", function (e) {

            if (e.keyCode == 13) {

                // Cancel the default action on keypress event


Im not getting an idea what I did wrong

I am trying desperately to pass a Angular object value onto a function. The various attempts have resulted in no progress, and the only time I got it to work properly when I hard code the values.

The MVC View:

<tr ng-repeat="project in projects | filter:search:strict">
<td><span><a style="cursor:default" title="Ă„ndra i projektet.." id="{{project.id}}" data-ng-click="opents('/EditProject/', '{{ project.id }}')">{{ project.id }}</a></span></td>

The Angular function:

$scope.opents = function (tsUrl, id) {
        alert('/EditProject/'+ $attrs);
        alert(tsUrl + id);
        TINY.box.show({ url: tsUrl + id });

I've tried to recieve different values from the invoke in the view, hence the many alerts. Can't find a solution for this from the web and hope someone knows of a solution.

I am downloading PDF file from webpage using ASP.NET. The page is served via IIS 7 with SSL embedded. This works fine in Chrome and firefox. Only in IE am getting error. When i tried to download the file , it shows as "File could'nt be downloaded". below is code to generate pdf from asp.net page.

 public void Button_generate(object sender,Eventargs e)
   Document _document = new Document();
            string fname="Certificate_" + ddlYear.SelectedItem.Text + "_" + ddlCss.SelectedItem.Text;

            _document.Generate(Response,fname.Trim() , false);

public void GenerateCCACert(Document doc)
   // here I'm adding content of the pdf file

When button generate is clicked, It popup message as "What do you want to do with generate_pdf_aspx?" instead of .pdf file name. This issue is only in IE. I can download pdf file without error in other browers.

My website is in HTTPS. Can change this application alone to HTTP? How to change HTTPS to HTTP in IIS?

I have an asp.net website which usercan post ads to it. So currently I am showing what ever the records in a DB in a datagridview.

I am just simply getting records to datatable and bind the table to gridview.

            dt_Display = Display_Bll.Get_Display();
            dlistDisplay.DataSource = dt_Display;

Also I have an idea to generate hyperlinks for each of ad titles instead of above method. like this. dlistDisplay refer to Datalist.

            dt_Display = Display_Bll.Get_Display();
            dlistDisplay.DataSource = dt_Display;

I used datalist to bind those records.

<asp:DataList runat="server" ItemStyle-Width="150" RepeatColumns="5" ID="dlistDisplay"
      <asp:HyperLink ID="hlDisplay" runat="server" Text='<%#Eval("title")%>' ForeColor="Blue"></asp:HyperLink>

So my question for you.

If table have millions of records but assume that I am loading 300 records per page. what will be efficient.? Binding data to gridview or Generating 300 hyperlinks for page? ( Like doing in Craiglist.org )

I have problem in clearing listView when click on clear button list view in binded by sqlDataReader and i want to clear list view on clear button Below i am attaching my code

if (Page.Request.Params["__EVENTTARGET"] != null)
                    if (Page.Request.Params["__EVENTTARGET"].ToString().ToLower().Contains("btncheck"))
                        string[] arg = Page.Request.Params["__EVENTARGUMENT"].ToString().Split(',');
                        lsvSearchResult.DataSource = null;
                        if (Convert.ToString(arg[0]) == "IDNO")
                            if (Convert.ToString(arg[1]).Trim() != "")
                                lsvSearchResult.DataSource = GetStudents(arg[0], arg[1]);
                        else if (Convert.ToString(arg[0]) == "NAME")
                            lsvSearchResult.DataSource = GetStudents(arg[0], arg[1]);

                    //GetStudents(arg[0], arg[1]);
                else if (Page.Request.Params["__EVENTTARGET"].ToString().ToLower().Contains("btncancemodal"))
                        txtSearch.Text = string.Empty;
                        DataSet ds = null;
                        lsvSearchResult.DataSource = ds;
                    catch (Exception)
                        // error

i have downloaded a quartz demo application from here. But when i try to runt this sample application it is throwing the following exception
I have given the full permissions on the folder and running the VS2012 as an Admin. Any help would be appreciated greatly!

System.IO.FileLoadException was caught
  Message=Could not load file or assembly 'Quartz, Version=, Culture=neutral, PublicKeyToken=f6b8c98a402cc8a4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
  FileName=Quartz, Version=, Culture=neutral, PublicKeyToken=f6b8c98a402cc8a4
  FusionLog=WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    Server stack trace: 
       at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
       at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
       at System.Reflection.Assembly.Load(String assemblyString)
       at System.UnitySerializationHolder.GetRealObject(StreamingContext context)
       at System.Runtime.Serialization.ObjectManager.ResolveObjectReference(ObjectHolder holder)
       at System.Runtime.Serialization.ObjectManager.DoFixups()
       at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
       at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
       at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, IMethodCallMessage methodCallMessage)
       at System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRequestMessage(String objectUri, Stream inputStream, Boolean bStrictBinding, TypeFilterLevel securityLevel)
       at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
    Exception rethrown at [0]: 
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at Quartz.Simpl.IRemotableQuartzScheduler.CheckExists(JobKey jobKey)
       at Quartz.Impl.RemoteScheduler.<>c__DisplayClass6c.<CheckExists>b__6b(IRemotableQuartzScheduler x) in c:\Work\OpenSource\quartznet\src\Quartz\Impl\RemoteScheduler.cs:line 450
       at Quartz.Impl.RemoteScheduler.CallInGuard[T](Func`2 func) in c:\Work\OpenSource\quartznet\src\Quartz\Impl\RemoteScheduler.cs:line 574
       at Quartz.Impl.RemoteScheduler.CheckExists(JobKey jobKey) in c:\Work\OpenSource\quartznet\src\Quartz\Impl\RemoteScheduler.cs:line 450
       at HelloWorldQuartzDotNet.ScheduledJob.Run() in g:\SaiKiran\QuartzExamples\HelloWorldQuartzDotNet\HelloWorldQuartzDotNet\HelloWorldQuartzDotNet\ScheduledJob.cs:line 35
       at HelloWorldQuartzDotNet.Program.Main(String[] args) in g:\SaiKiran\QuartzExamples\HelloWorldQuartzDotNet\HelloWorldQuartzDotNet\HelloWorldQuartzDotNet\Program.cs:line 15
  InnerException: <br/>

I had created chat application using signalr. I faced problem that I was unable to open multiple tabs so to solve that I used cross domain concept.

When I am running the website locally it is not showing any error message and working fine.

But when I am hosting website to server then it is raising following error-


I have defined the url in webconfig as-

and sets the hub url for connection in designer file as

$.connection.hub.url = "<%= HubURL%>";

Locally it is working fine and taking the same url as in web config file but when hosted, it embeds "reconnect?transport=longPolling&connectionToken=abc112..." to the connection and raising the above error.

Can anyone suggest me how to rectify the above error?


i need to format the aspx like this with the help of repeater control

<div id="gallery">
                    <h5>Image title 1</h5>
                    <a href="gallery/1.jpg" title="Des 2">
                    <img src="gallery/1.jpg" alt="Image 01" />
                    <h5>Image Title 2</h5>
                    <a href="gallery/2.jpg" title="Des 2">
                    <img src="gallery/2.jpg" alt="Image 02" />

My repeater code is like this

<div id="gallery">
          <asp:repeater id="repeater1" runat="server">
                  <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("ImageThumbPath") %>' 
                  Width="100px" Height="80px" alt='<%#Eval("ImageName") %>' style="cursor:pointer" />

My Database contain fields ImageName ImageThumbPath ImageTitle ImageDescription

How can i achieve this

I have a Telerik.MVC.Grid showing editable data (checkboxes). I want the data to update and to invoke the form Submit with one click. Right now, I have to edit the form; click "Save Changes" (a toolbar command); then click "Next>>>" a form submit button. Is there a method to invoke the "Save Changes". I want to put other controls in the Footer -- when I do the Toolbar commands disappear. From a GUI perspective, I want rid of the built in Toolbar buttons anyway.

    @( Html.Telerik().Grid<Exact.Web.ViewModel.Column>()
           .DataKeys(d => d.Add(d2 => d2.Id))
           .Editable(editing => editing.Mode(GridEditMode.InCell))
           .DataBinding(dataBinding => dataBinding
               //Ajax binding
               //The action method which will return JSON
                .Select("_DesignerAjaxBinding", "Designer")
                .Update("_DesignerAjaxBindingUpdate", "Designer")

            .Columns(c =>
                     c.Bound(c2 => c2.ColumnName).ReadOnly();
                     c.Bound(c2 => c2.Master).ClientTemplate("<input type='checkbox' name='Master' <#=Master? checked='checked' : '' #> />");//"<strong><#= Master #></strong>"
                     c.Bound(c2 => c2.Detail).ClientTemplate("<input type='checkbox' name='Detail' <#=Detail? checked='checked' : '' #> />");
                     //c.Bound(c2 => c2.Group).ClientTemplate("<input type='checkbox' name='Group' <#=Group? checked='checked' : '' #> />");

    //.ClientEvents(c => c.OnSave("ColumnsEditor_OnSave"))
        .ToolBar(commands =>
                commands.Custom().Action("Index", "MasterDetail").Text("Next >>>");

I have a form in a dialog and my problem is i have imput block and i cant write in there make a click. Bus if i do tab, i got focus and i can write in the imput.

Code Example

enter code here

I'll apologize first because I understand that this has been asked a zillion times, but I've tried everything I've found to no avail. :(

FYI: I am attempting to create an ASP.NET web app using Master Page. All HTML code below is from my MP.

I have 3 questions:

  1. How the heck do I make my footer stick (my failed code will be below)?
  2. In the setup below, I have nested divs inside the Header/Content, etc. I am assuming that doesn't affect my epic journey toward sticking the footer to the bottom?
  3. Lastly, I have the (form) tag immediately after my (body) tags. I know other folks have mentioned that they felt as though there was an issue. I, too, feel like it messes with my ability to sticky my footer... but maybe this is an irrational fear emerging from my Noob instincts... lol.

Thank you in advance for taking the time to help me!!


* {
  margin: 0;
body {
  font-family: Arial;
  font-size: 10pt;
  background-color: #F2FDFF;
  margin-left: auto;
  margin-right: auto;
  width: 800px;
  text-align: center;
  padding: 0;
  height: 100%;
a {
  outline: none;
#wholePg {
  min-height: 100%;
  position: relative;
#divNav-cont {
  width: 100%;
  position: fixed;
  top: 0px;
#divNav {
  background-color: #DBDBDB;
  margin-bottom: 5px;
  margin-top: 0;
  height: 100px;
  width: 800px;
  text-align: center;
  font: 0/0a;
  vertical-align: middle;
  display: table;
  border-radius: 0px 0px 25px 25px;
#divBody {
  width: 98%;
  overflow: hidden;
  white-space: nowrap;
  margin-top: 110px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
  padding-bottom: 40px;
#divFooter {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 30px;
  border-radius: 25px 25px 0px 0px;
  background-color: #DBDBDB;


  <form runat="server">
    <div id="wholePg">

        <div id="divNav-cont">
          <div id="divNav">
            <div id="imgNav">


        <%--Body: Left and Right--%>
          <div id="divBody">
            <div id="leftContainer" class="bodyWidth196px">
              <div class="mainHeader">
              <div class="mainBody overflowYhidden
                                overflowXhidden bodyWidth196px
                                borderBottomCurved height85percent">
                  Blah blah etc.
                <asp:ContentPlaceHolder ID="LeftContentPlaceHolder" runat="server" />
                <br />
                <br />

            <div id="rightContainer" class="bodyWidth580px">
              <div class="mainHeader">RIGHT</div>
              <div class="mainBody bodyWidth580px borderBottomCurved">
                <asp:ContentPlaceHolder ID="BodyContentPlaceHolder" runat="server" />
                <br />
                <br />

            <div id="divFooter" class="center">
              <br />Blabbity boo dee dah.


I am trying to create an MVC based website. One of the feature we have is to upload the files to server. So I am done with all that part of coding but I need some info around "While the upload is happening we need to show the logs of the files being uploaded" I was thinking of using some notifications but all of them seems to execute after the controller is done. I need to send the file names from controller -> view on runtime basis as they finish uploading.

Any suggestions?

Thanks TJ

I have a web API exposing ODATA from a SQL stored proc. I want to use a url like /odata/firmhierarchy(225) to pass 225 into a param for the stored proc. It just tells me that it can't find a matching resource. It hits the controller, just skips the method. Thoughts?

In webapiconfig

        private static IEdmModel GenerateEdmModel()
        var builder = new ODataConventionModelBuilder();

        return builder.GetEdmModel();


    public virtual ObjectResult<Employee> sp_EmployeeHierarchy(Nullable<int> managerEmpID)
        var managerEmpIDParameter = managerEmpID.HasValue ?
            new SqlParameter("ManagerEmpID", managerEmpID) :
            new SqlParameter("ManagerEmpID", 0);

        return ((IObjectContextAdapter)this).ObjectContext.ExecuteStoreQuery<Employee>("sp_EmployeeHierarchy @ManagerEmpID", managerEmpIDParameter);

Only method in controller:

    public IQueryable<Employee> GetFirmHierarchy()
        return db.sp_EmployeeHierarchy(225).AsQueryable();
        //return SingleResult.Create(db.Employees.Where(employee => employee.EmpId == key));

I have a webforms project and i would like to integrate mvc into it so that i can make ajax calls from a javascript file on the main.aspx page of the webforms project to a controller in the mvc project and have data returned back to the client side. How can i access the functions in the mvc project from my ajax calls?

I have a Joomla 2.5 Component I'm building.

I'd like, in the Edit (single) View of the Component (called "Article"), to have a new custom JToolbar button, "Add New Menu Item".

When clicked, this should open up a lightbox of the Edit view of another View in the same component (called "Menu Item"), allowing the user to add a menu item without leaving the form he's currently in.

As it stands, I have put in

JToolBarHelper::custom('ussdarticle.addussdmenu', '', '', 'Add Menu Item', false);

And attempted to put the addussdmenu function in the controller, but when the button is clicked, it just directs to the List View without the function being called.

Really appreciate the assistance, I'm still coming to terms with Joomla's MVC (and MVC in general to be honest.)

I am working on an MVC application where I want to display custom error pages and avoid to show a yellow screen of death on errors. I have added the HandleError filter on my global filters configuration.

 public static void RegisterGlobalFilters(GlobalFilterCollection filters)
            filters.Add(new HandleErrorAttribute());

I have also changed the values of the web.config to enable custom errors.

    <customErrors mode="On">  

Right now, my application is succesfully redirecting to my custom error screen. However, what I want is to be able to see the yellow screen of death when the application is being run locally. is there any way of accomplishing it? Im guessing maybe override the OnException method of the HandleError filter so that we can stop the method from redirecting to the Error view, but I do not know how to do this.


I am trying to bind accordion control at run time. Header is loading,but the content is not loading. please correct me where i gone wrong

This is the code to load accordion Header

public DataTable EventName()
    string tablename = "Event";
    SqlCommand cmd = new SqlCommand();
    cmd.CommandType = CommandType.Text;
    cmd.CommandText = "Select EventName from EventNames order by EventName";
    return GetData(cmd, tablename).Tables[0];

In the page load event i write like this

if (!IsPostBack)
        dataacess da = new dataacess();          

        DataTable dt = da.EventName();
        Accordion1.DataSource = dt.DefaultView;


the aspx page design is like this

    <asp:Accordion runat="server" ID="Accordion1" SuppressHeaderPostbacks="true" HeaderCssClass="accordionHeader"
    HeaderSelectedCssClass="accordionHeaderSelected" ContentCssClass="accordionContent" Width="500"
        <asp:Label runat="server" ID="lblEventName" Text='<%#Eval("EventName") %>'> </asp:Label>
        <asp:HiddenField runat="server" ID="hidEventName" Value='<%#Eval("EventName") %>'>

            <asp:Repeater ID="Repeater1" runat="server">
                        <asp:Label runat="server" ID="litDate" Text='<%# DataBinder.Eval(Container.DataItem, "Description") %>'
                            Font-Size="Medium" ForeColor="Maroon" Font-Bold="True"></asp:Label><br />
                            <asp:Literal runat="server" ID="litDesc1" Text='<%# "Date: " + DataBinder.Eval(Container.DataItem, "EDate", "{0:dd/MMM/yyyy,dddd}") %>'></asp:Literal>
                        <br />
                        <asp:Literal runat="server" ID="litDesc2" Text='<%# DataBinder.Eval(Container.DataItem, "Description2") %>'></asp:Literal></p>
                    <hr />


Accordion OnItemDataBound event

protected void Accordion1_ItemDataBound(object sender, AjaxControlToolkit.AccordionItemEventArgs e)
    if (e.ItemType==AjaxControlToolkit.AccordionItemType.Content)
        Repeater Repeater1 = (Repeater)e.AccordionItem.FindControl("Repeater1");
        HiddenField hidEventName = (HiddenField)e.AccordionItem.FindControl("hidEventName");

        dataacess da = new dataacess();
        Repeater1.DataSource = da.EventHistory(pname, hidEventName.ToString());