I am dynamicaly generating a HTML form that is being submitted to a .aspx webpage. How do I determine in the resulting page what variable names were submitted and what the values were? Using:
Request["VarName"].toChar();
Works, but assumes that I know all of the variable names. How can I get the names and values?
Ideally, the soluti...
I have struggled with this since day 1. It probably doesn't help that I've been surrounded by a lot of code that doesn't even handle errors at all.
Anyway, I'm working with WebForms in your traditional n-tier design: UI->BLL->DAL. Usually what I do (and I know it's not right) is to try/catch my data operations. If there is an excepti...
Hi, i have a listview with 2 or more radio button controls in each row of it and i want to findout if atleast one radiobutton selected on submit.
for example
ROW 1
Quetison 1
radiobutton1
radiobutton2
radiobutton3
ROW 2
Quetison 2
radiobutton1
radiobutton2
radiobutton3
on submit i want to find...
hi
I don’t understand why is using method overloads( at BLL layer ) preferred over using separate methods with individual names.
For example, if our web app has at DAL layer methods GetAllArticles, GetArticlesByCategory, GetPublishedArticles and GetPublishedArticlesByCategory for retrieving articles from the DB, then it is recommend...
So let's that I have two dependent objects whose id's i pass in the query string, and let's say I am not going through parent to get the child but rather I read child directly via dao and I can save it also, without going through parent. What should one do on the client side, or should I even check it to see if id of the parent in the qu...
I am making a simple form with about eight input fields. I want the initial value in the field to indicate what people are supposed to enter. For example value="name" so that people know to enter there name there.
My question though is how do you get the initial value to vanish when they enter that field so that the initial value is on...
Hello Everybody!
I am currently trying to make my existing ASP.NET WebForms application use a Site.Master template.
Creating the Site.Master template wasn't really a problem as it works like a charm.
The problem starts with deriving from it and putting controls in the given ContentPlaceHolder's.
At runtime I receive following error ...
In Visual Studio 2008, if I wanted to drag a user control (that I have created) into the current page/control, I have to switch to Design view before dragging it into the pane. If I try to do it when the document is in Source view, it sends the markup as a hyperlink and not as the <%@ Register etc.. %> with the <uc1:usercontrol ... whe...
Hi,
Say DB has three tables: Customer, Order and Products. DAL layer could use just one class ( aka one data access logical component ) to perform CRUD operations on all three tables, or it could use three different classes (aka three different logical components):
1) Customer Data Access Logic Component
2) Order Data Access Logic C...
Consider an ASP.NET page using the jQuery library Uploadify.
Here is the sequence of events on the ASP.NET webforms page:
User clicks on a file upload control. Plain old HTML <input type="file" />
User picks an image file from their system using a Browse dialog. All working fine.
A jQuery event fires. It calls an ashx that properly u...
HI guys,
is there any way to find which control is submitting the form through JavaScript??
also if one defined a JavaScript function to be called on the form submit event is there a way to find the control which caused the submission
Thanks a lot
...
In reading up on ASP.NET MVC I came across some wonderful examples of validation where the business rules were associated with the model and the UI merely displayed the set of errors and flagged the form elements associated with invalid input. I think it makes fantastic sense to keep this logic in a single place rather than have every f...
How can I write an Outputstream in a new browser window?
Currently, I have the code below. Obviously it opens the stream in the same window. I know I can write the Outputstream to a file and open it in a new window but that isn't an option.
protected void openPDF(byte[] dados) {
HttpContext contexto = HttpContext.Current;
cont...
Hi,
I’m trying to figure out whether FormsAuthentication.RedirectFromLoginPage (called inside method M()), performs redirection the moment method M finishes its execution, or whether page first completes its lifecycle and only then redirects. But I can't figure it out due to inconsistent behavior:
protected void Page_Load(object...
Is there a way to have a single UpdateProgress control associated with mupltiple UpdatePanel controls? something like this:
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
.....
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
........
I'm working on a sortable listview with data-paging. I've got the listview and paging working fine, but I'm struggling with with the sorting. The sorting in itself is fine; I can sort by a particular column (ASC or DESC), however I'm having problems when it comes to dynamic sorting where the user can pick a column and, at times, reverse ...
We're redevloping a major section of our website and rather than use a 90k AJAX file I'd rather use a 19K jquery script.
I've seen the following articles;
Using jQuery for AJAX with ASP.NET
Webforms
jQuery autocomplete in ASP.NET webforms?
Autocomplete with ASP.Net MVC and
JQuery
The thing I don't get is how to do a postback to a s...
I need to design a web form which landlords can use to add rental listings. There are 8 mandatory text boxes and 2 optional text boxes, 11 drop-down lists, 12 checkboxes and one large text area. Any suggestions about how to arrange them in a way that is clean, and uncluttered? My concern is, if the form looks lengthy, they may not want t...
I have a WebForms project where we are using Linq to SQL (L2S) to provide data access. I know L2S can handle timestamps, but what I'm wondering is, what is the best way to handle timestamps at the client side.
I'm thinking that one possibility is to simply put the timestamp into a hidden field when an entity is rendered, but this feels ...
I have a project that I am in the process of migrating to using Linq To SQL. On the whole it's fine, but I'm stuck on an issue where if I try to put a timestamp from an DTO into a hidden field I get this error at runtime:
BC30652: Reference required to assembly 'System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5...