I have a shared page in my ASP.NET MVC app that can be accessed from several different pages in my app. If I want the user to return to their original page after they have done their business on the shared page, what's the best way to figure out where the user was, and tell the app to go there?
Note that I'm currently doing this for the...
I often make small websites and use the built in ASP.NET membership functionality in a SQL Server database, using the default "hashing" password storage method.
I'm wondering if there's a way to authenticate a user by hashing his password on the client and not sending it in clear text over the wire without using SSL.
I realize that thi...
I get this error:
The error description is 'Only one top level element is allowed in an XML document.'.
Could not find prepared statement with handle 0.
The XML parse error 0xc00ce555 occurred on line number 1, near the XML text "<value1>34</value1><value1>33</value1><value1>32</value1>".
The statement has been terminated.
This is Sto...
Okay I'm completely stuck on this compilation error. It's a Web Site (not web app), .NET 2.0.
I have a file in this directory: welcome_teams
file name: default.aspx
Page Declaration:
<%@ Page Language="C#" MasterPageFile="~/masters/Site.master"
AutoEventWireup="true" CodeFile="default.aspx.cs"
Inherits="welcome_teams_default" %>...
Say I have a composite control in ASP.NET (C#) which includes a drop down list. I need to be able to bubble the event back to the parent form so that other code can be executed based on its SelectedItem.
How do I expose the OnSelectedItemChanged event to the application?
Do I need to create my own delegate and raise it when the intern...
Our site requires the password be passed onto another page to auto log into vendor sites which are brought in via iframe.
Since passwords are stored as a hash value in our site, the only way I can see being able to get the password from the page that needs it is to store it as a session variable, or pass it along on the querystring, whe...
Hi all,
Pretty simple question.
I have a few ASP RequiredFieldValdators checking some text boxes.
Out of the box, it checks validation when a button is pressed, basically disabling it unless all fields are met.
I also have a listbox with a bunch of data points, which load new data into the text boxes that are being validated.
I want...
Hi all,
I want to drop some keywords meta tags into a page depending on the article being showed.
Let's say you load the page blabla.com/article.aspx?id=2
The article which id equals 2 is titled "The Wisdom of Deliberate Mistakes in Business Management"
So I would like to include the meta tags like this:
<META name="keywords" content...
Is there a "debug" and "release" build in VS 2005? If so, how do I switch between the two?
...
Hi,
What is the difference between using the OnClick attribute of an ASP.Net Button:
<asp:Button ID="btn" runat="server" Text="New" OnClick="enterFunctionHere" />
vs.
using the event directly in the function:
Sub addNew() Handles btn.Click
Thanks!
UPDATE
If I can do both in VB, which is better? Are they equal?
...
Hi,
I am building a Web Application using asp.net (C#). I come from windows forms development and find myself in a hard spot. Im making an application where the user should edit some simple information about himself, and thus i need to create a new dialog. How do I do that in asp.net? I have a button which event is handled serverside, a...
I have recently stumbled upon a problem with selecting relationship details from a 1 table and inserting into another table, i hope someone can help.
I have a table structure as follows:
ID (PK) Name ParentID<br>
1 Myname 0<br>
2 nametwo 1<br>
3 namethree 2
e.g
This is the table i need to sel...
I have a Control I want to create. Here's a simple example of what I was to accomplish.
I want the control to contain a button.
Button b = new Button();
b.Text = "Test";
b.Click += new EventHandler(b_Click);
this.Controls.Add(b);
Now, the control renders fine, the button shows up on the page. The heart of the problem I'm having is...
Can you inject aspx forms along with their functionality into a div using the jQuery ajax load method. I am essentially trying to create a modal popup that allows me to load remote web forms into the popup and have the user use the form and submit.I have the modal built and it transitions in perfectly, however it isn't worth it to use if...
If I have an ASP.Net RadioButtonList within a TemplateField in a GridView, which is tied to a Data Control, I can get databinding on page loading like so:
<asp:RadioButtonList SelectedValue='<%#Eval("RequirementOption")%>'>
So when the gridview renders, the user can select an option for each row in the grid.
What I'm wondering is...
This might be a really dumb question but I'm learning .NET, so I'm quite clueless...
Let's say I have two files default.aspx and the associated default.aspx.cs.
default.aspx.cs:
protected void Page_Load(object sender, EventArgs e)
{
var myObject = new MyObject();
}
Is there a way that in the default....
Hey all!
I have an ASP.NET 3.5 application which is using the Visual Studio Development Server. I set ELMAH up, and it is working fine. I set up the AXD "file" and XML files (using XML as the storage medium) to be in a folder under the root:
v3/elmah/
Now, I'd like to have it so that when elmah or elmah/elmah.axd (or anything in this ...
I have a web application on ASP.NET (C#) that has some precompiled components. I've been supporting it with no problems from quite sometime, adding features and extending. Right now I am facing another extension that requires calling a remote SOAP service.
I've tried doing it according to some recommendations that I got here - via addin...
I am developing an asp.net mvc website product that needs to allow customers to add their own content pages, outside of the project.
So the product will deliver a core set of pages (views) all using a master page. The clients can add their own web pages (.aspx) which I was hoping they could inherit from the MVC masterpage. Obviously...
I have an HttpPostedFile object, when i try saving it via SaveAs i get this exception System.Web.HttpException
"The SaveAs method is configured to require a rooted path, and the path './tempUpload/4' is not rooted."
Why? how do i correct it?
...