How is LINQ compiled into the CIL?
For example: var query = from c in db.Cars select c; foreach(Car aCar in query) { Console.WriteLine(aCar.Name); } How would this translate once it is compiled? What happens behind the scenes? ...
For example: var query = from c in db.Cars select c; foreach(Car aCar in query) { Console.WriteLine(aCar.Name); } How would this translate once it is compiled? What happens behind the scenes? ...
I've written an ASP.net site that requires the use of a 3rd party ActiveX control. Everything works as expected however when a new user visits the page for the first time they do not get a firts time prompt to install the activeX control. (the yellow bar in IE). Where do i begin troubleshooting ? ...
I have a fully functional wcf service where I can perform CRUD operations using jQuery on the client. I want this small service application to be portable so I am trying to avoid any app or web.config settings (e.g. Specific address endpoints). I have compiled my service application into a small dll file and have tried it in several di...
I'm working on a site and there are two projects in the solution a business logic project and the website project. I understand that I want to keep the entity context out of the web project and only use the business objects the framework creates but I can't figure out how to save a modified object this way. Let's say my entity model cre...
I have a 2 tiered nested GridView in ASP.NET and I'm trying to insert a new record into the child GridView. I am able to Add/Remove/Edit records in the parent table but the child table is connected to my SQL database through the code-behind, so I am unable to use the SqlDataSource control like with the parent table. I have searched aro...
The aspx.cs Code: the code itself is pretty big, and the code here is fictional, but it looks (the important part) like this: foreach (Transaction trans in vTransactionList) { switch (trans) { case 201: codehere; break; case 202: codehere; break; case 203: ...
Every time I refresh the browser, my button's event handler fires again. How do you prevent this? ...
I have an ASP.NET web application where a Microsoft Media Player object on the page (in IE) is issuing a request for an .aspx web page. In the page I use TransmitFile to send back the audio file. This works fine most of the time. But, in some cases (a combination of IE version and a specific client, at least from what I can see) there...
What am I missing here??? For some reason, anytime I reference a .png from my application.css file I get prompted for credentials. BUT, I can reference .gifs, .jpegs, etc... from my images directory no problem. Routes are set up right now like this ... public static void RegisterRoutesTo(RouteCollection routes) { routes.Igno...
I want to know what features in app structure/code should never miss when we build MEDIUM SIZE ASP.NET web application. I.e.: Testing. Logging. Configuration file. CSS(theming). Master page. and so on. Could you please increase the list to see if we find a "never miss" list? Thanks in advance ...
Hello i have the code below to upload pictures for my application. I will like to add a line or more to this code that will display a success message like this"Picture has been uploaded successfully" I know i will need to add a label control to display the message but i dont know how to go about. Here is the code: Imports System.Data ...
I have a solution with quite a few different MasterPages / BasePages which all inherit from somewhere else. My problem is that I have a virtual string in BaseMaster, which is overridden by BaseManagement, but when I try to access this string I always get the base value The point of inheriting masters and pages is obviously to avoid havi...
I am getting the following exception from my ASP page during rendering: Cannot have multiple items selected in a DropDownList. at System.Web.UI.WebControls.DropDownList.VerifyMultiSelect() at System.Web.UI.WebControls.ListControl.RenderContents(HtmlTextWriter writer) at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter w...
i need to know that is there any way through which i can embed Excel sheet into ASP.Net as i want to allow user to give multiple records at a time and then can use only single event to insert all those records into the database as i want to avoid event execution for every record ...
Asp.net How can i get the transaction history of paypal account on my website using paypal email id and password.As I want to Import the Paypal transaction logs in my website for financial management on my site... ...
Hi I need to validate two fields in an Asp.net form, where the requirements is like any one of them is required. For example, there is Page title and sub-heading input boxes, so any one of them is required. Can I do it using the validation controls Asp.Net provides? Any kind of help is greatly appreciated. Thanks in advance. ...
I am trying to have a HTML form post a file to a Asp .Net Web service method. Everything seems to work but there is no form or files on the request object in the web method. any ideas? Html Form <form id="formPost" action="service/Post" enctype="multipart/form-data" method="post"> Post File <input id="uploadfile" type=file /> ...
Hello, I have error handling in Application_Error event of globals.asax file. Inside this event, I'm using Response.Redirect(~errorview.aspx) method, for redirection to site which is able to handle errors in user friendly way. Everything works fine, unless exception is rising in Application_Start event. When error occurs there, my ap...
how to force download dialog for a text file on the server? when i used the blow code so the dialog window was for aspx file ... (why?) string FileBankPhysicalFolder = Server.MapPath("~/FileBanks/"); string Name = "FileBank_" + "Melli_" + Session["Co_ID"].ToString() + "_" + RadcbDateOfPardakht.SelectedValue.Replace('/',',') + "...
I'm trying to programatically add a second class to a <td> element in C#. The element I want to add the class to already has a class assigned to it. If I do something like myObject.CssClass = "MyClass"; it simply overwrites the original class. I suppose I could do something like myObject.CssClass += " MyClass"; but that's ugly.....