Forum: ASP.NET Feb 23rd, 2007 |
| Replies: 5 Views: 1,651 If you are not putting your code under C:\inetpub\wwwroot, then you need to tell IIS where to look for it. You appear to have put it in a normal directory. You can either make that a virtual... |
Forum: ASP.NET Feb 23rd, 2007 |
| Replies: 1 Views: 1,437 You can't just open/run an aspx page like that -- it has to go through IIS and the .NET engine.
Did you install .NET Framewrok and set up IIS on your machine? |
Forum: ASP.NET Feb 22nd, 2007 |
| Replies: 1 Views: 1,545 MSDN has a nice article on the subject.
http://msdn2.microsoft.com/en-us/library/aa479015.aspx |
Forum: ASP.NET Feb 21st, 2007 |
| Replies: 3 Views: 3,169 The first thing I would do is set up a test page using only the datagrid. Get it data bound and working normally.
Once that is set, then I'd add the code for the user control, and see if even... |
Forum: ASP.NET Feb 20th, 2007 |
| Replies: 3 Views: 3,169 You can bind the grid whenever you like.
The method is DataBind() |
Forum: ASP.NET Feb 20th, 2007 |
| Replies: 3 Views: 1,622 Which event is this code running from?
Did you trace with Studio (debug)? |
Forum: ASP.NET Feb 16th, 2007 |
| Replies: 1 Views: 3,333 Are you perhaps looking for MultiView / GridView?
Standard components available in .NET are the same, regardless of your language of choice. |
Forum: ASP.NET Feb 15th, 2007 |
| Replies: 3 Views: 1,749 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDataSqlClientSqlDataReaderClassTopic.asp |
Forum: ASP.NET Feb 15th, 2007 |
| Replies: 5 Views: 13,795 Probably because you're setting PostBackURL in the same spot you're trying to use it.
PostBackURL is written out as client-side javascript on a button. If it is not set already at design time, you... |
Forum: ASP.NET Feb 14th, 2007 |
| Replies: 5 Views: 2,454 That's just a link, right?
Therefore, the linked page should work fine. If you just plug that link into your browser, does it work? |
Forum: ASP.NET Feb 13th, 2007 |
| Replies: 6 Views: 6,731 You don't have to display every column you select.
I use views with a bunch of columns as my datasource, and they work for several different grids. |
Forum: ASP.NET Feb 13th, 2007 |
| Replies: 8 Views: 16,886 Sure. A simple console app to demonstrate.
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program |
Forum: ASP.NET Feb 13th, 2007 |
| Replies: 8 Views: 16,886 Sure it's possible.
Where does the range come from? That is, the start and end dates of the current month and current year, or user input, or ...? |
Forum: ASP.NET Feb 13th, 2007 |
| Replies: 8 Views: 16,886 How do you want it?
Two date objects, a string, an array of dates ...? |
Forum: ASP.NET Feb 13th, 2007 |
| Replies: 6 Views: 6,731 Unless you're stuck with someone else's DAL, that is. ;)
You can write custom code to get the value, but it's a serious pain in the behind and isn't actually binding. You have to write custom... |
Forum: ASP.NET Feb 13th, 2007 |
| Replies: 5 Views: 2,454 IIS needs to be set up for .NET.
Is it? |
Forum: ASP.NET Feb 13th, 2007 |
| Replies: 5 Views: 13,795 PostBackURL is more equivalent to Server.Transfer than Response.Redirect.
It maintains ViewState and all the rest of the Page object and other State Bags.
Response.Redirect simply sends a 302 to... |
Forum: ASP.NET Feb 12th, 2007 |
| Replies: 11 Views: 10,247 Okay, no, that won't work like that.
Behind the scenes, all post back url does is change the onclick on the button CLIENT SIDE.
So changing it then trying to call onclick, before the code is... |
Forum: ASP.NET Feb 12th, 2007 |
| Replies: 11 Views: 10,247 Ah, I see.
Hang on a few, let me trace it. |
Forum: ASP.NET Feb 12th, 2007 |
| Replies: 11 Views: 10,247 Here's what I had.
Note that posting to the daniweb address actually causes an error due to them not accepting POST from outside their domain. However, this still indicates success at postbackurl.... |
Forum: ASP.NET Feb 12th, 2007 |
| Replies: 11 Views: 10,247 Yes, and for me, it does.
You're inheriting code. Did you mean to do that?
Inherits="PassParameters._Default" %>
You had a couple other errors in there I fixed without thinking about it, too. ... |
Forum: ASP.NET Feb 12th, 2007 |
| Replies: 11 Views: 10,247 You might be accidentally calling the click before the url is actually set. |
Forum: ASP.NET Feb 12th, 2007 |
| Replies: 9 Views: 11,978 GridView supports EmptyDataRowStyle
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.emptydatarowstyle.aspx |
Forum: ASP.NET Feb 12th, 2007 |
| Replies: 8 Views: 16,886 The DateTime object has properties for month, day, year, etc. DateTime.Now is today's date. You can go from there.
Note that ToString is overloaded for DateTime in order to format a date for output. |
Forum: ASP.NET Jan 11th, 2007 |
| Replies: 2 Views: 3,716 Response.write is pretty old school ASP. You're using .NET now. Make a <asp:label> with no text and set its .Text property at the proper time. |
Forum: ASP.NET Dec 29th, 2006 |
| Replies: 15 Views: 68,449 Which can be gotten back again with one click.
Make a decent application instead; save yourself work and your users hassle. |
Forum: ASP.NET Dec 29th, 2006 |
| Replies: 5 Views: 19,459 You have a datetime. How you display it is up to you. The DateTime object supports multiple methods for displaying the date, as well as an overridden ToString that can take a format.... |
Forum: ASP.NET Dec 28th, 2006 |
| Replies: 1 Views: 17,756 From my application:
// close the page if successful update
RegisterStartupScript("load", "<script type=\"text/javascript\">\n" +
"self.close();\n"... |