I have implemented an IHttpAsyncHandler. I am making about 5 different AJAX calls from a webpage that has widgets to that handler.
One of those widgets takes about 15 seconds to load(because of a large database query) the others should all load in under a second. The handler is responding in a synchronous manner.
I am getting very inconsistent…
How do I use regular expressions and search and replace to turn this
[UserID] = <UserID, int,>
[UserID] = 123123
[UserID] = asd123123
into
[UserID] = [UserID]
[UserID] = [UserID]
[UserID] = [UserID]
In other words I want to take everything from left side of the line up to the '=' character and replace everything on the right side of…
Using MSSQL2005, Can I truncate a table with a foreign key constraint if I first truncate the child table(the table with the primary key of the FK relationship)?
I know I can use a DELETE without a where clause and then RESEED the identity OR
Remove the FK, truncate and recreate but I thought as long as you truncate the child table you'll be…
So basically I have this
public class Ticket{
public TicketNumber {get; set;}
..a bunch more properties...
}
I want to add some properties using a subclass like this using subsumption instead of composition.
public class TicketViewModel(Ticket ticket){
//set each property from value of Ticket passed in
this.TicketNumber =…
I have a LINQ query that returns some object like this...
var query = from c in db.Customers
where ...
select c;
Then I do this
List<String> list = new List<String>();
foreach (ProgramLanguage c in query)
{
//GetUL returns a String
list.Add(GetUL(c.Property,c.Property2));
…
I'm making a request from an UpdatePanel that takes more then 90 seconds. I'm getting this timeout error.
"Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out."
Does anyone know if there is a way to increase the amount of time before the the call times out?
I am making some updates to a php site which I did not design. I have a local copy of the site. At the top of each page there are settings for the host name for the db connection.
Is there someway I can setup a pointer to the remote address. The address is 'mysqlhost' for example and I want that to point to 'mysql.myhost.com'. I tried…