webforms

Dynamically update a drop down menu after a user types something that should be added to list

I am creating a website in php with a form that teachers complete to tag each question on a test with a label. The labels are predetermined and listed in a set of drop down menus (one for each question on the test), but there is an option for users to click "add a new label" which pops up a another form in a new, smaller window (while ke...

Communicating between controls in a Webpart

We have a webpart that has 2 user controls. We want the second user control to be able to read a value from the first user control. One solution we have considered is an event in the first control, that updates a value in second user control. But not sure where to place / hook up the events so that this works. Anyone have any idea how...

Component Development with PHP ?

Edit: The question concerns 100% web development only. Please do not relate the question to desktop development. Please read the entire question before responding. I am certainly interested if there is currently any interest in developing PHP applications in a more desktop-like fashion. I mean something like the classic WebForms impleme...

Can't get to custom control

Hi! I have a custom control on my web form: <form id="form" runat="server"> <clc:CustomList ID="myList" runat="server" AddButtonText="add" DeleteButtonText="del" MoveUpButtonText="up" MoveDownButtonText="down"/> <div id="test" runat="server"></div> </form> I need to get...

what does Parse error: syntax error, unexpected '"' in /home/XXX/public_html/feedback2.php on line 180 mean?

and how do I find where line 180 is in the code ? I'm trying to create a PHP feedback form scrip ...

custom components and asp.net mvc

I was curious how in the typical ASP.NET MVC mentality one could build a platform that others could develop plugins for. I mean, how would those plugins look like ? Like exiting user controls for WebForms, encapsulating all layers in themselves, or three different files representing the model the view and the controller. I should develop...

suggestions on how to present/process a form with many textfields

I am on Rails. I have a form that has many text fields (about 13). It looks very bulky and smudged together. From a rails point of view, the form deals with 3 models. I am looking for some demo links or links that intuitively deal with forms and many textfields. Can I break the form into various different forms with next button a...

Webforms MVP: What is presenters responsibility

Am I wrong in my view that a presenter in the MVP design pattern should be lean and not have much logic just like the controller in MVC, and that most logic having to do with model updates should live in a application service. My view is that presenter should just build up a command and send it to a service that would process it. ...

SiteMap and Url routing

I have a question similar to the one described here: ASP.NET URL Routing with WebForms - Using the SiteMap My ASP.Net WebForms webapplication has a Sitemap, similar to this: <?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode title="Root"> <siteMapNode url="...

bug or desired behaviour? couldn't identify form using string 'post' but 'POST'. html contains 'post' though (ruby,mechanize)

the code that didn't work: login_form = page.form_with(:method => 'post') and code that works login_form = page.form_with(:method => 'POST') I inspected the form object via puts page.forms.inspect and got [#<WWW::Mechanize::Form {name nil} {method "POST"} ....] html source: <form class="login" method="post"> <fieldset> <legend>...

How can I reach form values from Content Page in ASP .NET

Hi I have a master page which has a <form runat="server"> line and a ContentPlaceHolder in it. I am trying create a content page using this master page whitch has text boxes in it. But I cannot reach values of theese text boxes using Request.Form["textbox"] from that conent page. I need to use Request.Form["ctl00$ContentPlaceHolder1$te...

Integrating a discussion forum into an ASP.NET site

I have an ASP.NET WebForms public business site. I want to integrate a discussion forum into my site. However, I don't want people to have to log in twice. Can someone recommend a ready made discussion forum solution that I can drop into my site, yet be able to customize with my login infrastructure? ...

Help interpret/implement "Copy/Paste from Excel to a web page" answer?

Can I get some help interpreting / implementing the answers at: http://stackoverflow.com/questions/2006468/copy-paste-from-excel-to-a-web-page/2006789 please? This was the most useful answer Google found for "Paste Excel to Web Page/Form" -- seems perfect but I can't get to work. (Requirement is to give users an option to pre-populate ...

View .aspx page in separate design and source tabs in Visual Studio

We have three options to view any .aspx page in a tab Design Source Split How can we view Design and Source in separate tabs for a any aspx page ? Or if this is impossible!! can we use split option by Vertically splitting the Design and Source ? if later one is possible, I could stretch the view onto two monitors like here as sugge...

Form layout using CSS

I'm aware that there are already a bunch of questions about form layout using CSS versus Tables. On the whole, I think CSS is the way to go, but all the CSS solutions I've seen have the drawback of "hard coding" the width of the labels and/or input fields. The result is that one or two custom rules needs to be added for each form, assum...

how to add new field to mechanize form (ruby/mechanize)

there is a public class method to add field to mechanize form I tried .. #login_form.field.new('auth_login','Login') #login_form.field.new('auth_login','Login') and both gives me an error undefined method "new" for #<WWW::Mechanize::Form::Field:0x3683cbc> (NoMethodError) I tried login_form.field.new('auth_login','Login') which give...

stylish reusable web forms

Hi, I'm looking for some examples of stylish web forms that can be used on any site. I've googled for "stylish web forms", but most of the examples I find are of very ornate forms that use a lots of images, which are unlikely to look good on other sites that use different color schemes. I've also found lots of examples of using CSS to l...

How can I make a property declarable as any inheriting type in ASP.NET markup?

I've seen various controls in ASP.NET with "collections" of objects, which you can use markup to define. For example: <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <Triggers> <asp:PostBackTrigger ControlID="MyButton" /> </Triggers> ... </asp:UpdatePanel> In the above example, you can add any number of triggers, a...

Sessionstate server (webfarm) environment, user sessions get mixed up

Hi all, I've got a strange problem. Let me first describe my situation: Webserver01 (Webapplication, SQL, SessionState Service) Webserver02 (Webapplication) Both webservers are load balanced using NLB. Now comes the problem. Very, very, very incidental a logged in user, some how gets the session from a completely different user. H...

Show Selected Item in Listbox (System.Web.UI.WebControls)

I'm working with a listbox that has, let's say, 20 items. The size of the listbox allows the user to see the first 5 items. However, the listbox has one preselected item which is sometimes not visible because it isn't one of the first 5 items. After I set the selected Item for the listbox how can I ensure that the lisbox is scrolle...