Hi,
i have a login page and if login is sucessfull,i open a homepage as popup.In IE 6.0,i dont come across a problem but IE.7.0 shows me an alert "The webpage you are viewing is trying to close this window.Do you want to close the window?".When i add the codes to hinder it,now IE 7.0 doesnt give me alert but IE 6.0 gives same problem.Ho...
When I click the left mouse button on a corresponding row in my grid view control I want that row to turn editable.
How can I do this?
...
I'm javascript newbie. What I'd like to be able to do is to call a function from .js file sitting in ASP.NET MVC project's scripts folder.
The function is:
function myfunction() {
alert("HELLO");
}
...and it resides in file brfix.js
On a viewpage I call it like this:
<script src="../../Scripts/brfix.js" type="text/javascript"><...
If I have an application running on ASP.net and I have debug and stacktrace enabled in web.config, I get a really nice Error Screen telling me exactly which code caused the error.
Sadly on a live system where debug is set to false, the yellow screen of death is quite unhelpful, even with stack trace enabled, it does not show the line wh...
I get this error when attempting to reference a Web Service in my Compact Framework application. Hunting through Google seems to indicate it's a common occurance, but there's been no useful suggestions as to what causes it, and how to fix it. I can successfully access the web service from a WinForms application by adding a Service Refere...
A client of ours has approached us to develop an application, and as usual the scope grows day by day.
Initially it started as a dedicated app confined within their corporate network. User Authentication was established by aquiring the user's Windows login and using a SQLServer Database to host the access rights. All quite straight fo...
I have a VS 2005 web site that I publish using "Publish Web Site", and I clear all the three checkboxes. I also have a deployment project that picks up the published files and creates an MSI. I then install the package on a separate test server.
In other words, the whole site is pre-compiled. However, when I go to any .aspx file in a sp...
Hi all,
I have a class at server-side like this :
public class Address
{
public Address(string countryCode)
{
this._CountryCode = countryCode;
}
private string _CountryCode = string.Empty;
public string CountryCode
{
get { return _CountryCode; }
set { _CountryCode = value; }
}
}
...
I'm working with ASP.NET AJAX and want to understand the difference between these two snippets:
function pageLoad(sender, eventArgs) { }
and
window.onload = function() { }
Do they act the same?
Or is one called before the other?
Or will one be called automatically and the another not?
...
Is it possible to have a FTP server using SSL on a application server that does not use SSL?
How would you setup an ASP.NET 2.0 to consume a SSL certificate?
This certianly sounds possible but is it advisable, is it good practice?
...
Is there a difference between Server.UrlEncode and HttpUtility.UrlEncode?
...
I am working on an ASP.NET MVC web application, and am working on the Web Setup portion. We are using SVN for version control. One of the issues is that the we are currently having is that the web designers modify and add a lot of html, css and js files that end up in the Content folders, but they don't add them to the VS project, so the...
The Setup:
I have a DLL that uses a ConnectionString to connect to a SQL database. When I add the DLL to my website i have to add the connectionstring into my web.config in order for my DLL to function properly (this is by design). Once I add it into the web.config then everything works fine (as expected).
The Problem:
The problem b...
I have a page that has a simple javascript in the header portion of the page:
<script type="text/javascript">
function doLogout() {
var conf = confirm("Really log out?");
if (conf === true) { //changed == to === for boolean comparison
$.post("logout.aspx");
}
}
</script>
It uses jQuery ...
Can a so called action in my controller just be a regular function that returns anything I want or does the return of an ActionResult declare whether its an "action" or not?
I was wondering if i could call functions in my ActionLink in the "actionname" that didn't return actionresults.
thx
...
I need to pass values between asp.net pages. How do i encrypt those values in the URL?
Example : Response.Redirect("customerAdd.aspx?customerId=" + custId);
...
If my cookie is set like this: Response.Cookies("Employees")("UserID") = 43
How do I get this value from within an ObjectDataSource SelectParameters CookieParameter?
<asp:ObjectDataSource ID="odsProducts" runat="server" TypeName="MyCompany.Products" SelectMethod="GetAll">
<SelectParameters>
<asp:CookieParameter CookieNam...
Hi,
I've been digging thru the Page, TemplateControl and Control classes in reflector trying to figure out where AutoEventWireUp property is actually getting used. I've failed miserably.
My understanding of AutoEventWireUp is sketchy but I think it casues event handler methods to be automatically wired up to events?
So I thought I'd se...
Hi all,
I have what should be a fairly simple ASP.NET question, and one I thought I had found a workaround for in the past, but this time I'm having no end of bother trying to get a working solution for it.
I have an ASP.NET page with a number of input controls and a series of form validators for them. I wish the page to have separate...
I am working on a legacy web application written in VB.NET for ASP.NET 1.1. One particular page has a form with a number of fields. In response to a drop down box changing value, I am clearing a number of fields, resetting a number of drop down boxes to the first option, and setting them all to "disabled" in the UI. To do this, I'm us...