I'm new to .NET and while starting to learn ASP .NET MVC2 framework I see that you can create a .mdf file inside the App_Data folder and connect to it or you can connect to a SQL Server.
What is the difference between these to methods of interacting with a database? What are the advantages/disadvantages of one over the other?
...
Hi, I have a Quartz.NET application where I need the administrators to be able to modify the job details - mostly information in each jobs datamap, but also things like the triggers - here is my code I'm using
protected void ButtonSubmit_Click(object sender, EventArgs e)
{
JobDetail jobDetail = sched.GetJobDetail(hdnID.V...
Ok I'm sure this is pretty obvious. But when you say session state is persisted on the "server" in memory, are we talking about IIS or what? When I think of Server-side session State, I think memory in terms of IIS app pools and such. Am I off base or missing anything here?
http://msdn.microsoft.com/en-us/library/75x4ha6s.aspx
the...
I'm trying to do a web request from a webpage and I'm having problem on production server.
The web application is a intranet web site with this configuration on web.config:
<authentication mode="Windows" />
I use it to get the domain user authentication.
Now I'm trying to load a web page to parse some information, I used the code b...
I have class Foo which defines property Id. Class Bar inherits from Foo (class Bar : Foo).
If I assign a List<Bar> to Repeater.DataSource then use Eval("Id") in the ItemTemplate, the following exception is thrown:
DataBinding: 'Bar' does not contain a property with the name 'Id'.
Any way around this? Id is a valid property of Bar...
Working with asp.net, and I am trying to find a way to change default ENTER key press target on client side. Based on something like the currently focused div or input.
the target would be asp.net button controls with postback event.
Looking for solution for both IE and Firefox.
I am also using "WebForm_FireDefaultButton(event, contr...
Hi,
I have a asp.net web application that uses Entity Framework. The application data layer uses a method outlined by Jordan Van Gogh found here. In a nutshell, this method uses one shared objectcontext instance per http request and is disposed of using a AspNetObjectContextDisposalModule that inherits IHttpModule.
I have added anot...
I have an ASP.NET MVC2 application that supports visualization plug-ins/providers. The IVisualization interface is defined in a common assembly which is referenced by both the ASP.NET MVC2 app, and any visualization providers.
In the Visualization controller, I have a method which returns all the applicable visualizations for a given se...
I am using VS2010, .Net 4. I am trying to add a ScriptManager to my page, so I can reference an AJAX Enabled WCF Service. When I add the ScriptManager control to my page and view it - I get the error shown below. I have no clue how to resolve it. I get the error by simply putting the control on my page (not reference the WCF Service)...
i have a asp:TextBox control on the page. i'm setting it to a TextMode="MultiLine", I am not setting a number of rows or columns. I am setting a width and height in CSS for the control.
asp.net is still adding, what i assume is a default, rows and cols attributes on the rendered control. cols="20" and rows="2" this isnt an issue in any ...
When you need to store sensitive data such as CCs or SSNs, do you:
1) Build your own encryption routine within the application, define a secret key somewhere in a config file, and then manually encrypt/decrypt data going to the database.
2) Push all the problem to the database, using the built in DB capabilities (I think most vendors c...
I haven't gotten into ORM frameworks much yet, and could use some input from experienced practitioners. Some of these questions may be naive. Please bear with me.
In mapping objects to relations, do these frameworks also suggest indices that may be necessary for the queries to execute efficiently?
The queries generated by ORMs, are the...
I have an asp.net app which uses legacy COM interop library. Works fine until memory reaches somewhere around 500Mb and then it is no longer able to create new COM objects (get various exceptions, e.g. Creating an instance of the COM component with CLSID {FFFF-FFFF-FFFF-FFF-FFFFFF} from the IClassFactory failed due to the following erro...
Is there any conventions should I follow while using QueryStrings in ASP.NET? For eg: which is better one? 1 or 2 ?
1. url?stock_trnasfer_ID=10
2. url?sid=10
...
I got this div tag who's background image's being set in the CSS using some method like this..
Inline CSS:-
.id0, .mySprite:hover div
{
background-image: url(<%=GetImage()%>);
background-repeat: no-repeat;
width: 728px;
height: 243px;
}
HTML:-
<div class="id0"></div>
Now do I need to set ru...
Hi,
Say I have an aspx page (page.aspx) and in the page load event I have a code to generate a txt file. Here the sequence of action:
type the address in the address bar of IE browser (e.g. http://localhost/somesite/page.aspx) --> this will execute the page load event and generate the txt file.
Delete the generated file above and In t...
When we disabled the viewstate in gridview its lose value but this case not true with Textbox control why?
...
I want to get currently logged in active directory user name/details.
Here, User does log in to machine with its AD username and password. How can i get this user name and other details in Global.asax file for Application_AuthenticateRequest() Event.
I have used
System.Security.Principal.WindowsIdentity.GetCurrent().Name
But, when i...
NET. The calendar control is displayed in a popup window when pressing abutton and the selected date will be displayed inside a Textbox control.
...
I have a sprite image that is the background of a div and the div contains "li" elements with anchor links in them..I want that when user hovers over links ..diff parts of sprites' image are displayed in div's background..
now sprite was working great until I added a master page to my aspx page..the image hid behind the "Links"..but whe...