I have 3 tables in database shown below. And I want to make a report just like shown link below. How can I do it with datagrid or datalist? Which one is the best chois? I have tried to do it for a week.
http://img123.imageshack.us/my.php?image=61519307xx5.jpg
COMPANY: ID_COMPANY, COMPANY_NAME
PRODUCT: ID_PRODUCT, PRODUCT_NAME
...
Let's say I have a search page called Search.aspx that takes a search string as a url parameter ala Google (e.g. Search.aspx?q=This+is+my+search+string).
Currently, I have an asp:TextBox and an asp:Button on my page. I'm handling the button's OnClick event and redirecting in the codebehind file to Search.aspx?q=
What about with ASP.NE...
I've just create a new MVC project, and have made no changes at all, but when I try and view the ChangePasswordSuccess view in design mode, I get the error:
The page has controls that require a Master Page reference, but none is supplied.
The page has no controls except for a content control and literal text, and it does have a master...
I have a GridView control on my page that I have defined a number of BoundFields for. Each row of the databound GridView has a CommandField (Select), for which I want to send the PostBack to a new page.
Of course I could easily send the NewSelectedIndex in a QueryString, but I'd rather keep that information hidden from the user. Sugge...
I am attempting to create a subclass of a web conmtrol that implements IScriptControl. I have managed to make the serverside chanegs that I need, and the control has happily inherited all of the clientside bahaviour from its base class.
I now wish to add to this behaviour. Specifically I need my class to handle a javascript event that ...
I've seen the a class named DataSourceHelper, with an attribute of DataObject(true), in a couple of modern open source ASP.NET projects.
Is the use of such a class now an ASP.NET idiom, and if so is it the equivalent of the DAL?
...
I have an ASP.NET web application which does the following:
Reads an Excel file.
The excel file will have an image URL located in it that points to somewhere on the internet.
The program reads each image URL and store it into a temporary folder in the web server.
The application then resizes (changes the width and height) of the image....
How to include COM components on a published .Net site?
...
When create a new ASP.NET MVC project in Visual Studio 2008, there is a Default.aspx page by default. It has one line
<%-- Please do not delete this file.
It is used to ensure that ASP.NET MVC
is activated by IIS when a user makes
a "/" request to the server. --%>
In its Page_Load function, it just redirects to "/" to go thro...
I've alluded to this project before, in this question, but the scope of redesign has been slightly tightened, i.e. I can't redesign the whole thing, so I 'd like some general advice on how to structure the existing artefacts in the application as an incremental step in improving the design.
The site has two areas of functionality, v.i....
Hi, I have a web application that I need to modify so that it can be rebranded for different customers. I did the same thing with the windows version of the app using resource files and a #define. I have been reading up on resource files for aspx/C# but it seems that they are limited to localization. I'd like to do something like put ...
Hi there,
that one has been nagging me ever since I dabbled in web developpement; is there a way for this? Could I override that style and rely on some other mean to inform my users that that control can't be ineracted with?
My problem is that the graying of RadioButton- and CheckBox-Lists' labels makes them unreadable.
I could alway...
ASP.NET master pages - essential things.
However, I have a lot of very similar UserControls in my projects - it might be a standard layout for an AJAX ModalPopup, or something more involved.
I wish I could get rid of some of my duplicated code (both in ascx files and code-behind) with some Master UserControls.
Does anyone have any sug...
We are having some performance issues with a page and I wanted to ask about this. If I have a repeater and in the itemtemplate of the repeater I have a dropdownlist bound to an sql datasource, will that selectcommand be called once per each item even though the same result is returned each time? If so, as a quick fix, would enable cach...
Hello all,
I'm working on an ASP.NET page, using VB.NET and I have this hierarchy:
Page A
- Web User Control 1
- Web User Control A
- Web User Control B
- Web User Control C
I need to raise an event from Web User Control B that Page A will receive (the event flow will be Web User Control B -> Web User Control 1 -> P...
I have a need to allow for a user to download an event that has multiple meeting dates. To do this I have created a memorystream to be downloaded which produces a .ics file. For example:
BEGIN:VCALENDAR
PRODID:-//Company//Product//EN
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
SUMMARY:Subject of Event
LOCATION:Location of Event
UID:12275...
Scenario:
Let's say I have four very similar applications (i.e. most of the functionality is the same, but they are different enough to justify each being seperate applications).
What is the best way to re-use the common functionality code between them? COM+? Web services?
In general I'd typically just have the code in a seperate pr...
I'm generating a coupon based on dynamic input and a cropped image, and I'm displaying the coupon using ntml and css right now, the problem is, printing this has become an issue because of how backgrounds disappear when printing and other problems, so I think the best solution would be to be able to generate an image based on the html, o...
I'm migrating a website made in classic asp to asp.net, but the asp.net dev server doesn't handle .asp pages.
Is it possible to make it run .asp pages? Maybe a custom httphandler for .asp?
thanks!
...
So...I had this clever idea that I'd create my own Repeater control that implements paging and sorting by inheriting from Repeater and extending it's capabilities. I found some information and bits and pieces on how to go about this and everything seemed ok...
I created a WebControlLibrary to house my custom controls. Along with the e...