User Profile

Collapse

Profile Sidebar

Collapse
RomeoX
RomeoX
Last Activity: Mar 9 '12, 04:31 PM
Joined: Jan 14 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • RomeoX
    started a topic What's wrong in my select statement

    What's wrong in my select statement

    Hi everybody,

    Could anyone help me in the select statement. I created small form to search in the database, it gaves me an error Missing Expression. The combox has the attributes of the table because I want restrict the search to only on specfic columns.

    Code:
    commandString = "Select * from tableadd where " + this.comboBox1.SelectedText + "like '%" + textBox1.Text + "%'" + "AND" + this.comboBox2.SelectedText
    ...
    See more | Go to post

  • RomeoX
    started a topic How to mulitply two columns in C#

    How to mulitply two columns in C#

    Hi everybody,

    I've received an exception handling in this code, I'm planning to multiply two columns in "List View" and I want the result to be shown in the fourth column [Index 3], It tried to debug the code and it gave me the problem in this line, Could anyone help me in multiply two columns and the result will be in the fourth column,

    lvi2.SubItems[3].Text = Convert.ToStrin g(coun);


    ...
    See more | Go to post

  • RomeoX
    replied to handle exception error in listview
    First of all, thank you very much for replying to my topic. Actually I changed the code to use the button instead of barcode, it mentioned the error in line 74 which is FOR loop line seems doesn't catch the any thing from the database,

    for (int i = 0; i < dtable.Rows.Cou nt; i++)

    Code:
    private void button1_Click(object sender, EventArgs e)
            {
                try
                {
    ...
    See more | Go to post

    Leave a comment:


  • RomeoX
    started a topic handle exception error in listview

    handle exception error in listview

    Hi everybody,

    Actually I'm trying to do small form that has a textbox for BARCODE which when I scan an item it will add on my listview but I recieved this error that I don't know what went wrong in my code

    "System.NullRef erenceException : Object reference not set to an instance of an object."


    Code:
    private void text1_down(object sender, KeyEventArgs e)
            {
                if
    ...
    See more | Go to post

  • RomeoX
    started a topic Connect to Oracle DB through LAN using C#

    Connect to Oracle DB through LAN using C#

    hi everybody,

    Could anyone tell me how can I access oracle DB which is in another PC. I have two PCs, one PC has the C# software that I created and I have another PC that has Oracle DB. Both PCs are connected through a LAN network cable. Could anyone help me how my software can see the DB. I tried but it can't see anything. Thanks in advanced.
    See more | Go to post

  • RomeoX
    started a topic Navigation between records using Oralce DB

    Navigation between records using Oralce DB

    Hi everybody,

    Actually I'm trying to learn C# by myself, and I was thinking to create a small program, I was thinking to build 4 buttons, First, Next, Previous, Last. I'm using Oracle express database.

    I tried my best before posting here, and this is my code for next and last:

    Last_Record
    Code:
    private void last_record_Click(object sender, EventArgs e)
            {
    int i=;
    DataSet ds;
    ...
    See more | Go to post

  • RomeoX
    started a topic how to fill checkbox from database

    how to fill checkbox from database

    Dear there,

    Actually I would like to populate or fill my checkbox from data from database. How can I do it? The data in DB table attribute is "Status" so either 1 or 0 if it's 1 Select the checkbox. I have Window Form.

    Here is my code:
    Code:
    private void bringdata()
            {
                // select a data
                SQL = "SELECT * FROM trafic";
                //
    ...
    See more | Go to post

  • Thanks for replying to me. Actually my webhost telling that they totally support SMTP for free, but they told me to Request a ticket if I need them to fix my code but they charge tooooooo much. They told me it's code problem, so what should I do now. Please I'm waiting anyone to help. Thanks
    See more | Go to post

    Leave a comment:


  • RomeoX
    started a topic I have problem in sending message in contact us form
    in PHP

    I have problem in sending message in contact us form

    Hi there,

    I have created a free website at Xtreemhost site. They are saying that they support Send email in the free hosting. Anyway I tried to set a page "Contact Us" and I want the visitor when he send me a message so it will be sent to my Gmail with his name as well. I tried a lot of code when I did search in Google but nothing is working, I don't know where is the problem. The code seems okay and it says that "meesage...
    See more | Go to post

  • I'm submitting a pictuer for my VS & SQL Server Developer

    [imgnothumb]http://bytes.com/attachments/attachment/4107d1287780707/aspsql.jpg[/imgnothumb]...
    See more | Go to post
    Last edited by Frinavale; Oct 25 '10, 06:49 PM.

    Leave a comment:


  • how can I connect to sql server developer instead of sql express

    hi everybody

    I have a ASP project that I have done before and it was working fine with SQL Serve Express 2005. After formatting my PC, I installed first VS 2008 Pro and then SQL Server Developer 2008 and I'm testing on my laptop but I can't connect to database. After reading a couple of articles I knew that I can't use mdf file because I'm using SQL Developer so it needs another procedure to follow such as changing the parameters in...
    See more | Go to post

  • RomeoX
    started a topic is it possible to open mdf file in sql 2008

    is it possible to open mdf file in sql 2008

    hi everyone here, hope u r doing well


    My question that I want to make a page in ASP.Net based on database and I'm a newbie, recently I have got a complete project that one of my friend gave it to me, made in ASP.Net plus SQL Server. I want to add pages and some code in that and I want to start it in my local server in Win 7 ultimate for a test. I saw the mdf DB file in APP_DATA folder and I want to open for editing and add...
    See more | Go to post

  • RomeoX
    replied to Uploading files into a MySQL database using PHP
    in PHP
    Hi Atli, You are totally right. Now it's working fine. I changed the things that u told me about. Thanks a million.
    See more | Go to post

    Leave a comment:


  • RomeoX
    replied to Uploading files into a MySQL database using PHP
    in PHP
    hi there.

    Could you please Atli fix my code. I tried to change your code from mysqli to mysql but I couldn't edited. there is a problem syntax error.

    Here is the code for download page
    Code:
    <?php 
    // Connect to the database 
    $dbLink = mysql_connect("localhost", "root", "") or die (mysql_error()); 
    mysql_select_db("library", $dbLink) or
    ...
    See more | Go to post

    Leave a comment:


  • RomeoX
    replied to how to secure the pages of php by using session
    in PHP
    Thanks a lot to everyone provide me a suggestions. Actually I use IE8.


    Actually I don't know how I can make an auto login code so it will make comparative to cookies, if you have something hopefully you post it here.

    Anyway, Thanks to you
    See more | Go to post

    Leave a comment:


  • RomeoX
    replied to how to secure the pages of php by using session
    in PHP
    I want when I check the "Remeber Me" I still able when I close the browser I can still to access any page, not returning me again to the first page of login screen. I hope it's clear. Thanks for your reply I appreciate your passing to my thread.
    See more | Go to post

    Leave a comment:


  • RomeoX
    started a topic how to secure the pages of php by using session
    in PHP

    how to secure the pages of php by using session

    Hi there,

    I have a question related to Session. I made a login screen and all pages except than the login page should be secure, so no one can access to any page unless access from the main login page, so I did this coding but even if someone checked the option of "Remember Me" and if he/she closed the browser and come back again he can enter access any pages because the Cookies is still available because I made it here for...
    See more | Go to post

  • RomeoX
    replied to passing a variable from page to another page
    in PHP
    Thanks a lot guys for this posts, I really appreciate your comments and your answer. It's working now fine.


    I have a question related to Session. I made a login screen and all pages except than the login page should be secure so no one can access to any page unless access from the main login page so I did this coding but even if someone did a log off I still can access any page unless I remove the cookies from the folder. In...
    See more | Go to post

    Leave a comment:


  • RomeoX
    replied to passing a variable from page to another page
    in PHP
    Thanks for reply I'm really thankful to u

    by the way, actually the first code that I submitted in the first topic that will be in the login screen and I can't pass the login and password in the tool bar of the browser so I'm using POST instead of get because it's much secure. I tried your code but I used POST but couldn't get the username.

    So what should I do?
    See more | Go to post

    Leave a comment:


  • RomeoX
    replied to passing a variable from page to another page
    in PHP
    Actually the I wrote the code and I knew that it's wrong because I picked up just for example of how to pass session variable to another page and I was asking about this. Anyway thanks a lot of passing my thread.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...