Forum: ASP.NET Apr 3rd, 2009 |
| Replies: 4 Views: 909 greeny_1984: Well that would just exhibit the same behaviour as whats currently happening. But you're on the right track.
Image buttons are rendered as type="submit" which means when you press the... |
Forum: ASP.NET Mar 12th, 2008 |
| Replies: 4 Views: 1,260 ViewState is held in a hidden field within the rendered webpage, session state is held in the memory of the webserver. Each session has a unique id called a sessionid. The sessionid is given to the... |
Forum: ASP.NET Mar 11th, 2008 |
| Replies: 10 Views: 1,269 This is due to windows integrated authentication (NTLM), although you are logged into Windows those credentials are not necessarily automatically passed on when required it certain circumstances.... |
Forum: ASP.NET Mar 6th, 2008 |
| Replies: 10 Views: 1,269 Wow! well how you can read 15 hours of ASP.NET getting started and surmise that merely changing the file extension of an HTML page is all that's required seems improbable.
But what the hey. Ok you... |
Forum: ASP.NET Mar 6th, 2008 |
| Replies: 10 Views: 1,269 The problem is you haven't researched ASP.NET properly.
Use Google (or your favourite search engine) to search tutorials like this:
http://www.sitepoint.com/article/getting-started-asp-net |
Forum: ASP.NET Feb 25th, 2008 |
| Replies: 10 Views: 3,676 I can't understand why you can't get web controls to appear on the page. Can you post some code?
p.s. Do you know about the empty data template? |
Forum: ASP.NET Feb 22nd, 2008 |
| Replies: 10 Views: 3,676 I've replied in your other thread.
How are you 'Browsing' your ASP.NET app ? |
Forum: ASP.NET Feb 22nd, 2008 |
| Replies: 24 Views: 3,697 You don't need IIS if you have Visual Studio 2005 Express Edition (any edition 2005+) It includes a web server. When you run the app from VS (F5 to debug, or Ctrl+F5 to run without debugger) it... |
Forum: ASP.NET Feb 22nd, 2008 |
| Replies: 10 Views: 3,676 Well that's what 90% if the software world is using. Hell I'm still maintaining Framework 1.1 projects.
Back in the time of classic ASP, one day I found myself conactenating <tr> <td> tags in a... |
Forum: ASP.NET Feb 22nd, 2008 |
| Replies: 10 Views: 3,676 Why would you not use the web controls?
Look at the System.Web.UI.HtmlControls namespace there's HtmlTable objects and HtmlTabkleRow and HtmlTableCell, just foreach your DataTable into HtmlTable... |
Forum: ASP.NET Sep 28th, 2007 |
| Replies: 7 Views: 1,768 Use ExecuteScalar() on the command object it is very efficient, returns just the first value in the first row of the result set. No need for an expensive DataAdapter and DataSet.
... |
Forum: ASP.NET Sep 28th, 2007 |
| Replies: 7 Views: 1,768 You'll have to expand on this, I'm not understanding it I'm afraid. In it's default config web controls on aspx pages keep their own data anyway via viewstate, is this what you're on about?
I... |
Forum: ASP.NET Sep 28th, 2007 |
| Replies: 7 Views: 1,768 Drag a GridView or Repeater control onto your form in design view. In the code behind (Do your databse code which you have shown you know how to do) then just pass the resulting reader to the... |
Forum: ASP.NET Aug 3rd, 2007 |
| Replies: 5 Views: 1,987 This doesn't make sense. You can't send two *different* email bodies to two addresses using the CC (Carbon Copy) field. (That's nothing to do with C#, that's just how email works)
You have to send... |
Forum: ASP.NET Apr 25th, 2007 |
| Replies: 3 Views: 4,324 Did you set your id column as a primary key in the external database? This prevents the generate sql statements being available as it can't generate sql for tables that don't have a primary key. |
Forum: ASP.NET Mar 30th, 2007 |
| Replies: 8 Views: 6,575 Oh dear, fussy fussy :cheesy:
Ok I add a TextBox for the user to add their free text and an add button that adds there text to the ListBox on postback.
<%@ Page Language="C#"... |
Forum: ASP.NET Mar 30th, 2007 |
| Replies: 8 Views: 6,575 Yes thanks, but personally I find typing VB syntax akin to scraping honey off a teaspoon, whereas typing c# syntax is more like licking it off! IYKWIM.
for example:
StringCollection options =... |
Forum: ASP.NET Mar 29th, 2007 |
| Replies: 8 Views: 6,575 Consider using a ListBox web control.
1. You supply the options for the user to choose rather than free type (free text is always a validation headache for you to keep sh** out of your db)
2.... |
Forum: ASP.NET Feb 2nd, 2007 |
| Replies: 9 Views: 4,122 It's not that's what we are doing.
MyUserControl control = (MyUserControl)Page.LoadControl("MyUserControl.ascx");
PlaceHolder1.Controls.Add(control);
... |
Forum: ASP.NET Feb 1st, 2007 |
| Replies: 9 Views: 4,122 Thankyou, that feels good coming from an MCSD, I'm part way through getting MCTS. |
Forum: ASP.NET Feb 1st, 2007 |
| Replies: 9 Views: 4,122 No ASP.NET will automatically give them unique ID's, you just need a loop
for(int i = 0; i < 2; i++)
{
WebUserControl webug = (WebUserControl)Page.LoadControl("WebUserControl.ascx");
... |
Forum: ASP.NET Jul 18th, 2006 |
| Replies: 2 Views: 15,599 There isn't any 'built-in' to dot net.
The best way is to use regular expressions to validate the input on the client and then also format it how you want for the DB serverside.
This is best... |