I have a database that has four columns like this
level_1, level_2, level_3, level_4
There are also id, name, etc., but only these four are the ones that matter to me at the moment.
I need to know which column, by columnname, has the value 'BOSS'.
For example, level_2 may have the value BOSS. I need to know that one of the four colu...
I have a form that has a few similar controls and the parent contains the properties, but the child actually has the html controls. How could I setup my getters/setters using the "child" controls in the parent class? (Webforms - fyi)
I found the below via search, and what I'm looking for is the inverse
http://stackoverflow.com/questio...
hi,
i have a label in my form, and im trying to get the value of the label using HttpContext.Current.Request. But the label is not int he key, only the input types.
is there any way of retrieving the value of a label?
Hello
Request["lbl1"] doesnt work.
...
So I have a UserControl with some cascading DropDownLists on it. Selecting from list 1 enables list 2, which in turn enables list 3. Once you've made a selection in all three lists, you can move to the next page.
The DropDownLists are all inside an UpdatePanel. But the "Next Page" button is outside the UpdatePanel. That button shoul...
Hi, I have looked around on the Internet trying to answer this question. It seems to be kind of complicated though! Seems to come up with all sorts of different topics such as the HtmlHelper and other stuff.
Basically. How can you use custom controls with MVC? In a way that avoids doing anything that is frowned upon.
Also, Is it true t...
Should I use the resource file directly in the aspx page like
<asp:Literal ID="userManagementSave" Text="<%$ Resources: save_lbl %>" runat="server" />
or creating a sub in the code like
private sub setLang()
userManagementSave.text = GetLocalResourceObject("save_lbl")
end sub
...
Can you recommend good hosts for ASP.NET?
...
I'm replacing an old web application with a new one, with different structure.
I can not change the virtual directory path for the new app, as I have users which have bookmarked different links to the old app.
Lets say I have a user, who has this bookmark:
http://server/webapp/oldpage.aspx?data=somedata
My new app is going to reside ...
Hullo
I trying to devlop a facebook application with ASP.NET MVC and the facebook API.
For authentication with facebook I have the following code
public FacebookAttribute()
: base()
{
ActionParameterFacebookSession = "facebookSession";
ActionParameterFacebookService = "facebookService";
}
public override void OnActionExe...
I'm in a bit of a strange dilema. Please bear with me as I try to explain it!
I'm using forms authentication and am storing additional user information in another table (referenced UserID from Forms Auth, encrypted SSN, Salt value). When users register to the site, I ask SSN, DOB and LName and verify against our system before they crea...
This is a follow up question to that at http://stackoverflow.com/questions/495194/can-i-create-a-html-table-width-a-percentage-height-but-pixel-accurate-row-height.
I have a table in a HTML page that will be used for tabular data (so I don't want an answer based around divs). This needs to be rendered at 100% height with the top row hav...
I am putting some email functionality into one of my asp.net projects:
I need to send an email to a list of subscribers, list varies from a few dozen to a few hundred subscribers - (down the road there could be thousands).
When I have a few dozen emails, I do this:
Mailmsg.Bcc.Add(New System.Net.Mail.MailAddress("[email protected]"))
...
When in Insert Mode or Edit Mode of DetailsView, the default behavior of click CancelButton is clear inputs in TextBox. But I just want to redirect to other pages instead of clear inputs. I hope there is server side event triggered so I can Response.Redirect.
Client side (some JS?) redirect is fine too.
...
Hi
is it possible to use the default resource provider that uses .resx files in the application but uses an SqlResourceProvider in a sub folder?
seems like the only one used is the one configured in web.config of the root?
any idea ?
...
I am creating ASP.NET textbox controls dynamically. I want to know the difference between assigning the property of the control and adding it as an attribute.
For ex:
I can do:
TextBox txtBox = new TextBox();
txtBox.MaxLength = 100;
or I could do
txtBox.Attributes.Add("maxlength", "100);
...
I'm trying to use a custom configuration section, something I've done numerous times before with success, but for some reason, today it's not working. The code for the configuration section is:
public class RedirectorConfiguration : ConfigurationSection
{
[ConfigurationProperty("requestRegex", DefaultValue = ".*")]
public string...
When should I use ASP.NET Themes, and when should I use CSS? What are the advantages or disadvantages of using one over the other?
...
I've got a wizard control that databound controls on each step. I can't databind them all at once because they are dependent on the previous step. So, essentially what I've got at each step is a save to the database of the previous step, and an initialization of the current step.
Are there any recommendations as to how best to organize ...
I'd appreciate people's thoughts on a dilemma I've been struggling with ever since ASP.Net came out.
In classic ASP, the layers of code were minimal. The ASP page contained HTML and script combined. The COM components contained business logic and DAO infrastrcuture. The asp pages themselves were messy, but everything was in one place...
I am a developer with a strong .NET background. In my spare time I will soon have the task to build a small an simple website with some dynamic features. So I guess ASP.NET would be the right choice. The problem is here that I have almost no experience with ASP.NET and my time is very limited. What would you suggest how I should approach...