C# .NET: Can I compile a file's file path into the file?
If I have an ASP.NET code-behind, is there a way to compile the path of that file into the file somehow? ...
If I have an ASP.NET code-behind, is there a way to compile the path of that file into the file somehow? ...
Im trying to share a wildcard SSL cert across many applications. The way it would work is users would have websites with thier domain, but when they need a secure connection they would be redirected to a designated SSL site like https://client422.domain.com Can session data be shared across the domains even if I place both domains on a...
The goal is to generate some html reports and html emails using templates hosted within the app perhaps using cassini so the report files will be saved in app_home\Report\Templates*.MyReport file The app would allow a report (.aspx) page to be selected, loads it using cassini/asp.net hosting api processing some custom markup to popul...
I have an ASP.NET page with a cs script file to take in data and then post it to another site. On the site I am using a regular HTML form with asp:TextBox and asp:HiddenField values throughout it to collect/hold data. The problem I'm having is that some of the key data on it have to be hashed and salted before they are posted to a diff...
I'm using ASP.NET Roles with a special role "Must Change Password". If a user has not changed their password for more than 90 days, they are automatically added to this role. This happens during the user login process. Authorization rules then deny that role access to all of the application except the "change password" page. Generally t...
I'm using an asp.net Menu (asp:Menu - the built-in one) and I want to assign an image to each MenuItem at design time, but the menu never changes. How do I do that? ...
On a control like the GridView, you can specify the HeaderStyle attributes as attributes of the GridView element (e.g., HeaderStyle-Wrap="false"), or as an attribute of the HeaderStyle child element. Is one way better than the other? Or, is it just a readability preference? <asp:GridView ID="myGrid" runat="server" HeaderStyle-Wrap="fals...
I am trying to pass Eval to Html.RenderPartial inside ASP.NET Repeater but it does not work can any one help? <asp:Repeater runat="server"> <ItemTemplate> <% Html.RenderPartial("UserControl1",Eval("Title")); %> </ItemTemplate> </asp:Repeater> by the way I know that I can do it in other ways but ...
I was recently tasked to, "Test every scenario you can think of and try to break the component" What might be sensible in 'everything' when the application is a website? NOTE: This particular site is ASP.NET with MS-SQL, however, I would like to know what would be covered in general as well. Thank you all for the great responses! ...
How should one split up the controllers in an ASP.NET MVC site? For example, the default project has a HomeController and an AccountController. Should there be one controller for each section of the site, or something else? I'm learning how to use the MVC framework, and any help would be appreciated. ...
I'm using aspnet_compiler.exe to precompile my application for deployment. However, I don't think it's working, for two reasons: I see my applications assemblies under C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files, even if i manually clear out this directory & restart the app. The performance hit to JIT the app...
I have a asp:GridView which contains a asp:TextBox within a TemplateField. I would like to obtain it's ID for use in javascript. Something like this: <asp:TemplateField> <ItemTemplate> <asp:TextBox ID="textDateSent" runat="server" /> <input type="button" value='Today' onclick="setToday('<%# textDateSent....
Here is my code: partial void OnisApprovedChanging(bool value) { this.dateApproved = DateTime.Now; } 'dateApproved' is updated in the business logic, but this change is not being applied to the database table. I've seen some examples where DateUpdated columns are updated whenever any edit to a table is made...
Hello, I’d like for CreateUserWizard control to send email notifications to created users. Since I don’t host my own SMTP server, I tried to use my gmail account to send those notifications, but I kept getting “Must issue STARTTLS command first”. One site suggests this is due to CreateUserWizard’s SmtpClient using System.Net.Sockets....
If I put something like this in my ASP.NET web application's web.config: <authorization> <allow roles="MyUsers" /> <deny users="*" /> </authorization> and then have an ActiveDirectory group SpecialGroup that is inside MyUsers, will a member of SpecialGroup be allowed to access my application? ...
I've got a solid book on learning ASP.net 2.0 with VB & C# - my concern is whether I should push forward with this or pick up the newest edition which covers ASP.net 3.5. Basically, I'm writing a contact-management style web app for my church, and I really want to use ASP.net. I'm willing to invest in the 3.5 book, if it's going to b...
Hi guys I have just started using OutputCache on some of my controller actions and I am not quite getting the response I would expect. Basically I have set Location = OutputCacheLocation.Any and the http header is as follows: Server ASP.NET Development Server/9.0.0.0 Date Wed, 15 Jul 2009 02:14:21 GMT X-As...
An ASP.Net application we have recently developed is creating what I believe to be non standard Guids. The Guids are being created using the .Net framework method Guid.NewGuid(). Here are some examples of the guids created: 00000000-0000-0000-210f-0160000000f6 00000000-0000-0000-c02b-0160030000fc 00000000-0000-0000-ca2b-0160030000fc 000...
I have some confusion as to the use of + and & in ASP.NET and VB.NET. See the following code: Dim dtUser As DataTable = GetDetails() Dim serverPath As String = Nothing Dim virtualServerPath As String = Nothing Dim parentDir As DirectoryInfo = Nothing Dim childDir As DirectoryInfo = Nothing serverP...
I have a partial class (the main class is a LinqToSql generated class) <DataObject(True)> _ Partial Public Class MBI_Contract <DataObjectMethod(DataObjectMethodType.Select, True)> _ Public Shared Function GetCancelableContracts(ByVal dealer As Dealer) As List(Of MBI_Contract) Return Utilities.GetCancelableContractsFor...