VB Brackets in Enum?
I'm finding this in some legacy code and just curious what the brackets are for? Public Enum myEnum none = 0 abc = 2 def = 4 ghi= 6 [jkl] = 8 mno = 9 End Enum ...
I'm finding this in some legacy code and just curious what the brackets are for? Public Enum myEnum none = 0 abc = 2 def = 4 ghi= 6 [jkl] = 8 mno = 9 End Enum ...
Hi I setup a IIS application from within an existing application. Will the parents web.config be inherited or is that something I have to set explicitly? ...
In my asp.net application, I am trying to open a particular report. I have the ReportViewer Control set with width of 100% and height of 100%. Now I expect that to mean that the report will take up the entire page. Well to my surprise, it does not. In IE7 while it takes the entire width of the page, it only takes up a small portion o...
Is it possible to exclude a folder in a web project from being published? We've got some documentation and scripts that included in a particular project folder, and are added to the project, but when I do a VS publish, I don't want them to go up to the production server. I know they shouldn't be in the project, but I thought I'd find a ...
I am trying to create a simple user control that is a slider. When I add a AjaxToolkit SliderExtender to the user control I get this (*&$#()@# error: Server Error in '/' Application. The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). Description: An unhandled exception occur...
I have a WCF service that I am deploying in a shared hosting environment. Because of this I have to specify baseAddressPrefixFilters (see answer here for why this is necessary). Setting the base address prefix filters happens in the web.config like so... <serviceHostingEnvironment> <baseAddressPrefixFilters> <add prefix="http://e...
Consider the following: public MyCustomHeader MyHeader; public New() { //MyHeader is NOT instantiated } [SoapHeader("MyHeader")] [WebMethod()] public bool MyFunction() { //MyHeader is instantiated, but when was it instantiated? } ...
I want to show a thumbnail image inside a gridview instead of the text. This is what I am trying: <asp:TemplateField HeaderText="Image" SortExpression="Image"> <EditItemTemplate> <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Image") %>'></asp:TextBox> </EditItemTemplate> ...
I have an application that is getting yellow asp.net error screens appended to the response. The page will look normal, and then have the yellow screen below the Html. I have narrowed this error down to the application reseting during the response, and the session dying. So if I start loading a page, and save the web.config, it gives me ...
I am receiving this error and I'm not sure what it means? Object reference not set to an instance of an object. ...
hello. when I create folder for every page and remap those in web.config , appeared this problem . 1)I can't see content of pages. 2)When I use navigation controls , my web.SiteMap don't work and don't show path of pages. what is problem in my project , and what I solve that ? this link is my web site : Urlmapping code : <urlMappi...
I'm using the Linq to Entities. I've got my main table, Employee setup with a field named vendorID. Vendor ID is a foreign key into the Vendors table. As it is right now, the Employee object does not directly expose the vendorID. Instead, I can only access it this way: var employee = (from e in context.Employees.Include("tbl_vendors") ...
I am manually creating users in my asp.net user tables with the membership.creatuser(). Is there an easy way to test to make sure the account is created and or valid after I create it? MembershipCreateStatus status = new MembershipCreateStatus(); Membership.CreateUser(user.FirstName + user.LastName, user.Passw...
So I am doing some fairly simple JSONP stuff using Jquery. General structure Site lives on domain A Javascript lives on domain B JSON services also live on domain B The site calls a method which jsonp calls out to a json service (.net) , in .net i set the session and return. This all works fine, except in IE it is not storing or...
I'm looking to write unit tests for a method such as this one: public override bool ChangePasswordQuestionAndAnswer(string username, string password, string newPasswordQuestion, string newPasswordAnswer) { ISPMembershipUserDao userDao = GetISPMembershipUserDao(); if (ValidateUser(username, password)) { SPMembershipU...
I am building a new website and it will contain a lot of image manipulations and i found imagemagick which seams very good, but the problem as a .Net developer i can't integrate it in my website. Is it possible to use in .Net application/websites? How to add to reference and which file to add? Any good examples? ...
I want to pass the sessionID as a json parameter, I can see how to override SessionIDManager and such, but this just covers custom creation/validation of sessionID's as opposed to where it actually gets the sessionID from. There is of course 'cookieless' which puts it in the url, but that doesn't work for me either. So i'd like to over...
I have one of those annoying problems where something that used to work stopped working. Check out this code: Assembly _abc_assembly = Assembly.LoadFile(“c:\junk\abcabstract\bin\abc.dll”); ABC.ContentAttribute attribute; attribute = (ABC.ContentAttribute)_abc_assembly.CreateInstance("ABC.TextAttribute"); ContentAttribute is defined i...
I need to process large image files into smaller image files. I would like to distribute the work to many "slave" servers, rather than tasking my main server with this. I am using Windows Server 2005/2008, C#, and ASP.NET. I have a lot of web application development experience but have not developed distributed systems. I had a notion th...
At some long-ago Flash conferences I recall seeing a demo of a Flash app that had a color picker. Based on the user's color choice the app would show the user a set of images within the approximate range of that color: a bunch of mostly red images, a bunch of mostly blue images, etc. I'm looking for two things: 1) A link to a demo of ...