I'm having trouble in validating a jQuery UI dialog using Jquery Validate upon clicking Save.
Here's my code to create Jquery dialog. It loads the dialog from a target a href URL:
$(document).ready(dialogForms);
function dialogForms() {
$('a.dialog-form').click(function() {
var a = $(this);
$.get(a.attr('href'),function(resp...
Hi,
I just got a new desktop computer with Windows 7 Pro as the operating system. I installed Visual Studio 2008 on to this new computer and tried to open a previously existing ASP.NET 3.5 solution that displayed perfectly fine on my previous computer (this previous computer used the Windows XP operating system, IIS6, and IE7 browser). ...
I was wondering why this doesn't work:
Is it possible to declaratively bind to an Object's property.
<asp:DropDownList id="ddl" runat="server"
DataValueField="Key"
DataTextField="Value.DisplayName" />
Code Behind
var d = new Dictionary<int, MailAddress>();
d.Add(0,new MailAddress("[email protected]", "Mr. Foo");
d.Add(1...
Is this LINQ statment vulnerable to SQL injection?
var result = from b in context.tests
where b.id == inputTextBox.Text
select b;
where context is an Entity and tests is a table.
I'm trying to learn LINQ and I thought that the benefit of it was that it wasn't vulnerable to sql injection, but some stuff I've see has said differ...
I'm developing asp.net application for mobile devices. I'm using Response.Redirect in most of the page. The problem I'm having here is some of the old nokia models always have a pop up warning message asking to confirm sending data to a different site if I try to redirect to another page. And when it hits the redirected page, the IsPostb...
I am running into the same exact problem as asked in this question: Entity Framework, Foreign Keys, and EntityKeys where my Foreign ID key values are being reverted back to 0 before I am able to send the information to the database. This results in the error:
The INSERT statement conflicted with
the FOREIGN KEY constraint
"FK_Sel...
where can I get these urls or web services to get online data?
for instance I used http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml for euros etc.
...
This should be a simple one. I am using a program that has themes defined in its Web.config file. I want to turn these off for a subdirectory.
I copied Web.config into a subdirectory and tried removing the theme attribute from the pages element on Web.config but that didn't get me anywhere. I got a bunch of errors about elements that ar...
the source file: http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml
I want to save as this file as "eurofxref-daily-yesterday.xml" under the wwwroot directory..
using c#..
how can I do that ?
...
Hi,
I recently ran into some strange problems. Changes to files that are not code-behind (and not gets compiled to a DLL) should not require you to recompile the whole website, and this has never been I problem for me. These should actually get compiled dynamically when you first access the resource, e.g. the first time when browsing a...
While trying to learn the ADFS 2.0 environment, I created an empty ASP.NET Claims aware application to be the RP using Visual Studio 2010.
using ADFS 2.0 I did the following:
Created a SAML 2.0 relying party using the 'Add Relying Party Trust...' wizard
Created a SAML 2.0 Claim Provider using the 'Add Claims Provider Trust...' wizard ...
I am using the IIS 7 Rewrite module to rewrite an incoming url like:
http://server/year/all
to
http://server/application/controller/year/all
Everything works fine, except when, while processing the rewritten request, I use MVC's UrlHelper.GenerateUrl() method:
UrlHelper.GenerateUrl(
"Assets",
"Css",
"Asset",
new RouteVal...
I'm using SQL Server Reporting Services and viewing the reports in a web application in ASP.NET.
To display the reports, I'm using Report viewer Web control which brings funcionalities of exporting the report and/or printing it, but requires to display a preview of the report before printing it.
I need to print a report without doing a ...
TL;DR: Which is likely faster: accessing static local variable, accessing variable stored in HttpRuntime.Cache, or accessing variable stored in memcached?
At work, we get about 200,000 page views/day. On our homepage, we display a promotion. This promotion is different for different users, based on their country of origin and language.
...
Could some one please let me know , where can I find good video tutorials for XML in the context of C# and ASP.NET?
I would also like to have learning resources on XML standards, DTD, XSLT, XSD etc. Everything related to XML.
...
Our server operations team has asked the web development team (ASP.NET) to provide a URL in our application, which the load balancer can ping to perform health checks.
What should be executed on this page? I think we should attempt a database connection to ensure connectivity between the web and database. Anything else?
...
I have a gridview as given below
<asp:GridView ID="gdNotes" runat="server" AutoGenerateColumns="false"
Width="913px" DataKeyNames="NoteId">
<Columns>
<asp:TemplateField HeaderText="Select">
<ItemTemplate>
<asp:LinkButton ID="lnkS...
Hi there,
would u recommend the best ajax upload photo control for asp.net? i need to show the progress bar while uploading the photo and limit the file extensions to jpeg, gif, and ico only.
been looking into Ajax upload jquery and multiple file upload plugin but they're not what i'm after.
thanks
...
I'm developing a page in asp.net/C# that displays files and HTML pages from a db. When viewing these files I want to have a header strip with a logo and a download file button, then the file itself below.
The VAST majority of these files will be HTML/text pages but some may be PDFs or .docx files. I just want a common header bar for a...
I have an existing asp.net mvc website that uses basic forms authentication. The site has a login page that posts back to a login action, which logs the user in via FormsAuthentication.SetAuthCookie(). I am looking to add an api to the site, as an mvc2 area, where users would be authenticated based on a token passed as an http header. ...