asp.net

How to stop AJAX update taking place in one update panel from another update panel ?

We have two update panels on our webpage. Now first update panel is having button cancel. While second update panel is having a file upload control. Now if the user uploads a file that is going to upload in about 2 mins, and in between, say after 30 seconds the user clicks the cancel button, the upload taking place in update panel 2 sho...

Updatepanel gives web request manager error

I have an updatepanel that inside it I have a dropdownlist control with postback enable when the user click on that dropdownlist AjaxEditor's value must change but error happend it says "Error: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format" <asp:DropDownList ID=...

WebServices .Net returning data

Hello.. I have a service method <WebMethod()> _ Public Function placeOrder(ByVal name As String, ByVal surname As String, ByVal phone As String, ByVal address As String, ByVal pid As Integer, ByVal items As Integer) As String which places the order and assigns it an ID... If the order fails for some reason (no availability,etc,...

IIS doesn't start. Error code: C0000142

My site worked perfectly fine. When I restarted IIS (for some scenarios check) - It stopped working, and gave me a page telling me to check the event viewer, there I get the following error: aspnet_wp.exe could not be started. The error code for the failure is C0000142. This error can be caused when the worker process account has ins...

Razor syntax PHP equivalent

Is there an equivalent to the new ASP.NET razor syntax in PHP? ...

dynamic creation, adding row and cols in table works, but on button click things go wrong! REVISED

select day using the drop down list select the start date using calender (causes an event), a table is made having the dates of the day selected from the start date and shown to the user. the table also contains checkbox for each row in a cell the user selects the check boxes he wants and clicks the button the button calls the method in...

cascade ASPxComboBox problem

I have two combo and one button. child combo fill on basis of parent combo key value. click on parent combo value will change on child combo,click on button show those combo selected text.I can do it bellow in my syntax.i use north wind database. <div> <dx:ASPxComboBox ID="ASPxComboBoxParent" runat="server" AutoPostBack="Tr...

Calling none-static server method from javascript?

Is it possible to call server side methods? (with postback) This will post back as if I clicked the button1. var prm = Sys.WebForms.PageRequestManager.getInstance(); prm._doPostBack('Button1', ''); The problem with that, is that I need a button on the page. I know I can use static webmethod, but I want to know if it's possible t...

Problem with getting selected OBJECT from dropdownlist

I have a problem with getting selected objectfrom my list. I bind collection of users to dropdownlist by: ddlContractors.DataSource = service.GetAllUsers(); ddlContractors.DataTextField = "Name"; ddlContractors.DataValueField = "Id"; ddlContractors.DataBind(); It's working. But when I...

How to add new object to track in Ninject after Application_Started?

Is it possible to add a new object that Ninject should be responsible for (lifetime, injection etc.) in an ASP.NET application after the Application_Started event is fired? My application needs to dynamically designate objects that should be tracked well after the application is started ...

Asp.net Ajax Client Templates and SEO Friendly

I'm using Asp.NET 4 with Ajax Client Templates for my homepage. The homepage generates a galley of pictures. Each picture has name ,description and additional details. My problem is that client templates seems to be very bad for SEO. This is because Google/yahoo bots see the page before templates load any data (images with description...

How to correctly implement CKEditor v3 into ASP.net?

I'm not so much into JavaScript, so I'm not able to use the new CKEditor right away. Until now I was using the FCKEditor ASP.net wrapper, which works fine for me. Unfortunatly the official wrapper is not for version 3. I've googled http://syrinxckeditor.codeplex.com/ but the project is over a year old and seems like a beta to me. Is th...

Do ASP.NET Requests always BeginRequest and EndRequest on the same thread?

Does BeginRequest and EndRequest for an ASP.NET HttpApplication always occur on the exact same thread for a given HTTP request from a client? The reason I ask is that I am seeing some very strange behavior where a ThreadStatic variable is not null inside of an Init method for an IHttpModule. I set this ThreadStatic variable to a value...

Windows Azure deployment problem

Hello everybody, I'm having a problem with deploing my solution to Windows Azure. I've created a basic ASP.NET web role and tried to run that against my local DevFabric and everything is running perfectly. The ASP.NET site is reachable via a browser, I can see the valid results of executed code and everything is perfect. Later on, I t...

ASP.NET (VB) Extension Method not working as expected.

I have the following Extension Method Imports System.Runtime.CompilerServices Namespace Extensions Public Module IntegerExtensions <Extension()> Public Function ToCommaDeliminatedNumber(ByVal int As Integer) As String Dim _input As String = int.ToString Select Case int Case I...

Asp.net: "New" Label On Unread Items

I have a repeater that's bound to a data source. I then have users that view this repeater. What is the best way to create a "new" label next to entries in the repeater that the user has not yet viewed. This scenario isn't like email where its unread until the user clicks on the entry; as there is nothing to click on. I want it do ...

web.config entry doesn't work in a specific site

hi, in my web.config file i've added an entry: <httpModules> <add type="HDI.HTTPFilter" name="HTTPFilter"/> but the server where i've placed the website on is not reading this entry but in other servers the site works perfectly. what the problem might be? thanks, yishai ...

global.asax works on local computer but not after i publish to server

i think this has been asked before but i just cannot figure this one out. I have added a global.asax file to my project (using asp.net with c# from vs2010) and works great on my local machine. then when i publish to our site (i publish to ftp site and then copy from the ftp folder into the site folder overwriting old files) and it doesn'...

FormsAuthentication.GetRedirectUrl needs a username

Why do I need to pass a username to this method? I just want the url that was redirected from for forms authentication... FormsAuthentication.GetRedirectUrl ...

Having trouble starting my very own MVC tutorial-sans web application.

I'm having trouble trying to understand what to do here. My objective isn't as simple as a regular old CRUD form to create a new entity, but rather a browse index page that will list all of the Evaluations in my database. Each evaluation is attached to a RegisteredCourse which in turn has a Teacher attached to it. Here is how I'd like...