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

symeramon

@symeramon
About
Posts
22
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to fill several comboboxes with for loop?
    S symeramon

    Hi there all, Can you please tell me how to fill several comboboxes with for loop??? Need something like above... I have a string list with names of my comboboxes (combolar)... Thanks in advance...

    (AjaxControlToolkit.ComboBox)this.Page.FindControl(combolar.ElementAt(t)).Items.Add()

    ASP.NET tutorial question

  • Ajax async get function problem
    S symeramon

    Thanks for your responde jkirkerx it is quite useful...

    ASP.NET question help

  • Ajax async get function problem
    S symeramon

    So nobody knows why??? Would it be just because of the starting tag of asynx page?? :

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="VeriAl.aspx.cs" Inherits="Ads4WebClient.VeriAl" %>

    Cause it gives an error when I try to change CodeFile into CodeBehind??? And, I tried to open a new project to apply the code and see what happens, the asynx pages starting tag was like this:

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VeriAl.aspx.cs" Inherits="WebApplication2.VeriAl" %>

    ASP.NET question help

  • Ajax async get function problem
    S symeramon

    Please tell me what is the problem with this code???

    function VeriYaz(id) {
    $.ajax({
    type: 'GET',
    url: 'VeriAl.aspx',
    data: 'id=' + id,
    async: false,
    success: function (data) {
    var isim = data;
    this.form.elements["TextBox1"].value = isim.toString();
    }
    });
    }

    It doesnt even go to the given url... Yes it gets id succesfully but no data turning back... Thanks all...

    ASP.NET question help

  • MFC - how to get an edit box text from another dialog?? (Constructor)
    S symeramon

    By the way, you can just explain this :

    CFileDialog *pOpenDlg=new CFileDialog(FALSE,".txt",NULL,OFN_OVERWRITEPROMPT,"Text Files (*.txt)|*.txt|All Files(*.*)|*.*||");

    if you want some more charity from our heavenly father?? :)PLEASE! :(

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

  • MFC - how to get an edit box text from another dialog?? (Constructor)
    S symeramon

    Thanks for your reply David... I would like to criticise your post if I was more skilled... But seems :cool: to me for now... Maybe not, in the future?? :laugh: Just joking, thanks again...

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

  • MFC - how to get an edit box text from another dialog?? (Constructor)
    S symeramon

    I did it as Mahdu replied and by your hint... like

    void mainform::OnBnClickedButton2()
    {
    GetDlgItemText(IDC_EDIT1,newform.strtext);
    }

    BOOL newform::OnInitDialog()
    {
    SetDlgItemText(IDC_EDIT1, strtext);
    }

    THANKS TO YOU ALL FOR REPLIES PEOPLE!!! YOU ARE GREAT... :))

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

  • MFC - how to get an edit box text from another dialog?? (Constructor)
    S symeramon

    From class wizard, maindialog's member variables I added a member variable to the editbox which gets the editbox's value and then as you said, I equalize each variables but than it returns nothing from main dialog ??? :(

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

  • MFC - how to get an edit box text from another dialog?? (Constructor)
    S symeramon

    Hi there, I have an edit box control in a dialog and a button which opens another dialog... I need to learn how can I use main dialog's aditbox text in opened one's editbox (Data transfer)... Please I need urgent help... :(

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

  • Hi there all again! This time with an improvement! (and more clear question about C++ ADO) :)
    S symeramon

    Thanks for your reply David... Finally I got it, by SetItemData! :)

    C / C++ / MFC question c++ database help announcement

  • Hi there all again! This time with an improvement! (and more clear question about C++ ADO) :)
    S symeramon

    Thanks David, at least you answered my question... But the main problem is how can I get the id from vector to use it in the button click event?

    C / C++ / MFC question c++ database help announcement

  • Hi there all again! This time with an improvement! (and more clear question about C++ ADO) :)
    S symeramon

    RecordsetPtr rsUrun;
    rsUrun.CreateInstance(__uuidof(Recordset));
    try{

    _variant_t Holder;

    CString cQry=_T("");
    CString cTmp=_T("");
    _stUrun stTmp;
    vUrun.clear();

    cQry=_T("Select * From urun order by adi");
    //AfxMessageBox(cQry);
    rsUrun->Open(_variant_t(cQry),AdoTest.GetInterfacePtr(),adOpenDynamic,adLockOptimistic,adCmdText);
    CStringArray caTmp;
    int nPs=0;
    while(!rsUrun->adoEOF)
    {
    stTmp.cUrunAd=_T("");
    stTmp.dBirimf=0;
    stTmp.nDBID=0;

    Holder = rsUrun->GetCollect("urunid");//id
    if(Holder.vt!=VT\_NULL) stTmp.nDBID=atoi((char\*)\_bstr\_t(Holder));
    
    Holder = rsUrun->GetCollect("adi");//name
    if(Holder.vt!=VT\_NULL) stTmp.cUrunAd=(char\*)\_bstr\_t(Holder);
    
    Holder = rsUrun->GetCollect("birimf");//cost
    if(Holder.vt!=VT\_NULL) stTmp.dBirimf=atof((char\*)\_bstr\_t(Holder));
    
    vUrun.push\_back(stTmp);
    CString adi = rsUrun->GetCollect("adi");
    listbo1.AddString(\_T(adi));
    int gfujf = listbo1.GetItemData(listbo1.GetCount()-1);
    

    rsUrun->MoveNext();

    SO here is the code, could you please help me on how can I get the listbox item's id in order to use it in an update query?? Here is my button below, I did some work on it but seems no good :(

    void CTestADSSQLDlg::OnBnClickedButton1()
    {
    _RecordsetPtr rsUrun;
    rsUrun.CreateInstance(__uuidof(Recordset));
    CString cQry=_T("Update urun set adi='%s' where urunid='%d'", editbo1;

    rsUrun->Open(_variant_t(cQry),AdoTest.GetInterfacePtr(),adOpenDynamic,adLockOptimistic,adCmdText);
    }

    C / C++ / MFC question c++ database help announcement

  • Need vital help about MFC - ADO.Net (SQL connection)
    S symeramon

    Thank you very much David...

    C / C++ / MFC csharp c++ database tutorial help

  • Need vital help about MFC - ADO.Net (SQL connection)
    S symeramon

    Thank you so much for your nice wishes and kindness... Best wishes to you too... :)

    C / C++ / MFC csharp c++ database tutorial help

  • Need vital help about MFC - ADO.Net (SQL connection)
    S symeramon

    You are just great... Thanks! :)

    C / C++ / MFC csharp c++ database tutorial help

  • Need vital help about MFC - ADO.Net (SQL connection)
    S symeramon

    Thanks, you are so kind...

    C / C++ / MFC csharp c++ database tutorial help

  • Need vital help about MFC - ADO.Net (SQL connection)
    S symeramon

    Get a job that matches your skills. Or learn new skills.

    By the way, GOOD MORNING!!! That is what I am trying to...

    C / C++ / MFC csharp c++ database tutorial help

  • Need vital help about MFC - ADO.Net (SQL connection)
    S symeramon

    My boss knows everything and I have a little knowledge about C++ , also I have 6 applications in business that I've created... Plus, in the job interview I said to my boss that I have no knowledge about mfc but he said ok cause he is not like "some" others (He believed me)... PLEASE STOP CALLING ME LIAR!!! I just wanted a little help!!! WHAT KIND OF PEOPLE YOU ARE???!!!!!!!!!!! You are liars while you resist to remember your past (I mean your first years in business???) You born with laptops???!!

    C / C++ / MFC csharp c++ database tutorial help

  • Need vital help about MFC - ADO.Net (SQL connection)
    S symeramon

    So, this is you ha? Thats it??? :D:D:D

    C / C++ / MFC csharp c++ database tutorial help

  • Need vital help about MFC - ADO.Net (SQL connection)
    S symeramon

    Thanks a lot, you are great! but I am sure you'll have better! :)

    C / C++ / MFC csharp c++ database tutorial 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