|
Colin Angus Mackay wrote: then breakpoints become less useful.
True, but the quick watch window will do partial evaluations - i.e. highlight ds.Tables, QW, and it will show the details of the tables collection. You can then work your way down the command till one returns an error in QW
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
instead
lbl_title.Text = Convert.ToString(ds.Tables[0].Rows[0]["sex"]);
use this way
lbl_title.Text =ds.Tables[0].Rows[0]["sex"].ToString();
|
|
|
|
|
imrankhanpathan wrote: lbl_title.Text =Convert.ToString(ds.Tables[0].Rows[0]["sex"]);
Set a breakpoint in the quoted line. When the breakpoint hits quickwatch on the values of each.
1) Either Tables[0] or Rows[0] is evaluated to null. I don't think ds can be null since it is cast from Session object and if Session is null, it would thrown exception two lines above (InvalidCastException)
2) new Label does not serve any purpose unless a controls.Add is called to add itself to the page. The other way round, have <asp:label in="" the="" aspx="" page="" and="" just="" declare="" label="" <code="">protected Label lblId
|
|
|
|
|
Vasudevan Deepak Kumar wrote: I don't think ds can be null since it is cast from Session object and if Session is null, it would thrown exception two lines above (InvalidCastException)
Incorrect, null can be cast successfully to another object.
For example, try this in a console application:
object o = null;
string s = (string)o;
Console.WriteLine("String is null: {0}", s == null);
Console.ReadLine();
|
|
|
|
|
Thank you. It was enlightening.
But I have encountered the above piquant situation with DbNull.Value casting too. Could'nt get an immediate standalone snapshot example though.
Thanks for the poiner anyway.
|
|
|
|
|
Since the birth of my second child ["sex"] has always been an invalid object...
Regards
*********************************************
|
|
|
|
|
Hi
I have various web pages that perform lengthy operations. I use asynchronous calls and callbacks, and update the screen with progress. All works perfectly on my local box using teh development server. but...when I migrate to the IIS release server, the asynchronous elements all stop working. Ive got asnych code in codebehind and in C# webservices, and locally, they all work. On IIS they don't.
So, the question is - do I have to configure IIS in anyway to allow me to do asynchronous calls?
Desparate.
Regards
*********************************************
|
|
|
|
|
if u r using mozilla or firre fox then u will not able to work.. ur problem is correct in this case..
because in mozilla cross domain async call of data is not allowed....
or may be ur web sevice is not published on new server....
Ravi Kant Srivastava
(System Analyst)
HandsOn Technology and Engineering
(Gurgaon India)
|
|
|
|
|
IE6. But problem is server side, not client side. Webservice is published, and also failing from non webservice pages, ie CodeBehind.
Regards
Angel
*********************************************
|
|
|
|
|
Doh
Permissions!
Running locally, on my dev box, I had permissions set for everything. Not so on the IIS box. Sorted!!
Regards
Angel
*********************************************
|
|
|
|
|
Hi All, What is difference between dotnet nuke and Microsoft Solution Framework.....???
i m confuse
Thanks
Sajjad
|
|
|
|
|
imshally81 wrote: What is difference between dotnet nuke and Microsoft Solution Framework.....???
They are totally different things. They are not comparible.
DotNetNuke is open source web portal software. Microsoft Solutions Framework (MSF) is a set of business processes for developing software.
|
|
|
|
|
|
imshally81 wrote: u mean, MSF like RUP ???
Good grief! MSF is much better than RUP.
|
|
|
|
|
While opening new Project in ASP.net there is select Control with options
as 1] FileSystem 2] HTTP 3] FTP . What these options are and their criteria to select . Though at the momement I am using Filesystem
Navneet Hegde
progarm2Develop & Develop2program
|
|
|
|
|
In the new ASP.NET 2.0 there are two ways to host an application. First way is to host it on IIS and second is to host it on the built-in web server bundled by default with VS.NET 2005. Selecting File System will create the web application anywhere on your hard disk and will use the .NET's web server. Selecting the HTTP will create it in the inetpub/wwwroot folder like the older version of ASP.NET.
As far as ftp is concerned .NET 2005 now enables you to create and open a project from anywhere on your network.
Bill, do I deserve a job now?
Happy Coding
Aleem
|
|
|
|
|
Very Much thanks for your exact and terse answer. Looking for many such transaction across CodeProject.
Happy Coding,
Navneet Hegde
develop2Program program2develop
|
|
|
|
|
Much satisfaction from babelfish using did get I.
|
|
|
|
|
I am searching for log4net materials for asp.net 2.0 , and i encounter some difficulties.
I have added a web.config file to the project, and do like this
http://www.dotnetspace.com/articles/general-articles/using-log4net---very-quick-start.html
and i put a button in it and when it is clicked, it will run
protected void Button1_Click(object sender, EventArgs e)
{
log.Debug("this text will be in log file");
}
However, I cannot find the log.txt. Or even I created the log\log.txt. It has nth in it. Please help. Thank you very much.
|
|
|
|
|
If you don't have any luck in solving your problem I would recommend using NLog instead. NLog is derived from log4net but is simpler to use and the tutorial material is better. I never tried log4net because NLog just seemed more accessible.
http://www.nlog-project.org/[^]
Kevin
|
|
|
|
|
Can anybody expalin me on how to add an .ashx file in asp.net (VB)?
|
|
|
|
|
Using the .NET 2005 IDE simply right click the project and click Add New Items. From the List of the available items select Generic Handler and a .ashx file will be added. Hope you were looking for this !
Regards,
Aleem
|
|
|
|
|
Thanks Aleem!
Actually I was looking for the same in .NET 2003 IDE. Dont we have such option there?
|
|
|
|
|
|
How can i get CultureName (using C#) based on datetime format.
Example :
datetime format is "M/d/yyyy" and how to get CultureName
Regards
|
|
|
|