Here's the scenario:
You have an ASP.Net application supported by a Microsoft SQL Server database, and for this example there won't be any caching.
For each page in your web application, what's more efficient:
Attempting to condense everything you need into one (or a few) stored procedure calls that return multiple tables with all of ...
I'm using jQuery to handle all my ajax needs for an ASP.NET site coded in VB. When I use the built in $.ajax function to POST to a code-behind function and there is an exception, it simply exits the function, and shows an error on the client side.
Besides making debugging difficult when coding, the bigger issue is that the Application_E...
Hi,
I have a website which uses themes. Depending on the url (if it is A.something.com or B.something.com, where A and B represent clients), I will load a different theme. The intention is to use one codebase for different clients. I have an app_themes folder, several themes inside, for different clients, and different CSS files for eac...
I need a dropdown list on my page that will allow a user to select their state. Since this is probably a control that will be used elsewhere, I thought it would be a good idea to create an MVC View User Control that could be reused.
I was thinking the control would look something like this:
<select name="" id="">
<option value="AL"...
The company I work for uses an ASP.NET grid component from a commercial vendor, but won't upgrade the buggy old version we have to a newer version because of cost. Are there open-source alternatives to these Uber-Grids that we could take advantage of?
I'm specifically looking for hierarchical drill-down capabilities. I know there are ...
I'm starting a new job and am inheriting a asp .net web application on the 2.0 .net framework. The application works alright. It published successfully from vs 2005. I created a new virtual directory in IIS and pointed to the precompiled directory just published.
When I load my application, I get an error that reads as follows:
XML Par...
What is the best way to build a dynamic 'Threaded' ASP.net radio button list? I am not that familiar with RadioButtonLists and it is my understanding that ASP.net doesn't like the application of individual styling of ListItems.
...
Hi,
I have some code that opens a word document using VBScript on an ASP.net page:
set objWord = CreateObject("Word.Application")
objWord.Visible = True
objWord.Documents.Open "c:\inetpub\wwwroot\JSWordTest\test.doc", False, False, False
This works great but opens the word doc in another window. Ideally I would like to make this look...
How can I tell if a method is running in the context of an AJAX postback (i.e as the result of a UpdatePanel (asynchronous) postback)?
According to egoldin Page.IsAsync is a very common confusion that has absolutely nothing to do with AJAX.
The correct approach is to use ScriptManager.GetCurrent ( Page ).IsInAsyncPostBack.
...
This is probably a no brainer but...
I've just opened a solution in VS2008 and for some reason the compiler doesn't recognised previously compiled errors.
I hit build and I get 100s of errors :
Name 'IIf' is not declared.
Name 'IsNumeric' is not declared.
Name HttpUtility is not declared
etc..
Think this must be something to do w...
Using asp.net, I need to generate a snapshot of an youtube video.
I have access to the code that youtube generates for integrating their vids into other sites.
Basically what I want to do is what HTML Snapshot does, take a picture of some html, but I`m only interested in the video.
How can I approach this in asp.net, (buying HTML Snaps...
Hey all,
I'm trying to create an ASP page that has a bridged connection with an SQL Server 2005 database (separate sever from the ASP's server). For this I am trying to use a Windows Authentication setup. I have my name with full rights to the SQL server yet I am still getting the error 'Login failed for user COMPANY\name'. To see if th...
Consider the following code:
<a href="#label2">GoTo Label2</a>
... [content here] ...
<a name="label0"></a>More content
<a name="label1"></a>More content
<a name="label2"></a>More content
<a name="label3"></a>More content
<a name="label4"></a>More content
Is there a way to emulate clicking on the "GoTo Label2" link to scroll to the ap...
I have a control that is basically functioning as a client-side timer countdown control.
I want to fire a server-side event when the count down has reached a certain time.
Does anyone have an idea how this could be done?
So, when timer counts down to 0, a server-side event is fired.
...
I am attempting to create new membership users in an Ektron CMS400.NET-based website by through calls to the User web service API from a remote site. One of the methods I intend to utilize, AddMembershipUser has a remark in the documentation indicating "A user with administrator privileges must be logged in to perform this operation.". I...
Just looking for the relevant documentation. An example is not necessary, but would be appreciated.
We have a situation where we are having to create 100s of virtual directories manually, and it seems like automating this would be a good way to make the process more efficient for now.
Perhaps next year we can rework the server env...
I am new to the MVC practice, and would like to start with Microsoft's MVC. Can we recommend a book or tutorial that can help a newbie get started?
...
Hello all,
I'm looking at having certain users access one database and other users accessing another database based on the company they belong to. What would be the best way to handle the connection strings and make sure the user connects to the right db when they login?
Thanks for any ideas.
...
How would I format the standard RSS pubDate string as something closer to ASP.NET's DateTime?
So, from this:
Wed, 29 Oct 2008 14:14:48 +0000
to this:
10/29/2008 2:14 PM
...
I have a linq query and I am trying to put that in to a serializable object for a distributed caching (Velocity) but its failing due to a LINQ-to-SQL lazy list
like so
return from b in _datacontext.MemberBlogs
let cats = GetBlogCategories(b.MemberBlogID)
select new MemberBlogs
...