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
S

sanjubaba

@sanjubaba
About
Posts
37
Topics
24
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • clearing a asp:listbox takes too much of time
    S sanjubaba

    Hi, I am trying to clear the items in listbox using .clear method. but this takes too much of time. currently my listbox contains about 5000 records, but when i try to clear the listbox it takes almost around 1 min. any workaround for this Sandeep Kumbhar

    ASP.NET

  • messagebox does not appear when asp:updatepanel and updateprogress control is used
    S sanjubaba

    hi jamii, this.ID in you reply means exactly which id. i am actually displaying the messagebox through class. in my aspx page i am using the object of the class and passing the message to the method which in turn displays the messagebox Sandeep Kumbhar

    ASP.NET design sysadmin data-structures security workspace

  • messagebox does not appear when asp:updatepanel and updateprogress control is used
    S sanjubaba

    hi, i am displaying a messagebox server side. For that i have developed a class which is called from an aspx page which inherits masterpage. the master page includes asp:updatepanel control and updateprogress control. due to this i cant use httpconetxt.current.response.write to display the message box. Following is the aspx code: using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class Presentation_Admin_Menu_MenuGroup_MenuGroupDetail : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { MsgPopUp.Show(Page, "sandeep with me"); } } THIS IS THE CLASS CODE FOR DISPLAYING THE MESSAGEBOX ==================================================== public static void Show_Panel(Page sender, string Message) { try { UpdatePanel sender1 = (UpdatePanel)sender.Master.FindControl("UpdPanel"); ScriptManager.RegisterStartupScript(sender1, typeof(UpdatePanel), "ABC", "alert('"+Message+"');", true); //if (!(handlerPages.Contains(HttpContext.Current.Handler))) //{ // Page currentPage = (Page)HttpContext.Current.Handler; // if (!((currentPage == null))) // { // Queue messageQueue = new Queue(); // messageQueue.Enqueue(Message); // handlerPages.Add(HttpContext.Current.Handler, messageQueue); // currentPage.Unload += new EventHandler(CurrentPageUnload_withupdpanel); // } //} //else //{ // Queue queue = ((Queue)(handlerPages[HttpContext.Current.Handler])); // queue.Enqueue(Message); //} } catch (Exception ex) { throw ex; } } private static void CurrentPageUnload_withupdpanel(object sender, EventArgs e) { try { Queue queue = ((Queue)(handlerPages[HttpContext.Current.Handler])); if (queue != null) { StringBuilder builder = new StringBuilder

    ASP.NET design sysadmin data-structures security workspace

  • debugger does not get attached to a site
    S sanjubaba

    hi, i have developed a web site in vs 2005. when i execute the website by pressing F5, the site opens, but in the environment [vs 2005] it does not show that it is in the debugging mode. the site opens seperately. Sandeep Kumbhar

    ASP.NET visual-studio debugging workspace

  • asp:menu control working slow on large amount of data on a page
    S sanjubaba

    hi,    in my application i am using asp:menu control. when there is large amount of data on a page the menu control starts working slow. when i added <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE6" /> tag on the master page before doctype the menu started working properly, but the menu stylesheet changed. in the stylesheet i had to add a html td tag eg: td { font-size:12px; font-weight:bold; font-family:Arial, Helvetica, sans-serif; margin-left:5pt; line-height:15pt; } this solved the stylesheet issue. I want to know why i have to add <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE6" /> for making the menu control fast and why i have to add td tag in stylesheet. Thanks

    Sandeep Kumbhar

    ASP.NET html help

  • asp:menu control works slow in ie7
    S sanjubaba

    hi,    i am developing a web application where i am using asp:menu control to display menus.    ie version is ie7. when there is less amount of data on a page the menu renders faster. Now for certain pages where i am using asp:Listbox control, when there are many items in the listbox control, the menu items are displayed slow. it takes some seconds to display the child menu items onhover. when there are lesser items in listbox the menu control render fast. This happens in ie7,but in ie6 that is not an issue. the menu displays faster in ie6 even when there is large amount of data in listbox

    Sandeep Kumbhar

    ASP.NET css help announcement

  • receiving posted data in a page from SHDocVw.InternetExplorer
    S sanjubaba

    hi,    i am opening a web application from a windows applicatino using SHDocVw.InternetExplorer. eg. object vPost, vHeader, vFlags, vTargetFrame, vUrl;                   string vPostData;                   vPostData = "SecKey=123&Uname=xyz";                   SHDocVw.InternetExplorer ie; //Class ie = new SHDocVw.InternetExplorerClass();                   vFlags = null;                   vTargetFrame = null;                   vUrl = "http://localhost/app/StartUpPage.aspx";                   vHeader = "Content-Type: application/x-www-form-urlencoded" + Convert.ToChar(10) + Convert.ToChar(13);                   //Convert the string to post to an array of bytes.                   vPost = ASCIIEncoding.ASCII.GetBytes(vPostData); ie.Navigate2(ref vUrl, ref vFlags, ref vTargetFrame, ref vPost, ref vHeader); In the above code vpost is an bytes array which i am posting to the web application. my question is how to receive the posted data in a web application

    Sandeep Kumbhar

    ASP.NET data-structures tutorial question

  • menu items displays slow in an application
    S sanjubaba

    hi,    i am using asp:menu control to bind the menu items. Binding happens through xml datasource. also i observed that , menu control becomes slow when there are many items in listbox control in page. when i move to some other page without the list box control the menu control acts fast.

    Sandeep Kumbhar

    ASP.NET performance

  • menu items displays slow in an application
    S sanjubaba

    hi,    I have developed an application. I have used asp:menu control to display menu items.    i navigate to a page, after the page is displayed , when i again move to select a menu item, the speed of displaying the menu levels becomes slow. this happens when i move to a particular page and then move to select a menu item.    I have also observed that the same thing is working fine in ie6, but not in ie7.

    Sandeep Kumbhar

    ASP.NET performance

  • problem while taking a project from vss
    S sanjubaba

    hi,    i am not getting the line, Copy the project .what to do exactly? thanks,

    Sandeep Kumbhar

    ASP.NET csharp visual-studio help announcement

  • problem while taking a project from vss
    S sanjubaba

    Hi,    I am taking a project from vss. following are the steps which i am following: 1) opening microsoft visual sourcesafe 6.0 2) set working folder in c:\inetpub\wwwroot\folder_name 3) get latest version recursive. after this process, i try to open the project in microsoft visual studio by clicking on the solution file created for the project from c:\inetpub\wwwroot\folder_name, but it again asks me to create a folder with the same project name and again it generates all the files in the newly generated folder. the folder hierarchy goes like this: c:\inetpub\wwwroot\folder_name\folder_name and the files.

    Sandeep Kumbhar

    ASP.NET csharp visual-studio help announcement

  • displaying an alert in codebehind while using updatepanel control
    S sanjubaba

    hi,    indeed this was a very good solution. now i making this thing generic. so that i only have to call the msgpopup class and display the message. i am calling the dll of the project where i am writing the same code ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), "alert('hi');", true); but this seems to be not working. it fails to display the message box. following is the code in the dll. the code:-- ========== using System;       using System.Data;       using System.Configuration;       using System.Web;            using System.Collections;       using System.Text;       using System.Web.UI;       /// <summary>       /// Summary description for MsgPopUp       /// </summary> public class MsgPopUp {       protected static Hashtable handlerPages = new Hashtable();            public static void Show(string Message)       {                        try             {                   if (!(handlerPages.Contains(HttpContext.Current.Handler)))                   {                         Page currentPage = (Page)HttpContext.Current.Handler;                         if (!((currentPage == null)))                         {                               Queue messageQueue = new Queue();                               messageQueue.Enqueue(Message);                               handlerPages.Add(HttpContext.Current.Handler, messageQueue);

    ASP.NET

  • displaying an alert in codebehind while using updatepanel control
    S sanjubaba

    Hi,    i am inheriting a masterpage in an aspx page. in the masterpage i am using updatepanel control. now in the codebehind of that aspx page, when i complete the databasetransaction process, i want to display an alert box. But that alert box is not getting displayed as i am using updatepanel control. prior to using updatepanelcontrol it was working as i use to display the alert box using httpcontext.current.response.write. now as i am using updatepanelcontrol the alert box is not getting displayed by using registerscriptblock also.

    Sandeep Kumbhar

    ASP.NET

  • Passing a table (DataTable) value as a parameter to stored procedure
    S sanjubaba

    any solution thanks

    Sandeep Kumbhar

    modified on Wednesday, September 16, 2009 12:00 AM

    C# database sql-server sysadmin help

  • Passing a table (DataTable) value as a parameter to stored procedure
    S sanjubaba

    Hi,    I am trying to pass a datatable as a parameter to a stored procedure. my sql server is 2008. Also my database transactions happens with the class from enterprise library January 2006. Following is my code: DataTable dt = new DataTable();                   DataColumn dcol = new DataColumn("Col1", typeof(int));                   dt.Columns.Add(dcol);                   DataRow dr;                   dr = dt.NewRow();                   dr["Col1"] = 1;                   dt.Rows.Add(dr);                   SqlParameter parameter = new SqlParameter("@MenuRights", SqlDbType.Structured);                   parameter.Value = dt;                   DataTable dtbl = ExecuteDatabaseQuery.Reference.ExecuteQuery_DataTable(ConAdmin, "teststorepro", "teststorepro",                         ProjectConstants.QueryType.StoredProc, null, true, null,                         parameter); When the sqlcommand is made and passed for executing, it throws an error "Failed to convert parameter value to IEnumerable". Following is the code from enterprise library: Database db = (Database)CreateConnection(ConnectionName);                         if (WriteInfoInLogFile == true && WriteToLogs == true)                         {                               CLogger.Reference.sLogInfo(ConnectionName, OptionName, oQuery, TypeOfQuery, CLogger.EStatus.StartProcess, LogMsg, CLogger.MsgType.Information, SQLParams);                         }       &n

    C# database sql-server sysadmin help

  • asp:scriptmanager not available in the content page
    S sanjubaba

    hi,    kindly view the following masterpage code <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> <%@ Register Src="~/User_Controls/General/ctlHeader.ascx" TagName="ctlHeader" TagPrefix="uc1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server">       <title>Untitled Page</title> </head> <body>       <form id="form1" runat="server">       asp:ScriptManager</asp:ScriptManager>       <div>            <table cellpadding="0" cellspacing="0" width="100%" border="0">                <tr>                      <td>                            <table cellpadding="0" cellspacing="0" width="100%" border="0">                               <tr>                                     <td style="height: 102px" valign="top">                                           <uc1:ctlHeader ID="uctlHeader" runat="server"   />                                     </td>                               </tr>                                                      </table>                      </td>        &

    ASP.NET announcement

  • asp:scriptmanager not available in the content page
    S sanjubaba

    hi, developing an ajax enabled site. i am having a master page which has a asp:scriptmanager control. when i inherit the master page in my aspx page i am unable to get the asp:update panel control in the page aspx page.

    Sandeep Kumbhar

    ASP.NET announcement

  • problem while reading an appending file in asp.net 2005
    S sanjubaba

    no its a row by row insert. the file is getting appended continuously. i am reading it with a streamreader. i am continuing reading from the file with the help of a byte count.

    Sandeep Kumbhar

    ASP.NET csharp asp-net database sysadmin help

  • problem while reading an appending file in asp.net 2005
    S sanjubaba

    hi, i have a txt file which is getting updated with records on a server. I am reading the file using a streamreader and filestream, by mapping the drive of the server where the file is getting appended, using asp.net 2005. i am using the following code: StreamReader reader= new StreamReader(new FileStream(sfilepath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite, 8, FileOptions.Asynchronous)); reader is then passed to a bulkinsert method which inserts the records one by one in the database. Problem is, sometime duplicate entries gets inserted in the database, but actualy the txt file does not contain duplicate entries.

    Sandeep Kumbhar

    ASP.NET csharp asp-net database sysadmin help

  • restricting a user from accessing the same records from a table which an application is updating
    S sanjubaba

    Hi, I have an application where i am selecting some records and updating and giving it back to the database. Now while i am updating these records, if another user is accessing the same table and same records, i want to restrict him to these records. Eg.. If i have selected some records with sr no. 1,2,3,4,5 and currently in a process in updating these records in an application, then i dont want these records to be updated or used by some other user at the same time. Is it possible??

    Sandeep Kumbhar

    Database database 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