Search:
Type: Posts; User: Serge
Search:
Search took 0.93 seconds.
-
Based on the picture, this should be something like this:
<style type="text/css">
html, body
{
height: 100%;
}
.container
-
Or you can use FREE SignalR library (created by 2 clever guys from Microsoft)
http://www.asp.net/signalr
They have a FREE (open source) CHAT (with file uploads, avatars etc)...
-
I would recommend using ImageResizer free library (you can get it from NuGet). This library does a great job of resizing (or keeping it original size) but the quality is extremely good.
...
-
Visual Basic is not a database engine, so the question should really be: does "this particular type of database engine" have this function?
For SQL Server, you really have 2 options.
1. Use...
-
Use <httpRuntime> tag instead to define your upload limits, e.g:
<httpRuntime executionTimeout="183900" maxRequestLength="100000000" />
-
Look up model binding. Visual Studio has built-in templates for View, Edit, Create etc. Try creating a new View and and in the "VIEW CONTENT" dropbox, select LIST. VS will generate a list of items...
-
DispalyFor is used to bind your model values to certain types. Personally I think its an overkill on MS part. EditorFor is another story. If you need to include a "reusable" piece of html in your...
-
Run your SELECT separately and take a look at the execution plan. The execution plan will give you a hint where your bottleneck is. Once you find your bottleneck, you will most likely add another...
-
These weird 3 characters are the UTF-8 BOM, which is actually discouraged by the Unicode standard. You may disable it using:
var sw = new IO.StreamWriter(path, new...
-
Actually NOT IN clause is the slowest because it doesn't use indexes. Left join will not use indexes ONLY if the records don't match which should be faster because you are matching a "subset" of...
-
You can setup a mirror using SQL Management Studio (although you can also do it through T-SQL). Every db administrator absolutely MUST backup a transaction log as well as database itself. Log grows,...
-
I know this is a fairly old thread but I wanted to drop a few words about mobile OS'. People who don't see "mobile" apps replacing desktop don't realize that ONE of every SEVEN people on the planet...
-
Instead of saving the file as JPG, have them save the file in loseless PNG. PNG supports alpha channel (transparency) and all browsers support png files. Besides, according to web design, all...
-
I wouldn't recommend storing files as a FILESTREAM unless you are planning on "searching" through contents. Filestream was created to help people to have ability to search contents of files. In the...
-
I would recommend setting up a second (windows 7) sql server as a mirror instead of replication. With mirrored sql server, you will automatically be connected to the "windows7" if the main db server...
-
I wonder why nobody mentioned that you CANNOT get a recordset by INSERTING records into a table. You first insert records then read them into your recordset.
This code ->
set rs =...
-
That means your subquery (select TestID from CalibrationTest.dbo.Main) returns NULL. Check your Main table to see if oldTestID is there.
-
If you store your timeoffset in positive number but sure that they should be negative, you have 2 options:
1. Replace timeoffset value in the DB to have correct values (i.e -4 to -10), you can run...
-
Do you need to find out if your "db" time in the "allowed" time frame of the client's "local" time?
-
It's a lot simpler :) Just convert your timezones to UTC, then do DateAdd function (in DB) or DateTimeVariable.AddHours(Timeoffset) to convert it to your CLIENT's time. Then check between allowed...
-
You can just use Application.ExecutablePath to get the directory of your application.
-
If you need to have a database that will display local datetime to clients then you need to ALWAYS save the date in UTC format. Each client will have a timeoffset that you will have to calculate...
-
Indexes are also used in ORDER BY clause. Since he is using 1 column in WHERE and another in ORDER BY, he should have a composite index on both columns. When indexing column(s) you also specify...
-
How big is your table? Do you have indexes setup? According to your query, you should have a composite index on 2 fileds (APHFChkNo, APHFSeqNo desc).
-
Database is really not designed that way. All the data is separated by tables. Unless you have some cleaver UNIONs setup (making sure the shape of your table fields are the same), there is really no...
-
I'm not sure about WebForms but with MVC it is incredibly easy to create Mobile views, they live directly in your application. Mobile API will recognize devices and switch to mobile views instead of...
-
If you don't mind spending money, Ants Profiler is the king in this area. It can pin point your memory problems, code problems (pointing to an exact line of code that takes long(er) etc). They have a...
-
Weather you use VB or C# is irrelevant, you would still have to use javascript/jquery in your page. Javascript is required to communicate with the SignalR hub (if you are using hubs).
-
How are you going to use those files in DB? Are you going to search by file contents or just search by their filenames? If you want to search by file contents then yes, filestream makes sense. If you...
-
If you need a Document database (NoSQL), I would chose MongoDB over RavenDB, besides MongoDB is free.
-
You can also do a straight through IMPORT into SQL Server. Select Access as your source. Then write a t-sql script to change each table to use identity. You can query sys.tables, loop through them...
-
The reason a lot of people are having a tough time moving from VB6 to .NET is because VB6 (and early) was never an object oriented language, more like Object Based. VB6 has lots of static function...
-
You can try to use body.onblur event and do a location.href = '/account/logoff' (but it will not work 100%). Also you can specify a small timeout in your web.config (default is 30 minutes).
...
-
My personal view on EF is that if my application has many concurrent users, I would never ever use EF. It's the slowest framework there is. Although MS has optimized it a bit in 4.5, its still slow...
-
You should assign a function call in your A tag, then change location.href to your ActionResult. Do not use void. You don't have to use an HTML helper because you don't really need your URL to go...
-
Or you can just execute a dynamic sql passing your variable with "IN" values.
-
Run a SQL Server PROFILE and monitor your sql statements. Navigate to the page/form where you expect to have that SP to run, check back in the profiler which SP was ran.
-
You can accomplish it in 2 ways:
1. Export data to SQL Server and then manually change the NUMBER field to include identity.
2. Create a table that already defines that field as identity, enable...
-
The reason it worked with a ViewBag is because you explicitly assigned value to it.
This code:
var viewModel = db.stp_getEmployees(0, 1, null, "", "[Name]");
ViewBag.Employees =...
-
You cannot copy those 2 files while the database is attached and live. SQL Server has it's own format to store both database and the log in 1 file (unless you want it in .sql file as an export).
|
Click Here to Expand Forum to Full Width
|