Forum: ASP.NET Apr 3rd, 2009 |
| Replies: 10 Views: 1,678 What database are you using? OLE is slow but may be your only choice.
Also use a reader (forward only cursor) instead of a DataTable, it's faster for this kind of scenario.
But, consider the... |
Forum: ASP.NET Apr 3rd, 2009 |
| Replies: 4 Views: 887 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 14th, 2008 |
| Replies: 17 Views: 3,440 Aha, you are using a strongly typed DataTable.
You must be handling the DBNull somehow otherwise you would be getting an exception when populating the table.
Have you tried just == null ? |
Forum: ASP.NET Mar 14th, 2008 |
| Replies: 17 Views: 3,440 Hmm... well it works for me. You'll have to post some code or give more information. |
Forum: ASP.NET Mar 14th, 2008 |
| Replies: 9 Views: 3,917 Dont have the radio button in the control. Use a repeater to render radio button, user control pairs. |
Forum: ASP.NET Mar 14th, 2008 |
| Replies: 17 Views: 3,440 You need to compare the column value with System.DBNull.Value
So assuming a DataTable for example:
if( myDataTable.Rows[0]["someColumn"].Equals(System.DBNull.Value) )
{
//Handle... |
Forum: ASP.NET Mar 13th, 2008 |
| Replies: 2 Views: 486 http://asp.net Is almost as good as DaniWeb :) |
Forum: ASP.NET Mar 12th, 2008 |
| Replies: 4 Views: 1,253 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,265 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,265 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,265 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: 4 Views: 2,389 You can disable viewstate for the page so the controls don't keep their values between postbacks.
or
After having saved to the database
Just itertate the controls and set their property .Text =... |
Forum: ASP.NET Feb 25th, 2008 |
| Replies: 4 Views: 2,389 ??
Usually in ASP.NET you don't cross post to different pages like in the classic ASP days. With ASP.NET the form POSTS to itself by default. So you don't need a re-direct unless you need to go to... |
Forum: ASP.NET Feb 25th, 2008 |
| Replies: 10 Views: 3,639 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,639 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,629 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,639 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,639 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 Jan 3rd, 2008 |
| Replies: 4 Views: 824 Use ADO.NET to get data from the database.
I recommend you create a custom class that has a property for each of the data columns. Iterate the database resultset (be it a SqlDataReader or... |
Forum: ASP.NET Dec 29th, 2007 |
| Replies: 4 Views: 1,083 Just compile the website and upload only the .aspx files to the web server. The cs files are not required all the code in the .cs files is compiled into the single .dll in the bin folder. |
Forum: ASP.NET Nov 7th, 2007 |
| Replies: 3 Views: 1,231 Whichever one you want to be the main page. It's only for debugging anyway so that VS knows which page you want to start the app at.
Please post your full code as it is now in code tags please.... |
Forum: ASP.NET Nov 5th, 2007 |
| Replies: 3 Views: 1,231 The content place holder in site.master should be empty of any html, that's where the default and home pages will place their content.
Move the html in the site.master OUT from between the content... |
Forum: ASP.NET Oct 24th, 2007 |
| Replies: 2 Views: 2,184 You will need to set an onchange or onkeydown event in all of your editable controls to set a global dirty flag. Check this flag in the window.onbeforeunload event and simply return a string to it,... |
Forum: ASP.NET Oct 17th, 2007 |
| Replies: 1 Views: 5,252 This is probably to do with how the javascript is rendered (somewhere in the middle) in the completed page that goes to the browser.
I would put the javascript in a .js file. Then in the page_load... |
Forum: ASP.NET Oct 11th, 2007 |
| Replies: 1 Views: 3,491 You have a couple of choices depending on how many elements you require to print. There is no 'builtin' solution for this kind of thing in ASP.NET
look into CSS
<style type="text/css"... |
Forum: ASP.NET Oct 9th, 2007 |
| Replies: 1 Views: 15,527 I'm not certain of what you require. But perhaps you need DBNull.Value this represents a null database value. For example you can comapare a value in a DataSet to DBNull.Value which returns true if... |
Forum: ASP.NET Oct 8th, 2007 |
| Replies: 4 Views: 1,826 MsgBox("This is line one.\r\nThis is line two")
or:
MsgBox("This is line one." & Environment.NewLine & "This is line two")
See:... |
Forum: ASP.NET Oct 5th, 2007 |
| Replies: 2 Views: 1,540 OP is creating it dynamically so do Infarction's suggestion but in your code behind wherever you are building it.
using System.Web.UI.WebControls.
:
public partial class ... blah
{
private... |
Forum: ASP.NET Oct 3rd, 2007 |
| Replies: 5 Views: 2,718 If you're using javascript alert or confirm you are stuffed you can't control the style it is part of the users system and therefore controled by their current theme, browser skin etc.
You will... |
Forum: ASP.NET Sep 28th, 2007 |
| Replies: 7 Views: 1,764 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,764 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: 3 Views: 3,879 ASP.NET is a web technology which is 'pull' only. A webserver can't 'force' your browser to browse it cos there's an urgent appointment to be seen.
Where are the appointments stored? if in Sql... |
Forum: ASP.NET Sep 28th, 2007 |
| Replies: 1 Views: 823 Hi Aniruddha,
I can tell by your post you are very much in the deep end and out of your depth. You need more help than a little post in a tech forum thread can give you. And we don't just give... |
Forum: ASP.NET Sep 28th, 2007 |
| Replies: 7 Views: 1,764 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 Sep 28th, 2007 |
| Replies: 1 Views: 2,517 How much do you know about the ASP.NET page life-cycle? I suspect that is where you are struggling. If you are creating WebControls on the fly, to capture events from them they have to be re-created... |
Forum: ASP.NET Sep 25th, 2007 |
| Replies: 2 Views: 5,411 You need to put strings in double quotes. The sql string argument to the SqlCommand constructor needs to be quoted.
myCommand = New SqlCommand("UPDATE task SET ...
don't put @ in front of the... |
Forum: ASP.NET Sep 21st, 2007 |
| Replies: 10 Views: 4,069 All public IP's (all the ones on the internet) are registered to someone or organisation. You can look them up using Who Is. |
Forum: ASP.NET Sep 20th, 2007 |
| Replies: 10 Views: 4,069 Yes but it's not trivial, and you have to have sufficient authority to get it legally. |
Forum: ASP.NET Sep 20th, 2007 |
| Replies: 10 Views: 4,069 You can't hide your IP. You can use a different IP owned by a proxy server. Most ISP's host a proxy server. Using proxies is commonly referred to as hiding your ip but that is a misnomer you are just... |
Forum: ASP.NET Sep 18th, 2007 |
| Replies: 4 Views: 8,907 Trust me, whatever you want to do someone's already done it. Just use Google:
http://www.codeproject.com/useritems/Store_and_manipulat_BLOBs.asp?msg=2232721
... |