asp.net

how many classes can you inherit from in c#?

I'm wondering how many classes you can inherit from in .net. There are several backend cs files that I would like to share separate static methods, but they are all in different classes. Is there a way to inherit multiple classes? Example code would be much appreciated. ...

disable right click in file explorer telerik

Greetings everyone, i just wanna ask.. how do i disable the right click property in a telerik file explorer... what i want to achieve particularly is to restrict the user from deleting a file or folder.. i managed to hide the delete in toolbar but not in the right click.. kindly help me out... thanks... Below is the code i did for hidin...

Custom VirtualPathProvider not being used in IIS6

Hi, I added the following lines to Application_Start method in global.asax: var provider = new TestVirtualPathProvider(); HostingEnvironment.RegisterVirtualPathProvider(provider); Yet the 'TestVirtualPathProvider' is never used when deploying this application in IIS6 (it does in the ASP.NET Development Server). Edit: the default pat...

debug sql stored proc in VS 2008 from within asp.net code

I have a SqlDataSource that calls a stored proc. When the page loads a Gridview loads that uses that SqlDataSource. At this time I want to be able to debug the stored proc. I DON'T want to debug the stored proc on it's own. I want to see what values are actually being passed to the stored proc and what it is actually doing. ...

Converting Asp.Net web forms to Asp.Net MVC project makes build fail

We are migrating a project from classic Asp.Net web forms to Asp.Net MVC. I have followed the fours steps outlined here http://www.codeproject.com/KB/aspnet/webformmvcharmony.aspx and all is working well. Now I want to get Visual Studio to include MVC item templates in the "add new item" dialog. So I add {F85E285D-A4E0-4152-9332-AB1...

anyone have a simple implementation of an asynchronous web request that I can see?

I'm looking to use an asynchronous web request in silverlight and would like to look at an example which isn't as confusing as the documentation on msdn. ...

Opera redirect problem.

Hi everyone i have a problem like this. For example im in http://localhost/Search.aspx I have 2 textboxes (txtUserName and txtPassword) in my page for login. user can press enter key to call Login() method when any of these textboxes focused. I capture enter key like this txtUserName.Attributes.Add("onkeydown", "if(event.which || even...

Exstract Value from Gridview Cell created by function in Item Templates

I'm having trouble retrieving the value of a cell in a gridview. I think it may have something to do with the item template calling a function since I am able to retrieve the values of cells that are not calling a function in the same gridview. How can i extract the displayed value from this cell? protected void GridView1_SelectedIn...

onclick between client side and server side

Hello, I want to enhance a composite control's client side, my approach is to recreate all method on JavaScript, so here I have some troubles: Can I call onclick event on client side otherwise on server side? the statement table.onclick=SelectRow(event) fires a bug! Code: function Control_Init() { if( !(document.getElementById)...

where to find the asp.net compiled executable in Visual Web developer 2010 express

Hi, I am using Visual Web Developer 2010 express. I have created a WCF service in the website. The application is running fine in IDE. But I want to publish the code to IIS. I tried the Publish option, but in VWD express edition Publish option is not there. So I want to manually copy the compiled code to IIS. But I couldn't find the c...

Object is null. How to set it? c#

I have a variable FirstThreads of type List<Thread>. I am trying to do the following, but FirstThreads is always null. FirstThreads.AddRange(Threads.Skip<Thread>(PageIndex * PageSize) .Take<Thread>(PageSize)); I can't do this: FirstThreads = FirstThreads.AddRange(Threads.Skip<Thread>(PageIndex * PageSize) ...

Call Jquery Server side asp.net

Hi. i want to use this plugin on my asp.net application. I am serializing my title and text serverside with this class. and i have no problem to show it. but my challenge is : i am loading titles and Contents of notifies from database. i have no problem with load and selecting from Database. i want to refresh notifies on every page load ...

AJAX ModalPopup update panel contents based on change in panel controls

I have an AJAX Modal Popup panel that contains a RadioButtonList, 2 labels and 2 DropDowns. I want to update the Labels and DropDowns when a radio button is selected. My attempt at this posts back which causes the ajax popup to disappear. aspx called on image click: <asp:Panel ID="pnlModalContainer" runat="server"> <asp:RadioButt...

html helper html.RouteLink is it possible to place Image? c#

Hello all, <%= Html.RouteLink(">>>", new { page = (Model.PageIndex + 1) },null)%> Is it possible to set image instead ">>>" and how? Take care, Ragims ...

How to skip authentication for certain user agentes on IIS7?

Hello! I'm writting a software in C# and .NET to manage my store, which has a site where you can go and opt in to receive a sellers person visit. This site has an behind the scenes manager, but I want the software to do this instead, effectively removing the browser manager and the first step towards this goal is to allow the software a...

Change databound Drop Down List programmatically

I have a drop down list that is populated in the page load event from a database table. The drop down has a DataTextField set to a project name and the DataValueField set to the project id (interger). Later I change the dropdowlist selected item with this code in the selectedindexchanged event of a gridview GridViewRow row = GridV...

Differences between MVC and MVP Patterns

Possible Duplicate: What are MVP and MVC and what is the difference? Can somebody explain me the difference between two design patterns for a web application in .net. I am very clear on MVC Pattern and whenever i think of MVP i always feel its is same as MVC. Please clearly explain the difference between a controller and prese...

Transforming Entity Framework EDMX File with XSLT

I would like to make some changes to my EF4 edmx file without modifying the file itself, mainly so I don't loose all my changes if I regenerate the model from the database. I'm familiar with XSL and have seen references made to using it in conjunction with the edmx file. This sounds like a great solution, however I can't seem to find any...

ASP.NET MVC: How can I render a Control to a Stream?

So I'm rendering a partial view in memory in order to direct the XSL-FO data in the view to a PDF renderer. The PDF renderer can take a string, XmlDocument or Stream as input. Here is what I'd like to do: (Edited for clarity) Solution taken from: http://thriftybliss.spaces.live.com/blog/cns!58DA805F37F31F20!170.entry?wa=wsignin1.0&amp...

Storing user-id in session variable

When a use is logged in (Through open-id) we are creating a session variable named "UID" and storing the unique user-id in it. Later we are checking the session to see if the user is logged in. I think this is not the right way, but I could not force the team to change this, as I cannot show how this implementation can be cracked. Can an...