Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
P

Praveen Nayak

@Praveen Nayak
About
Posts
19
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • MaintainScrollPositionOnPostback, EnableEventValidation and IE5
    P Praveen Nayak

    Hi, I have an ASP.Net application and I have enabled the above two properties on my page. Everything works fine on every OS-Browser combination, but on Windows 2000, with IE5, 1. As soon as the page opens up, I get a JavaScript error "Object doesn't support this property or method". I identified the problem is because of enabling MaintainScrollPositionOnPostBack, which tries to change the submit property of the page: I set the property to false and all works fine even on IE5 theForm.submit = WebForm_SaveScrollPositionSubmit; 2. The page implements ICallbackEventHandler, and has script callbacks at various intervals on the page. When the page submits, I get the error "Invalid Postback or callback argument...use ClientScriptManager.RegisterForEventValidation in order to register the postback or callback data for validation" As I said, this problem only occurs on IE5, but I searched around and there are not a lot of people complaining about this. Has anyone else faced this problem with IE5 before, or can I avoid this problem somehow? Thanks, Praveen

    There has to be more to life than just this

    ASP.NET help csharp javascript asp-net tools

  • How can i learn more about background of the .net framework 2.0 ?
    P Praveen Nayak

    http://www.amazon.com/CLR-via-Second-Jeffrey-Richter/dp/0735621632/sr=8-1/qid=1160105221/ref=pd_bbs_1/102-7391537-4716111?ie=UTF8&s=books[^] The above book - CLR via C# is a great book to see the internal workings of the framework, and I think, a must have for any .NET developer

    There has to be more to life than just this

    .NET (Core and Framework) question csharp dotnet performance help

  • 3 Tier Architecture Code
    P Praveen Nayak

    Just googling for it can give you some good links showing the concept. Anyway, try this codeproject article itself. The architecture is all there. http://www.codeproject.com/csharp/three\_tier\_architecture.asp There has to be more to life than just this

    C# architecture help

  • using GACUTIL.exe programmatically
    P Praveen Nayak

    You can execute batch files using Process.Start(...) command. You can create a batch file which first invokes the vsvars32.bat (to set the path), and then you can execute GacUtil.exe, which will do whatever... There has to be more to life than just this

    C# question csharp dotnet visual-studio help

  • C#.Net
    P Praveen Nayak

    If you are using independent connections as suggested already earlier, it all comes down to whether the database maintains integrity of transactions. Yes it does, that is why we pay so much money to use an Oracle or SQL Server database. If thread A is inserting a row into the database, the concerned tables will be locked and thread B will be made to wait before it can read or delete stuff. So, yes, database is the most convinient method, albeit a tad slower. There has to be more to life than just this

    C# csharp database xml tutorial

  • C#.Net
    P Praveen Nayak

    If you were back to the xml file thing, you could have a common write function used by the two threads, and a lock(this) at the start of the function so that the other thread cannot execute that method when one thread is inside it. After every write into the file, you will have to save the file, so that when the next guy opens it, he will be appending to the already existing content of the xml file. There has to be more to life than just this

    C# csharp database xml tutorial

  • How to create simple boolean property for usercontrol, so, that it shows in IDE property page?
    P Praveen Nayak

    You have answered your own question, actually. If you create a boolean property inside a user control and then add the user control into a form (should be visible in the designer mode), then you can see the property in the Property Page of VS.NET editor. There has to be more to life than just this

    C# visual-studio tutorial question

  • how to check if client still connected to server
    P Praveen Nayak

    Usually in client-server architecture, the initative must be taken by the client to contact the server. The server does not go searching for the client. A problem similar to yours is also faced by Web Servers like IIS, which maintain a session per client that connects and session takes up memory on the server. So the session must be destroyed when the client disconnects. But web browsers like IE do not inform the server on being closed. So server comes up with a simple mechanism of destroying the session. If the client does not connect for a long time (maybe 15 minutes), the session gets automatically destroyed. You can adopt a similar concept. Also, a live client could send some dummy ping messages at regular intervals, to keep the session active. There has to be more to life than just this

    C# sysadmin help csharp tutorial question

  • DataGird Can U help Me
    P Praveen Nayak

    try this. Note that dataGrid1 must be a DataGrid control that you dragged and dropped onto your form. using System.Data; ... private void MainForm_Load(object sender, System.EventArgs e) { DataSet ds = new DataSet(); ds.Tables.Add ("One"); ds.Tables[0].Columns.Add ("A"); ds.Tables[0].Columns.Add ("B"); ds.Tables[0].Columns[0].DataType = typeof (bool); ds.Tables[0].Columns[1].DataType = typeof (string); ds.Tables[0].Rows.Add (new object[] {true, "First"}); dataGrid1.DataSource = ds; } ... Hope this helps. There has to be more to life than just this

    C# csharp winforms help

  • public variables
    P Praveen Nayak

    Whoa, hold on there. That code looks so... ok, see, if you want to access a public variable of form 1 in form 2, you an object of form2 must have a reference to an object of form1. So, the code should be: public class Form1 : System.Windows.Forms.Form { public Form2 Form2= new Form2 (this); public int x = 0; .... } // Form2 class public class Form2 { private Form1 owner; // Constructor public Form2( Form1 form1) { this.owner = form1; } private void Form2_Load(object sender, System.EventArgs e) { //this is where i know the problem is owner.x = 3; } ... } with this, the Form1 object's variable x will be set inside Form2 after Form2 loads. Please read up on the concepts of classes and objects. There has to be more to life than just this

    C# help

  • WMI Exceptions/Updating List View
    P Praveen Nayak

    1. This point is pretty simple, there could be many cases where you are trying to access a property of a null item which is throwing the exception. For example, if MO["Whatever"] doesn't return a valid object, it returns a null. You are then trying to access the ToString() method over this object, which is actually null, so it is like null.ToString(). You cannot access any of the properties on null. Ideally you must perform checks like object temp = MO["Whatever"] if (temp != null) { processItem.SubItems.Add(temp.ToString() + " Bytes"); } Note: Null checks must be a "taken for granted" coding style. 2. I am thinking, don't clear the list. You then use listView.Contains(..) method (or a similar implementation by you) to first check if the new item is present and if it is, don't add it. Add a reference to all the current items of the list view not checked to a collection. This will be the list that got removed (if you need that) and then remove these items from the list. There will be much less confusion this way. There has to be more to life than just this -- modified at 1:01 Friday 24th February, 2006

    C# csharp tutorial question announcement

  • DataGird Can U help Me
    P Praveen Nayak

    You bind a datagrid to a data source to display contents on the grid. Usually a dataset gets bound to the grid. In this case, if one of the columns in the dataset is a boolean value, checkbox automatically appears for that boolean column in the datagrid. Ciao There has to be more to life than just this -- modified at 23:15 Thursday 23rd February, 2006

    C# csharp winforms help

  • do I need a lience to use word.dll in a commercial product
    P Praveen Nayak

    If you include the reference to Word in the project, all your project will generate is an interop file for Word. You won't need a license for that. To be able to use Word on a target installation machine, the machine must have Word already installed. So I don't think you will have any licencing issue. Also, I don't think your operations on Word (in the application) will work if the target machine does not have MS Word already installed. There has to be more to life than just this

    C#

  • .NET WebService Problem
    P Praveen Nayak

    Hi I have written a web service in C#. A web method in this web service returns a response object which contains an attribute with the name "code". For some reason this attribute does not appear in the response. Response looks like this: ... Job Allocated... If I change the attribute "code" to "codes" or any thing else, the attribute appears in the response: ... Job Allocated ... I am really stumped why this is happening. Can anyone give me some insight into this? Is this because of some keywords or something that .Net uses making their use restricted? But I didn't come across any documentation indicating this.

    C# csharp help question career

  • Sharepoint Server performance
    P Praveen Nayak

    Please inform what log files will be useful to analyse performance issues for sharepoint portal.

    System Admin sharepoint sysadmin performance

  • Merging of two XML documents
    P Praveen Nayak

    The merging of two xml documents can be more easily and elegantly performed by using xslt. Here is a link that implements the same beautifully. http://www.informatik.hu-berlin.de/~obecker/XSLT/#merge Think of it as evolution in action

    XML / XSL question csharp java dotnet tools

  • Setup and Installation Project
    P Praveen Nayak

    I already have used the Edit1Property and have set it to "URL". What I need is to be able to fill the Edit1Value dynamically, read from a text file maybe, and be displayed to the user. Think of it as evolution in action

    C# question workspace

  • Setup and Installation Project
    P Praveen Nayak

    Hi, I have an application for which I must create a Setup package. The package allows the user to enter some information in a text box (during the installation). I have used Textboxes(A) for this purpose. The textbox must contain a default value when presented to the user during the installation. This default value must be set dynamically. Is there some way this can be done... maybe the Setup Package reading an ini file and putting the value from the file into the text box during the installation? I don't know if and how ini files can be read during the installation.

    C# question workspace

  • COM extended - Excel
    P Praveen Nayak

    I have an ASP .NET application in which I had to open an Excel file and read data. I included a COM reference for Excel Object and used the Excel Application object to read from a spreadsheet. I am assuming this is an unmanaged code. Doesn't .Net have some class similar to this which can allow me to access any cell inside an Excel Sheet? Praveen

    .NET (Core and Framework) csharp com question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups