Is it possible to choose a specific database that will be used with the entity framework?
At this time, I use the connection string in the Web.Config as database authentication.
I have twelve databases, each of them has the same structure and the same stored procedure.
There is one database for each client. When a client wants to login...
I realise this question has been asked many times before but a lot of them are old now without an answer.
I have a need for users to be able to edit word documents from my web page.
Are there any editors, or components, that will allow me to do this?
A bit of background, the user will be able to upload a word document to my site and t...
I am currently having a problem using SWFUpload to upload a file and using an HttpHandler to handle the upload. As soon as the Context.Request.File["Filedata"] object is accessed it waits for the entire file to buffer.
This prevents me from quickly validating based on things like the filename. Also I'm mainly concerned because the beh...
1) In a standard .Net application, are classes loaded as they are required? (e.g. If I have a class with a static constructor, is that static constructor only run the first time that class is needed?)
2) In an ASP.Net MVC (or web forms) application, is the static constructor invoked on every request that uses it? Or is it only for the f...
I have the following code:
<script type="text/javascript">
var checksSinceLastPostBack = new Array();
function clientSelectedIndexChanged(sender, eventArgs) {
var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>");
var serializedCheckData = checksSinceLastPostBack.serializeArray();
if (ajaxManager != nu...
I cannot figure out, how can a random, small sleep delay can be a solution to prevent an attacker from probing our site.
This is his code snippet:
<%@ Page Language="C#" AutoEventWireup="true" %>
<%@ Import Namespace="System.Security.Cryptography" %>
<%@ Import Namespace="System.Threading" %>
<script runat="server">
void Page_Load() {...
Hello everyone,
I am wondering whether Silverlight 4 is able to capture screen as image or capture screen operations as video? Or both? Is there an online Demo to experience the effect?
I am using C# + .Net 4.0 + VSTS 2010 + ASP.Net + III 7.5.
thanks in advance,
George
...
If I use a Server.Transfer command with a true value passed for the "PreserveForm" 2nd param's value:
Default.aspx:
Server.Transfer("WebForm1.aspx", True)
...I can access the value of the textbox "TextBox1" control on the first page, Default.aspx, from "WebForm1.aspx" as follows:
lblPassedValue.Text = Request.Form("ctl00$MainCont...
The place where I work has 2 servers and a load balancer. The setup is horrible since I have to manually make sure both servers have the same files. I know there are ways to automate this but it has not been implemented, hopefully soon (I have no control over this). I wrote an application that collects a bunch of information from a u...
can any one help me
how to create iDoc File in C#?
if there any general approach is there for generation iDoc File?
...
I was wondering if there's a way in Umbraco to log errors that we get when it fails to load xslt or user-controls. Generally it shows a red box saying it couldn't load the control and stuff. Is there a way to properly log this?
Thanks in advance.
...
Hai sir,
I am having a task that, i need to insert a row in gridview but it should not effect in to database immideately. I am having a submit button in the form, whenever i click that submit button all the data in the form should be inserted into the database in their respective tables. If you can please help me.
Thanking you,
Anil ku...
Hi, I am populating a DropDownList control as follows -
public partial class UserControls_PMS_Send2DeliveryTeam : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
// SA 100928 Get the delivery teams and their respective email addresses
s...
In an MVC view, I'm looking for a way to determine if a parent entity's collection of child entities is empty, so I can decide if I need to call a RenderPartial() or not.
For a one-to-one I've been using the following:
<% if (Model.Book.GenreReference.EntityKey != null) %>
{.....}
but I'm unsure how to do it in a one-to-many sc...
i working on asp.net 2.0 and my database is sql server 2005
i am getting error
STRING OR BINARY DATA WOULD BE TRUNCATED THE STATEMENT HAS BEEN TERMINATED
ON line
cmdRegister.ExecuteNonQuery();
THIS MY CODE
protected void cmdRegisterme_Click(object sender, EventArgs e)
{
lblAmount .Text = HFamount .Value ;
stri...
I have HTML pages like example1.html, example2.html, example3.html, and example4.html. All pages have the same header, footer, and sidebar.
How can I make one master template which replicates any one of those so that I will avoid repeating header and footer code in each of the HTML pages?
My server side will be asmx web services coded...
Dear,
I am facing system.outofmemmory exception when binding a gridview with a datatable having more then 400000 records please find the below sample code for the same
GridView gv = new GridView();
this.EnableViewState = false;
gv.DataSource = (DataTable)dt;
gv.DataBind();
Kindly help me to overcome in this situation is there any lim...
I want to develope the valid xhtml doc the input doc is not well formatted i managed to correct some errors but stuck up in condition like
<span>......<p></span>...</p>
there can be any tags in place of span and p......but condition is as mentioned i want to handle this condition i m new in .net c#
plz do the needful.... thanx.
...
Hi.
i am using jQuery colorbox plugin.
it is true with asp.net page but not in asp.net user control.
what is the problem?
<html lang="en">
<head>
<meta charset="utf-8" />
<title>ColorBox Examples</title>
<style type="text/css">
body
{
font: 12px/1.2 Verdana, Arial, san-serrif;
padding:...
I'm embarrassed to ask this here because it's clearly been duplicated several times already on StackOverflow. I've read a lot of stuff including:
http://msdn.microsoft.com/en-us/library/xxwa0ff0
http://msdn.microsoft.com/en-us/library/c8y19k6h.aspx
http://www.velocityreviews.com/forums/t110056-cannot-access-strongly-typed-properties...