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

Sujay chakraborty

@Sujay chakraborty
About
Posts
28
Topics
11
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • wher should be a modeless dialog box be created
    S Sujay chakraborty

    Hello Tim, Thanks for the answer, but the question here is about the creation of Modeless dialog box. What i have understand from my reading is that, for modeless dialog box we need to create its object so that its scope is maintained throughout the application, in case u need it that way....... So to achieve that whether it be good to create that object in Heap, Stack, Global, or locally static.??? One more thing, is it true that the scope of a variable declared 'Locally Static' is same as that declared 'Globally'??? Regards Sujay

    C / C++ / MFC data-structures question

  • Default data in data tab of combo box not working
    S Sujay chakraborty

    Hello David, Thanks for your valuable suggestions. Actually i have figure out a weird notion in VC++ 6.0, this default data items (from data tab of properties window of the combo-box control) works superbly well with Win32 wizard application but its not working with Win32 blank application, i am trying to figure it why ?????? but couldn't succeed till now....... If you kindly help me to sought out this issue, and please correct me if i am wrong in any sense. Your help will be greatly appreciated. Regards Sujay

    C / C++ / MFC c++ help

  • wher should be a modeless dialog box be created
    S Sujay chakraborty

    actually which answer will be more precise....i mean if u compulsory need to choose one out of four. frankly i am confused between static local and stack....... got to be one of these two........

    C / C++ / MFC data-structures question

  • Default data in data tab of combo box not working
    S Sujay chakraborty

    hello David, Actually i have tried a few steps for this..... -- I have clicked on the down arrow key in combo box to check for data -- I have tried to set default selection using CComboBox::SetCurSel() method but i have found a strange pattern in this the moment i run a combo box within Win32 Wizard Application rather than empty project of win32 app (which i have done earlier) i found the combo box to be running absolutely perfect. :omg: I found it weired but couldn't figure out the reason for this to happen.!!!:~

    C / C++ / MFC c++ help

  • wher should be a modeless dialog box be created
    S Sujay chakraborty

    Hello all, I came across a question regarding modeless dialog box and i am confused regarding the answer. The question goes like this A Modeless dialog box must not be created over 1) Heap 2) Stack 3) Globally 4) Locally Static which is the appropriate option to choose. Will locally static have the same scope as that of globally declared objects. As its clear that for a modeless dialog box the object must be accessible throughout the program Regards Sujay

    C / C++ / MFC data-structures question

  • Default data in data tab of combo box not working
    S Sujay chakraborty

    Hello all, i m working on a MFC application using Visual C++ 6.0. I am stuck with a problem where i have put certain values in the combo box which is in a dialog window...... now the problem that arises is that when i run that application i find no data present in the combo box, i have search for the problem but every where it is mentioned in the same manner ( i.e. just enter the values in data tab using Ctrl+Enter for next element) to display the data but i am confused why my application is not working that way.......as i don't want to load data using AddString() method. Please help me out with this !!! any help will be highly appreciated !! regards Sujay

    C / C++ / MFC c++ help

  • change message handler prototype's name
    S Sujay chakraborty

    hello everyone, This is a kind of strange question but it just got stuck to me this morning while writing my MFC application. Every time we define a message macro in MESSAGE MAP, we use default prototype for handling that message, i.e. for handling WM_CHAR() message we have OnChar() handler, what i want to know is whether there's a way change this default handler and provide our own message handler, with our defined name.......... I know we can work around this by calling our defined function in the default message handler but what i want is i don't want to mention the default handler in my application code. your help is highly awaited........ thanks in advance Regards

    C / C++ / MFC help c++ question

  • creating services in C#.NET
    S Sujay chakraborty

    Hello all, I am trying to develop an application which will record user login information in a database at the time any user logs into the system that is connected in a network (basically a LAN network, the information will be stored at the server).... his details like user name and login time will be fetched from registry details i suppose..... but i am not able to figure out a way of getting those events and locations in the registry using C#.net....... i believe i need to create a service application for this(as there won't be any interaction with the end-user) but i am quite new to these kinds of technologies........ For the past couple of days i have been searching on net for some articles related to design services and fetching such values in .net. but haven't got any simple documentation !!!! Please help me with this in understanding the concept step by step as this is quite an urgency for me....... your help is heighly awaited Thanks Sujay

    C# csharp sysadmin database design windows-admin

  • Connecting to SQL 2000 Server from the Internet using public IP Address
    S Sujay chakraborty

    Hello Niladri, Thanks for the quick response. Well actually i am new in developing and not having that much sense. I was wondering if you could please provide me with some detailed step by step configuration of sql server. As far as ports are concerned i think we can put it in between 1433-1444 and i have given it 1438. but still i am stuck with two errors: A dialog box (Not from VS 2005 that's for sure) appears with the following error - Invalid Parameter and then asking to enable JIT in my machine.config file to debug the issue Similarly another dialog box occurs this time with the error msg as Object reference not set to the instance of object. and i am sure this is also not comming from vs 2005 because i have put my code in try.... catch and have a different messagebox to display the exception.

    ....
    Using System.Data.SqlClient;
    ....
    ....
    SqlConnection oSQLConn = new SqlConnection();
    .....
    oSQLConn.ConnectionString = "Network Library=DBMSSOCN; Data Source=xxx.xxx.xxx.xxx,1438;Initial Catalog=databaseName;User ID=myUsername;Password=myPassword"

    Please guide me further in the issue Regards Sujay

    Database sysadmin help database sql-server debugging

  • Connecting to SQL 2000 Server from the Internet using public IP Address
    S Sujay chakraborty

    Hello Thayhor, I am also having the same issue. I am trying to build a Window application where i want to connect to a remote sql server 2000 database. Fortunately i have figured out some settings in "Surface Area Manager" of 2005, but no help regarding remote connection in sql server 2000. Please let me know in case you have figured out the solution. Any help is highly awaited. Regards Sujay

    Database sysadmin help database sql-server debugging

  • Submit details with enter key
    S Sujay chakraborty

    hey benams, So according to ur present senario, i guess one of the following 2 will help 1. In case the control use server side event u wanna fire is an html control with runat="server" tag, in that case u need to use javascript in the following manner

    <script language=javascript type=text/javascript>
    function checkKey()
    {
    var key;
    key = window.event.keyCode;
    if(key==13)
    {
    var btn = document.getElementById("Control_ID");
    if(btn!=null)
    {
    btn.focus();
    btn.ServerClick();
    }
    }
    }
    </script>

    1. In case the control is an asp control starting with **asp:** then in that case the earlier way i suggested is appropriate, further follow this link to clear ur doubts Hope this helps, and if not feel free to query again Till then happy coding ;)
    ASP.NET question

  • Manipulating XML file using GridView and XmlDataSource
    S Sujay chakraborty

    Thanks for replying. Actually i have used an XmlDataSource and set its DataFile property to the xml file and set the DataGird's DataSourceID property to the XmlDataSource. I have given the XPath rules to the grid view colomns to display the data. Well m sure i have done some mistake but where i have done it i couldn't figure it out. Please help Regards

    ASP.NET css xml help announcement

  • How To Log when user clicks on the cross button through Ajax
    S Sujay chakraborty

    hey shimona 2, The issue can be dealed with javascript, Please go through the following html code that captures the close button click event

    <html>
    <head>
    <script language="javascript" type="text/javascript">
    window.onbeforeunload = myunload;
    function myunload()
    {
    alert('Window is closing!!');
    }
    </script>
    </head>
    <body>
    </body>
    </html>

    Hope this helps Regards

    ASP.NET database csharp asp-net tools help

  • Submit details with enter key
    S Sujay chakraborty

    hi benams, What i have understood, the solution is "javascript" check for e.keycode (or e.which) and compare it with 13 the ascii value for enter key then u can call method __doPostBack("control_name","event_to_call")this will cause the postback to the spcified event in the code behind file. Check out if this helps regards

    ASP.NET question

  • Manipulating XML file using GridView and XmlDataSource
    S Sujay chakraborty

    Hello everyone, I am designing one simple application where i want to insert, update and delete a XML file using DataGrid and XmlDataSource. I am done with adding and deleting code, but one thing i am stuck with is i cannot view the updated or deleted data back to the grid view after the page gets post back when we click the add or delete button although i have check the xml file and the data gets added and deleted respectively. I have tried with DataGrid1.DataBind() method but its not working. To add and delete data programatically i have to implement e.Cancel = true; in the DataGrid1_RowDeleting event(without this it won't work). please tell me a way to dynamically reflect the updated data back to the grid view Waiting for a quick response. Thanks in advance Regards

    ASP.NET css xml help announcement

  • help in ItemCreated method plus javascript
    S Sujay chakraborty

    Thank you Ramesh, Actually the problem is that the hidden field value that i am trying to pass to the javascript is always showing null, but the hidden field is having the value when viewed from the source of the page from browser. I wonder if the ItemDataBound event will allow me to add the javascript to the imgage tag. Regards Sujay

    ASP.NET csharp javascript asp-net database help

  • help in ItemCreated method plus javascript
    S Sujay chakraborty

    hello all, well please help in solving this issue......... plzzzzz. its really urgent..... Waiting for a reply Regards Sujay

    ASP.NET csharp javascript asp-net database help

  • help in ItemCreated method plus javascript
    S Sujay chakraborty

    Hi all, I am working on a ASP.NET project where i am displaying several images and their details, both coming from a database table. What i want is i am calling a javascript when some one moves the mouse cursor over the image, for that i have designed the javascript but the javascript depends on the id (stored as a coloumn in the same table) of the row containing the image on which the cursor is positioned. I have taken the id field in an hidden field and tried the following code

    protected void DataList1_ItemCreated(object sender, DataListItemEventArgs e)
    {
    ListItemType elemType = e.Item.ItemType;
    if ((elemType == ListItemType.Item) || (elemType == ListItemType.AlternatingItem))
    {
    CheckBox cBox = (CheckBox)e.Item.FindControl("chkSel");
    Image pimg = (Image)e.Item.FindControl("Image2");
    HiddenField hf_Pid = (HiddenField)e.Item.FindControl("hfPid");
    pimg.Attributes.Add("onmouseover", "showButton('"+hf_Pid.Value+"');");
    cBox.CheckedChanged += new EventHandler(OnChangeHandler);
    }
    }

    The idea is to find the value in the hidden field that is coming from the database and then pass it to the showButton() function in the javascript. But this doesn't seemed to work. Please help me in accomplishing this task. Your help will be highly appreciated. Thanks in advance Regards Sujay

    ASP.NET csharp javascript asp-net database help

  • How to get the values into the textbox using datareader in asp.net
    S Sujay chakraborty

    There could be few issues that u need to resolve for this code. Firstly if you are having multiple rows in your database and you are trying to fetch those values in a single text box using DataReader then only the last record would be visible to you as the TextBox will be set to the last value only..... Secondly for using DataReader and SqlCommand you need an open connection so you need to specify an sqlconnection object and put it like

    SqlConnection con = new SqlConnection();
    con.Open();
    sqlcommand com=new sqlcommand(query,con);
    DataReader dr=com.ExecuteReader();
    while(rdr.read())
    {
    textbox.text=rdr["fieldname"].getstring();
    }
    con.Close();

    As DataReader is readonly and forward only so only the last value is available to the TextBox control. To avoid that and to retrieve all the values try some listbox or combobox. Best of luck!!! Try hard but don't get stubborn

    ASP.NET database csharp asp-net com help

  • Send SMS to single number
    S Sujay chakraborty

    Hello, Thank you for providing such valuable information on this site. Well i am a student and i am creating one web application where i want to demonstrate a very simple mobile SMS transmission from my ASP.NET application to a single mobile no (Only one mobile Number!). I would like to know if there is any work around to accomplish that without using web services or internet connection (i mean if we could just connect the mobile to the pc using data cable and just can send any Message to that, or by using other tools like PC Suit or something like that using .net platform). I would really appreciate a help from ur end as soon as possible as i need to submit the application in my college. Thanks in advance

    ASP.NET csharp asp-net wcf tools help
  • Login

  • Don't have an account? Register

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