I have a need to push out a file package that includes a driver via my website for download. The only issue is it cannot be transferred in ASCII mode or else it becomes corrupt. I've looked at alternatives for FTP download but would rather not have an application that is created that can be downloaded just to transfer files. I'm looking ...
I have an ASP.NET page and I am trying to quickly match the validation controls that are tied to a particular textbox (text input) using a jQuery selector. The validation controls render as a span and the "controltovalidate" property renders as an expando property. Here is a test example:
<html xmlns="http://www.w3.org/1999/xhtml" >
<he...
I have a currency textbox , where the currency is in french language (using ',' instead of ',' and vice versa)
I added MaskedEditExtender but automatically it translated the '.' into a space!
Here you are the code:
MaskedEditExtender oMaskedEditExtender = new MaskedEditExtender();
oMaskedEditExtender.ID = "MEE" + txtMoney.ID;
oMaskedEd...
I just upgraded a site to .NET 4 which is using the XtraReports reports, and now the toolbar has stopped working. Specifically, it renders ok except that it displays blank instead of the current page in the page dropdownlist, and clicking on any of the buttons in the toolbar does nothing. Is this a known issue with a known workaround/f...
I know the default routes in MVC include an id param which often maps to the identity of an entity as it's stored in the database. Now, often this is OK, but what about when you don't want someone to be able to manipulate it? Quite frankly, on many business apps this is very common. For example, you don't want someone to change the accou...
I was able to create a dropdownlist for my MVC project, but the value is not selected as selected value on the dropdownlist. It just shows whole county list from the first.The value is from database. I tried find it from previous post, but it was quite confusing. Please, suggest me for any idea.
Controller Code
public ActionResult Edi...
Getting the following error message when web app attempts to send email from dev machine: WIN7 VS2010 .NET 4.0.
[SmtpException: Command parameter not implemented. The server response was: : Helo command rejected: need fully-qualified hostname]
Code executing is:-
'###########################
'# Divert to C.S. if on Test
'#...
Hello,
I am still in the process of learning Asp.Net. I have a question . I was using an if condition in which i was checking dataset values. It is throwing me an exception whenever it is checking the condition as the dataset has not got any value. How to overcome this.
Code for this is here:
DataSet ds = merchant.getIsactiveIsconfir...
Hello, I'm trying to create a "Who is" web part for a SharePoint 2010 project i'm working on.
This web part is supposed to select a random user from SharePoint profiles and display his/her name, department and phone.
The problem is that i couldn't find a way to get a random user directly from the User Profiles, which is what i'd like t...
Note: The following is just an example.
I'm pretty new to ASP.NET MVC and I'm trying to get my head around how validation of dropdown lists work. I have the following property in my ProfileViewModel class:
[DisplayName("Gender")]
public bool? Gender { get; set; }
null is meant to mean "unknown", true female and false male. In the vie...
I've got a Jquery function that I wrote which blacks out the screen after a certain amount of inactivity, creates a pop-up that allows the user to click a button to stay logged in, and logs them out (closing the application window) if they do not respond in time.
The environment is ASP.NET (VB). We don't technically use master pages, b...
I have a post build event that combines my JavaScript files and outputs to Production.js, however if Production.js is not checked out, the build fails.
Is it possible to automatically check Production.js out when a project is built?
[Edit]
If possible using a post-build event, does anyone know how to do this? I am using Visual Studio...
I have <asp:GridView /> control on the form and <asp:LinkButton /> when there is no any data in GridView, generated HTML of LinkButton looks like that
<a href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$contolPanel$ctl00$ctl00$addNew','')" id="ctl00_ContentPlaceHolder1_contolPanel_ctl00_ctl00_addNew">
<strong class="CmsButR...
I've inherited (no pun intended) an old ASP.NET 1.1 project that is now .NET 3.5. It is designed with base class that inherits from PageBase. All of the subsequent aspx pages inherit from this custom pagebase. It currently works by generating a bunch of html text in LiteralControls for the headers and navigation bars and dropping it into...
How do I pass an email address with a plus sign in my input parameter?
Username Value is "[email protected]"
http://domain.com/[email protected]
?
It does not seem to work?
...
I have a sitecore page with an ASP dropdownlist, and the data on the form is populated from the selected value of the dropdown. When the selected item of the dropdownlist is changed, a postback is fired. In the postback, the new selected item is added to the querystring and the user is redirected (for linkability).
I recently enabled HT...
Im using a LINQDataSource to populate a GridView of Universities.
Each University has an associated State, which is in another table and associated by a foreign key (StateID).
I have a TemplateField in the GridView so that when you view it normally it displays the StateName which comes from the State table and when you edit it shows a ...
I am using ASP.Net Forms Authentication. My Web.config looks like this.
<authentication mode="Forms">
<forms loginUrl="login.aspx"/>
</authentication>
<authorization>
<deny users="?" />
</authorization>
So currently every aspx page requires authentication.
I want to allow access to even unauthenticated use...
I have a simple table
<table border="1">
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>
and a link
<a href=#>Click me</a>
Is it possible to make the whole block of html code disappear all in once after clicking the link in c#? I was thinking about a place...
Hello!
I have a report that is created using Telerik Reporing 2010.
You have the ability to export to PDF.
One of the cells contains a standard hyperlink that when viewed from the report view works fine
The cell contains this simple link
<a href=”http://site.com”>link</a>
What I would like to be able to do is maintain the hy...