asp.net

Why would my webservice method get called via GET?

I have a asp.net 3.5 site with a *.asmx that serves several webservice methods. The only client that should be calling these methods is one I wrote, and it calls them using a POST request. However, my error logs show many InvalidOperationException errors due to these methods being called with a GET request. Question: What might be causi...

ASPX..Renamed a library..now error

One of my websites references a library in my solution called "Foo" That project generates a file called "Foo.dll" and the classes in it are in a namespace called "MyCompany.Foo" so far everything worked out...well I right clicked on project "Foo" and changed the filename it outputs to to be "MyCompany.Foo"....now the project generates ...

ASP.NET to PHP conversion in web development

How do I pass information back and forth in an asp.net web application throught the html forms? I know how to do this in PHP, but I can't seem to think about it through the code-behind thing (i think that's what its called). (note: i only started looking at asp.net a few hours ago. i decided to try it by recreating a simple page) ...

Best UI control to create expandable report in ASP.NET?

I have a SQL Server table full of training course progress. I want to make a report. The report is to be a list of users where each row shows their name, completion status, and percentages. They are to be able to expand each row to show sub-rows which elaborate with section by section detailed stats. What is the best UI control to use in...

ASP.NET MVC - jquery datepicker

Ok, so I'm new to ASP.NET MVC and JQuery. I have followed the following example to the letter, and I'm not able to get the datepicker working: http://codesprouts.com/post/Creating-A-DatePicker-Extension-In-ASPNet-MVC.aspx Can anyone tell me if there are any ticks or gotchas with this? Bernard. ...

Convert ASP.NET MVC App to Web Site

How would I go about using the MVC framework in the ASP.NET standard web site model, instead of the web application model? ...

how group by in Linq with 2 Field ?

how group by in Linq with 2 Field ? (from i in info group i by i.OrderId into g select new { orderId = g.Key, infos = g }); not only order by with order Id but with two field like ... group by i.orderId And i.City how this will do? ...

IEnumerable and string array - find matching values

Background: I have an ASP.NET MVC view page with a MultiSelectList in the View Model. I want to populate a label with the list of SelectedValues from that MultiSelectList object. The list is stored within the MultiSelectList with a type of IDName: public class IDName { public int ID {get; set;} public string Name {get; set;} } ...

Writing a cookie from a static class

I have a static class in my solution that is basically use a helper/ultility class. In it I have the following static method: // Set the user public static void SetUser(string FirstName, string LastName) { User NewUser = new User { Name = String.Format("{0}{1}", FirstName, LastName) }; HttpCookie UserName = new ...

Search Text Box on Master Page fires off validation error

I came across an interesting problem recently. In an ASP.NET Master Page, I have a Login Control and a Google Search Box as shown below: <div id="searchBox"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td> <asp:TextBox ID="q" MaxLength="100" AutoPostBack="false" runat="server...

Is there a non-iterating control that allows data-binding syntax to be used?

Let's say I have a single XML node of content in my code-behind. I need to get some data out of the various nodes and onto a Web form. Traditionally, I would create a bunch of Literals on the page, then do stuff like this in the code-behind: MyLiteral.Text = myXmlNode.SelectSingleNode("/some/xpath").InnerText; This is fine and good,...

What's the best way to hold an ASP.NET page until long-running operation finishes?

Javascript? Metatag refresh? Response.Redirect (to self) Server.Transfer (to self) Ajax update panel? ...

webpart control in master page

Hello all, I have a webpart in a control that I am using on a webpage. The webpage uses a master page and there is a content holder in the MP that can hold controls for alignment/design issues. Everything works well with this but the webpart control. When i put the webpart in the container i lose the ability to move the webparts around ...

How to keep a process running on a remote windows server

I need to implement a background process that runs on a remote windows server 24/7. My development environment is C#/ASP.NET 3.5. The purpose of the process is to: Send reminder e-mails to employees and customers at appropriate times (say 5:00PM on the day before a job is scheduled) Query and save GPS coordinates of employees w...

HttpHandler Returning Zero Length byte[]

I have a custom HttpHandler that invokes a webservice to get a file. In test, I invoke the production webservice and the HttpHandler returns the file correctly. When I test it in the production environment on the server, it works as well. However, if I invoke the HttpHandler from a remote client (not on the server) the filename and si...

ASP Menu bar, Static view

I am looking to create a menu bar with a specic type of "action" Similar to the bar on this website BBC Sport Its totally static and has no dynamic or "pop out" sections. When the top menu is clicked the page will re-load and display the lower level in a diffrent colour. Can this be achived with the Standard ASP:Menu control? I am ...

Fixing a row and column excel style in asp.net

Is there a way to fix a column or row so when the user scrolls down or right, the first is always shown? I'd need to replicate this excel feature in asp.net and am using a ListView control. Is it at least doable in html? I'm open to any suggestion to accomplish this ...

Comparing hand-written ADO/Sprocs w/nHibernate

Hi, I am going back and forth between using nHibernate and hand written ado.net/stored procedures. I currently use codesmith with templates I wrote that spits out simple classes that map my database tables, and it wraps my stored procedures for my data layer, and a thin business logic layer that just calls my data layer and returns the...

How to insert data in Infragistics UltraWebGrid via InsertDBRow

I'd like to add rows to an UltraWebGrid directly on the grid, which is connected to an ObjectDataSource. According to the documentation, I'm supposed to use the InsertDBRow method (there are also UpdateDBRow and DeleteDBRow) to handle database persistence. Does anyone has any example on what's the supposed usage of these methods? (I alr...

impersonation of active directory user in vb.net

hi, i've never programmed the active directory but i would like to do the following: on the asp.net site, login using a valid active directory username and password. if the login is valid, redirect to a page to do some actions. in a related task, but not part of part 1, unlock an account or change the password of an active directory a...