I have a controller that looks like the following:
foreach(var setting in userSettings)
{
//connect to db here and run a 500ms query
}
The userSettings varies per user and so sometimes there are 2 settings which means 2 500ms queries need to run, while sometimes the user has 15 settings, meaning 15 500ms queries will run.
Since ...
I have a java app with a .net application running in the java applications embedded browser.
I want the java application to call a .net WCF or web service with a username and password.
The wcf will set the user to authorized in forms authentication.
In the java desktop application I will then load a .aspx page that was protected via f...
My question is what is needed and what are the restrictions of deploying a .Net web application to a specific server.
Does the server need to be running windows?
Does the server need to have the .Net framework installed on it? (is this possible with non-windows servers?)
Does the server need to have IIS installed on it? (is this poss...
My website is in the root directory, which is /www.lebmotor.com/web/content/.
I am using this:
Dim appPath As String = HttpContext.Current.Request.ApplicationPath
Dim directory As String = appPath & "/upload/" & Left(TableName, 2) & "/"
to get the path and it's working very well.
But when I create a new sub-folder and copy some ...
It seems like The popup object cannot have a textbox or any elements that can be selected inside it?
Is there any other way on accomplishing this?
...
Is there anyway to localise an external assembly reference? Here's my situation:
I am working on Project A and it contains assembly references from Project B. Now when I release this Project to my client I don't want to have to include the whole of Project B with it. Is there anyway to force it to copy the dll's from Project B onto Proj...
I am looking for some best practices when is comes to creating EditMoels and updating data in an ASP.NET MVC app. Lets say I have a Url like so /Post/Edit?Id=25
I am ensuring the user has permissions to edit the specific post by Id on the Get request and the same for my Post in the controller. I am using the ValidateAntiForgeryToken.
Q...
I have the following HttpModule that I wanted to unit test. Problem is I am not allowed to change the access modifiers/static as they need to be as it is. I was wondering what would be the best method to test the following module. I am still pretty new in testing stuff and mainly looking for tips on testing strategy and in general testin...
Hi guys,
I usually use STATIC implementation when developing Desktop Application and I just got my head bumped on the wall when I use STATIC in ASP.NET (not a good idea)
I think I saw some feedback here before that you can use INTERFACE for passing values between Classes and Pages without using Session.
Can you guys give a good examp...
I'd like to get both C# and VB.NET sugestion.
I have an ASP.NET FileUpload control, which allows only image type. I used RegularExpressionValidator like below.
<asp:FileUpload ID="fuPhoto" runat="server" TabIndex="40" />
<asp:RegularExpressionValidator ID="RegularExpressionValidator3"
runa...
This is my webservice code which performs constructs xml file and stores to particular destination ,Is this the correct way to store the resultant xml file ,or please let me know if their are any alternate procedure to do so.
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[Sy...
since we give connection in aspx.cs file we want to give connection in web config file .how to give connection.
...
I heve designed a website in which every pages are given connection with SQL server by writing the codes in each page....Can anybody helps me out to do this job only in the web config file at once...
Thanks in advance..!
...
I've been given a .net project to maintain. I was just browsing through the code and I noticed this on a property declaration:
public new string navUrl
{
get
{
return ...;
}
set
{
...
}
}
I was wondering what does the new modifier do to the property?
...
hello folks.,
I have a.master and b.aspx .
i have some functions in my aspx page.
how to access that functions in a.master page.
thank you
...
I want to run an ASP.Net application on Windows Server 2003 and access it over a LAN.
Like http://serverIP/sitename.com
How do I do this? What configuration changes should I make to IIS?
...
hey guys, m building a web-page in that theres a tag which holds some documentary data, so i want to print that specific data and not the whole page i.e banner, textfeilds etc... since i know window.print() function prints the whole page, but how to print a sepicific area in a page.
...
I have a webservice webmethod which saves the xml output to destination
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Xml)]
public XmlDocument GetList(
string keyword1, string streetname, string lat, string lng, string radius)
{
XmlDocument xmlDoc = CreateXML( keyword1,streetname,lat,lng,radius);
//save file to ...
I didn't want to have a ton of code on one page, but to keep the code modular and simple. So in my TabContainer I have the following where each tab refers to a web page and my code is inside each web page. My TabContainer itself is inside the default.aspx page.
<asp:TabContainer ID="tabTOL" runat="server" ActiveTabIndex="0" CssCla...
I need to scrape a remote html page looking for images and links. I need to find an image that is "most likely" the product image on the page and links that are "near" that image. I currently do this with a javascript bookmarklet so that I am able to get the rendered x/y coordinates of images and links to help me determine if those are...