User Profile

Collapse

Profile Sidebar

Collapse
enggwaqas
enggwaqas
Last Activity: Feb 25 '10, 01:50 AM
Joined: Jun 21 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • enggwaqas
    started a topic .net not releasing memory
    in .NET

    .net not releasing memory

    Hi guys,
    I have a memory problem in my vb.net application. It's actually a point of sales system, which must be keep running the whole day.
    The problem is: application is not releasing any memory that it allocates for any resources.
    When my application starts it loads a form say frmLogin, at this time the memory used by my application is for example 67K.
    Now when user enters his credentials an MDI form is loaded, causing...
    See more | Go to post

  • enggwaqas
    started a topic Session lost after Server.Transfer
    in .NET

    Session lost after Server.Transfer

    My code is:
    Code:
    if (ctx.Request.RawUrl.Contains("/Category/"))
            {
                string[] strArray = ctx.Request.RawUrl.Split(new string[] { "/" } , StringSplitOptions.RemoveEmptyEntries);
                string strCategoryName = strArray[strArray.Length - 1].Replace("_", " ");
                
                DALTableAdapters.categoryTableAdapter catAdapter = new DALTableAdapters.categoryTableAdapter();
    ...
    See more | Go to post

  • enggwaqas
    started a topic Begin<Web Method Name> is not available
    in .NET

    Begin<Web Method Name> is not available

    I am exposing my Biztalk orchestration as a web service and want to consume this web service asyncly, but when i added web reference in my visual studio project it isn't displying Begin<Web Method Name> and End<Web Method Name> function?
    See more | Go to post

  • enggwaqas
    replied to javascript alert in C# web form
    in .NET
    If you are using .net 2.0 you can use the OnClientClick property to show javascript alert. In this case javascript function will always call first.

    Code:
    <asp:Button ID="btnShow" runat="server" OnClientClick="javascript:alert('Message to display');" />
    ...
    See more | Go to post

    Leave a comment:


  • What is the exact error you are receving?...
    See more | Go to post

    Leave a comment:


  • Do you want to call the timer event function on a mouse click or do you want to register an event handler (assign a function to timer) to the timer within a mouse click event handler?

    You can call the timer event function within a mouse click event, like this:

    Code:
    private void button1_Click(object sender, EventArgs e)
            {
                t_Elapsed(sender, e);
            }
    Or if you want...
    See more | Go to post

    Leave a comment:


  • Try
    document.getEle mentById('<%=lb lcnt.ClientID%> ').innerHTML
    instead...
    See more | Go to post

    Leave a comment:


  • enggwaqas
    replied to static functions
    in .NET
    Static function can access static variables and variables that are local to that function but static function can not access "member" variables. The reason is Static method can be called without instatiating a class object. e.g.

    Code:
    class Program
        {
            private int _iNumber;
            static int _iStaticNumber;
    
            static void Func()
            {
                _iStaticNumber
    ...
    See more | Go to post

    Leave a comment:


  • enggwaqas
    replied to one label is not desplaid in mozilla.why?
    in .NET
    There isn't any problem with the HTML you pasted above, working fine and displaying the values of label controls on Mozilla FireFox and IE. Check your code which is setting the Text property of lblcnt...
    See more | Go to post

    Leave a comment:


  • enggwaqas
    replied to Adding Hyperlink in DataGrid Control
    in .NET
    There are two ways of doing this:

    1. Using HyperLinkColumn colum, e.g:
    Code:
    <asp:DataGrid ID="dg" runat="server">
                <Columns>
                    <asp:HyperLinkColumn DataNavigateUrlFormatString="~/more.aspx?id={0}" DataNavigateUrlField="id" DataTextField="name" />
                </Columns>
            </asp:DataGrid>
    ...
    See more | Go to post

    Leave a comment:


  • You can do this with keyUp event handler and SuppressKeyPres s property of KeyEventArg like this:

    Code:
    Private Sub TextBox1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown
            If e.KeyValue < 48 Or e.KeyValue > 57 Then
                e.SuppressKeyPress = True
            End If
        End Sub
    ...
    See more | Go to post

    Leave a comment:


  • enggwaqas
    replied to using ToString() in C#
    in .NET
    Regarding your ToString() overriding question, try this:


    Code:
    Console.WriteLine("Phew:{0}", 
     		                  mp.ToString());
    See more | Go to post

    Leave a comment:


  • enggwaqas
    replied to anything wrong with line 29?
    in .NET
    Make sure that id exists in your query string i.e.
    the url to this page should look some thing like this:
    http://..../yourpage.aspx?id=someValue...
    See more | Go to post

    Leave a comment:


  • Data access provider for oracle from MS and ODP.NET 9.xxx doesn't support CommandTimeOut property....
    See more | Go to post

    Leave a comment:


  • enggwaqas
    started a topic Cancelling SQL Command forcibly / Command timeout
    in .NET

    Cancelling SQL Command forcibly / Command timeout

    I have an Oracle stored procedure that takes approx 3 minutes to execute and I am using .net 2.0 data access provider for oracle. Now i want to cancel the execution of stored procedure from .net after few seconds, the code i wrote for this is:

    Code:
    //Start main function
    
    System.Data.OracleClient.OracleDataAdapter objAdapter;
    System.Data.OracleClient.OracleConnection con;
    System.Threading.Timer
    ...
    See more | Go to post

  • This service is dealing with large amount of data.
    We have an alternative to soap, i.e. TCP and it takes arround 50 minutes to complete and give response....
    See more | Go to post

    Leave a comment:


  • Web service returns internal server error after few minutes

    I have a web service that normally takes 50 minutes to execute, howerver when it reaches to 20 minutes it gives HTTP 500 internal server error.

    I tried every possible solution like
    but not luck.

    -Enabling the session state and increasing the session time out from IIS Application Configuration.

    -Increased the request timeout from IIS asp.net configuration

    -Disabling the 'Shutdown worker...
    See more | Go to post

  • enggwaqas
    started a topic client/server application

    client/server application

    I don't know whether this is right forum to post this or not...
    Basically i wanna make a client/server application where Server will be my desktop pc and client will be any mobile running Windows CE. I have done socket programming before in c# but not pretty sure about this kind of client/server application. So any one here can guide me in this? basically a starting point is needed.



    Also i am confused about choosing...
    See more | Go to post

  • Application name which trying to access particular port

    I have downloaded a simple port blocker written in vb.net which is working fine, now i want to extend it so that it will display a popup window whenever any application trying to access the particular port blocked by this program...

    e.g. port 8080 is blocked, when some one try to make request on internet explorer http://testweb:8080/ then it will display a popup which say's IE is trying to access the internet.... Zone Alram is a good...
    See more | Go to post
No activity results to display
Show More
Working...