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
D

DineshSharmain

@DineshSharmain
About
Posts
22
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • FileUpload Control getting null in [Ajax.AjaxMethod]
    D DineshSharmain

    Hi Frends I am using the ASP.Net FileUpload control to upload the file and using AjaxMethod to save the file on Server but I am getting the FileUpload as null...... anybody pls help....

    [Ajax.AjaxMethod()]
    public bool VerifyUploadedData()
    {

        try
        {
            if (FileUpload1.HasFile)
            {
                sFileType = System.IO.Path.GetExtension(FileUpload1.FileName);
                sFileType = sFileType.ToLower();
    
                if (sFileType == ".xls")
                {
                    string FilePath= System.Configuration.ConfigurationManager.AppSettings\["FilePath"\].ToString();
                    FilePath = FilePath + FileUpload1.FileName;
                    FileUpload1.SaveAs(Server.MapPath(FilePath));
                 }
          }
    

    Thanks

    Dinesh Sharma

    ASP.NET csharp asp-net sysadmin help workspace

  • C# - Static classes
    D DineshSharmain

    Thanks Navneet wat about the code....I have given....is this thread safe may i get any deadlock situation in my application due to this ...as m getting if load increase on application so m digging all this.

    Dinesh Sharma

    modified on Wednesday, January 7, 2009 2:52 AM

    C# announcement csharp database

  • C# - Static classes
    D DineshSharmain

    Thanks for your reply..... my problem is not related to database....its related to performance & scalability of static classes. code is as follows -

    static public class TempExample
    {
    static public bool GetCombo(object a, out DataSet dsAccountClass, string strClassType)
    {

            IDBHelper intfDBHelper = DBClient.GetDBHelper();
            dsAccountClass = new DataSet();
            IDataParameter\[\] arParms = intfDBHelper.CreateDBParamsArray(2);
            arParms\[0\] = intfDBHelper.CreateNewDBParam("ID", SqlDbType.NVarChar, 6);
            arParms\[0\].Value = a.strA;
            arParms\[1\] = intfDBHelper.CreateNewDBParam("ClasificationType", SqlDbType.NVarChar, 1);
            arParms\[1\].Value = strClassType;
            try
            {
                using (IDbConnection connection = DBClient.GetConnection(a.strSystem))
                {
                    intfDBHelper.FillDataset(connection, CommandType.StoredProcedure, "p\_GetSpConditionCalssCombo", dsAccountClass, new string\[\] { "dt\_ProductClassID" }, arParms);
                }
    
                if (dsAccountClass.Tables\[0\].Rows.Count == 0)
                    return false;
                return true;
            }
            catch (Exception ex)
            {
                throw DBClientUtils.GetDBErrorMessages(ex, a.strUser);
            }
            finally
            {
                dsAccountClass.Dispose();
            }
    
        }
    

    }

    Multiple user will be accessing this class without creating an object so what will happen if 100 users are trying to access the same method of class at the same time.

    Dinesh Sharma

    C# announcement csharp database

  • C# - Static classes
    D DineshSharmain

    Hi All, I am really confused with.....static classes...its harmful or beneficial in terms of scalability. no. of users are accessing one static method of static class.....that performs any operation like data insertion, update, deletion and fetching from database..... my confusion is that...while all users will be calling the same method using class directly then it will maintain the version or all users will be in Q. or something else.... I am eager to know ..... Thanks

    Dinesh Sharma

    C# announcement csharp database

  • document.getElementById(ID).all not working with firefox 3.0
    D DineshSharmain

    it will return an object ....its ok. but which property will return the number of rows.... I tried the rows property but its not returning all the rows.

    Dinesh Sharma

    ASP.NET

  • document.getElementById(ID).all not working with firefox 3.0
    D DineshSharmain

    Thanks Parwej The Id here is a table that contains multiple rows like grid so by using all i am getting all the rows ... for this control value is not supported

    Dinesh Sharma

    ASP.NET

  • document.getElementById(ID).all not working with firefox 3.0
    D DineshSharmain

    Hi I am implementing document.getElementById(ID).all to get all the data (working fine with IE :) ) but unfortunately Firefox 3.0 :( doesn't support this. anybody has done a workaround for this please reply. :doh: Thanks

    Dinesh Sharma

    ASP.NET

  • AJAX.net posting back the page on Firefox
    D DineshSharmain

    Hi I am working on ASP.net application and using AJAX.net. if i am runing my application on firefox then my page_load is being called when I click on button (that calls ajax method ) while with IE its working fine (not loading the page again). is there any work around for this...... Thanks

    Dinesh Sharma

    ASP.NET csharp asp-net

  • Add/update nodes in xml file using javascript
    D DineshSharmain

    my file is on server and m using asp.net 2.0... actually if i am using serverside code then page reloads so i am trying to use [Ajax.AjaxMethod()] but it doesn't work properly..... is there any other way...like ajax or.....

    Dinesh Sharma

    ASP.NET javascript xml question announcement

  • Add/update nodes in xml file using javascript
    D DineshSharmain

    Thanks for your reply I have already implemented the script and I am getting the updated string....but its not updating my physical file "XMLFile.xml". How can I update the file..... Thanks

    Dinesh Sharma

    ASP.NET javascript xml question announcement

  • Add/update nodes in xml file using javascript
    D DineshSharmain

    Hi I want to Add/update nodes in xml file using javascript..... is it possible? if yes then HOW.... Thanks

    Dinesh Sharma

    ASP.NET javascript xml question announcement

  • Performance Issue..... C#
    D DineshSharmain

    Thanks for your reply...but are you sure the breaking of functions will not affect the performance (speed)

    Dinesh Sharma

    ASP.NET csharp business performance help question

  • How to override the machine.config ?
    D DineshSharmain

    The following code will replace the machine.config settings for session state

    <sessionState timeout="525600" cookieless="UseCookies" mode="InProc"/>

    Dinesh Sharma

    ASP.NET tutorial question

  • How to override the machine.config ?
    D DineshSharmain

    whatever the setting you want to override define it in your applcations web.config file.

    Dinesh Sharma

    ASP.NET tutorial question

  • Performance Issue..... C#
    D DineshSharmain

    Hi I have to write some functions so i want to confirm whats better... 1. if i write one function with lot of functionalities For exa.

    Function Unit()
    {
    ---- some code




    .
    .
    .
    }

    2. if I break down this function in multiple functions and the call them inside the function and these function will be written in business layer. For exa.

    Function Unit()
    {
    ---- some code

    Fun1(arg1,arg2)

    Fun2(arg1,arg2)

    .
    .
    .
    }

    Question 2 - is this a good practice (if not what are the drawbacks) or i must use directly Convert.ToInt16(oData). ****I am calling this at so many places

    public static short ConvertToShort(object oData)
    {
    if (oData.ToString() == "")
    {
    return 0;
    }
    else
    {
    return Convert.ToInt16(oData);
    }
    }

    Thanks

    Dinesh Sharma

    ASP.NET csharp business performance help question

  • stuck in loop by seting focus using javascript
    D DineshSharmain

    thanks buddy for your quick reply.........:) but my problem is that i m validating the value (entered by user) onblur. if value is ok then move to next text box else focus remain to same textbox. same condition is with next textbox. but what is happening with me .....before firing the onblur event for tBox1 focus goes to next textbox (tBox2) and then onblur function called for tBox1. but as tBox2 got the focus automatically and my function is setting the focus to tBox1 'coz' of wrong value. so tBox2 also fire the event onblur and it happens continuously............. function Check(Ntxt) { switch(Ntxt.id) { case "tBox1": if(Ntxt.value.length<11) Ntxt.focus(); break; case "tBox2": if(Ntxt.value.length<10) Ntxt.focus(); break; } } calling the function TextBox1.Attributes.Add("onblur", "Check(this)"); TextBox2.Attributes.Add("onblur", "Check(this)"); assume both the textbox's condition is false Thanks

    Dinesh Sharma

    ASP.NET help javascript

  • stuck in loop by seting focus using javascript
    D DineshSharmain

    thanks to pay your attention... my scenario is to validate two textboxes on focus lost if validated then move focus to next box else remain the focus on tBox1.

    Dinesh Sharma

    ASP.NET help javascript

  • stuck in loop by seting focus using javascript
    D DineshSharmain

    Hi I have two text boxes and written the javascript function for both that will be fired onblur event. i put the condition in javascript function function Check(Obj) { if(Obj.value==0) Obj.focus() } and calling as: problem is before calling the onblur event focus goes to second textbox and simultaneouly call the Check function for first textbox that set the focus for tBox1 and so now Check() function calling for tBox2.......and stuck in loop........ please give me any solution:confused:......Thanks

    Dinesh Sharma

    ASP.NET help javascript

  • How to retrieve value from query string using javascript
    D DineshSharmain

    Hi i m using javascript to open a popup window and want to paa one value from parent window to popup window. i need to use that value in my javascript function but i m not getting the point to retrieve the query string value using javascript..... can anyone help:confused: Thanks

    Dinesh Sharma

    Database javascript database help tutorial

  • javascript for textbox that accept only numbers
    D DineshSharmain

    Thanks for your interest... i have tried all the events but still it display the char. that i don't want. please suggest me if any other way to accept only numeric. these textboxes are generating at run time. :confused:

    Dinesh Sharma

    Web Development javascript help 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