webforms

Should I create a JQuery server control for ASP.net to best use it in my apps?

I have been rather successful in promoting JQuery within my organization. No small feat on it's own. However, one of the ideas being kicked around here to make it part of our app is to create an ASP.net server side control. (We are going to be sticking with WebForms for the foreseeable future.) I'm not too wild about this approach as it...

Is it possible to design winforms like interface in webforms

I want to webpage to look like a winform but it is actually a webform. The users should think that it is a form and not a webpage ...

When does a DropDownList retain the value from postback at the SelectedIndexChanged Event Handler

To Clarify to all this problem absolutely does not stem from rebinding of the controls and the value does not remain the initial value after binding. I have a DropDownList on an aspx page which is being used in multiple projects. Along the life cycle of the page the SelectedValue is changed prior to the handling of the SelectedIndexCha...

Form Elements in ASP.NET Master Pages and Content Pages

OK, another road bump in my current project. I have never had form elements in both my master and content pages, I tend to have all the forms in the content where relevant. In the current project however, we have a page where they want both. A login form at the top right, and a questions form in the content. Having tried to get this i...

Filter "list" of divs with Javascript

I have a repeater that outputs divs like the following for every item returned from some method. <div class="editor-area"> <div class="title">the title</div> <div>the description</div> <div class="bottom-bar"> <a href="link">Modify</a> <a href="link2">Delete</a> </div> </div> I need to have a textbox on...

ListBox retains posted value even after being databound

Please note that the problem described below is almost the exact opposite to the common problem of "my control shows the same value every time the page loads. I understand the behavior expressed is generally not desirable. I have a listbox which is being databound in the page load event even on postback. When the event handler for the...

Vb6 "Tag" property equivalent in ASP.Net?

I'm looking for ideas and opinions here, not a "real answer", I guess... Back in the old VB6 days, there was this property called "Tag" in all controls, that was a useful way to store custom information related to a control. Every single control had it, and all was bliss... Now, in .Net (at least for WebForms), it's not there anymore.....

Add a CheckBox column to a GridView with persistence

I have an ASP.NET application that displays various views into a largish database of protein sequences. As a visitor browses the data, I'd like for them to be able to select a CheckBox in the GridView row to flag sequences for later download as a zipped text file. I don't want to store the selections so they should just be valid for th...

Should I pursue ASP.NET WebForms or ASP.NET MVC

Firstly, I'm a software engineer doing web development in ASP.NET. We have a custom framework that we use that sits on top of .NET so most of my development work leverages more of our internal framework and less of the traditional web forms model. I've done web development for a couple years on my own as well, but I mostly use LAMP (wit...

Is asp.net webforms swept under the rug to make room for mvc?

I've read all the marketing speak about how mvc and webforms are complementary etc... However it seems that all the blogs talk about is mvc and the only news coming out is about mvc. Is microsoft going to continue to IMPROVE webforms as a first class citizen or will it just be a supported technology as they move all their real efforts,...

Where can I find examples of element heavy web forms?

I would like to look at some examples of some good form layouts (web-based) that have a lot of input fields. I do a lot of web application development and a lot of my forms are input element heavy so I am always looking for good ideas on how to display my forms. For example I have a few list boxes and a lot of text boxes and some drop do...

Using jQuery for AJAX with ASP.NET Webforms

Anyone know of a link to a good article/tutorial for getting started using jQuery for AJAX calls rather than ASP.NET AJAX? I'm trying to avoid using UpdatePanels entirely in this app, which I haven't been able to accomplish in the past. ...

How does Databinding work with Structured Software

Hi. I've been doing some Web-Projects lately that rely on heavy Data-Binding and have been quite happy with the results. Databinding Webforms works mostly the way I need it and I spared myself tons of code. One thing that still feels weird is that I have application logic and database logic mixed throughout the application. Datasources...

View need to go Winform to Webform, what is your advices?

Hi, Our application is well structured (well we did our best!) and we have split the Model from the View, Now, we need to let some information to our client with a web access. We would like to build something small with IIS and some webform. Here some information you might think are useful: Our controller have Thread of database quer...

XSD elements to a Form in ASP.NET

Is there a standard way to convert an XSD to an input form (ASP.NET C#) so that later on whenever a new field is added / removed from the XSD the field on the page automatically shows up or goes away respectively, is this something which needs to be developed in-house I assume there must be a way to serializes / deserializes and generate...

Is there a performance difference between asp.net mvc and web forms?

I know there is a learning curve, but what about performance? It seems to me that web forms would be less performant, but I havent tried MVC yet to know for sure. What is everyone else experiencing? ...

Why does a floated <input> control in a floated element slide over too far to the right in IE7, but not in Firefox?

Hopefully a picture is worth a thousand lines of code because I don't want to have to strip down all of the ASP.Net code, HTML, JavaScript, and CSS to provide an example (but I'll supply what I can upon request if someone doesn't say "Oh, I've seen that before! Try this...") [Actually, I did post some code and CSS - see bottom of questio...

Is there a way to data bind a single item without eg. a Repeater control?

Hi, Lets say I have a single object of type Car which I want to render as HTML: class Car { public int Wheels { get; set; } public string Model { get; set; } } I don't want to use the ASP.NET Repeater or ListView controls to bind because it seems too verbose. I just have the one object. But I still want to be able to use the data...

How do I stress test a web form file upload?

I need to test a web form that takes a file upload. The filesize in each upload will be about 10 MB. I want to test if the server can handle over 100 simultaneous uploads, and still remain responsive for the rest of the site. Repeated form submissions from our office will be limited by our local DSL line. The server is offsite with high...

Asp.Net jQuery $.getJSON sometimes causes full page postback?

I'm writing an ASP.NET webforms app, and I'm using jQuery for my AJAX calls. This is working well, but on some occasions, the $.getJSON call is causing a full page postback. I am not using the ASP.NET AJAX library anywhere in the app. I can't reproduce the problem on a consistent basis, and am not sure what is causing it. Here is the jQu...