User Profile

Collapse

Profile Sidebar

Collapse
Maraj
Maraj
Last Activity: Mar 2 '23, 09:32 AM
Joined: Nov 5 '11
Location: Pakistan
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • you can write a query like this
    I am supposing you are running this on Server A.
    Code:
    begin tran
    update Table 
    set column=somevalue
    where value=(select value from serverB.DataBasename.dbo.table where value=somevalue)
    This will update value from Server B to Server A
    See more | Go to post
    Last edited by Rabbit; Jun 21 '13, 05:45 PM. Reason: Please use code tags when posting code.

    Leave a comment:


  • Maraj
    started a topic Web Service not being called

    Web Service not being called

    Hello eveyone.
    I have a problem calling webservice.I have made a webservice and added it in IIS as an application in a website.And i have to call it in same project hosted in production and problem is when i call it,it does not work.When i call it from my local PC it works.i.e My domain in which i have added webservice as an application is like Mydomain.com/MyService/service.asmx When i run it from my local PC it is being called but when...
    See more | Go to post

  • Maraj
    replied to Email Tracking Using ASP.NET not working
    Well i solved this too.Actually i was using IIS 7 and configuration for IIS is bit different.I was using <httpmodule>
    tags in web.config but IIS was not reading it.IIS 7 reads <module> tags so i added it and it worked.
    See more | Go to post

    Leave a comment:


  • Maraj
    started a topic Email Tracking Using ASP.NET not working

    Email Tracking Using ASP.NET not working

    I have a problem tracking emails.I want to know who read my email.When i send mail to my outlook it works fine but when i want to send it across the network it does not work.ie. When i debug my code and give path of localhost it works but when i give path of my PC on the network it does not work i have hosted the website on IIS locally.Here is my PC name and port where i have configured it PC-50:102
    Here is code.
    Http Module
    ...
    See more | Go to post

  • Maraj
    replied to Email Tracking using asp.net
    I got it.I was making some little mistakes.Actual ly i was saving the email body in database so i had to use '' instead of ' and that was making all the trouble.When is removed '' it worked fine.
    See more | Go to post

    Leave a comment:


  • Maraj
    started a topic Email Tracking using asp.net

    Email Tracking using asp.net

    I want to track users who have read my mails.I am doing this but it's not working I am sending mails to myself in outlook. Here is my code which sends mails
    Code:
            try
            {
     
                string emailTemplateBody = "Hy this is test mail";
                           emailTemplateBody += "<tr><img src=''http://localhost:52583/HttpModule_using_beacon_images/images/<keyvalue>.aspx''
    ...
    See more | Go to post
    Last edited by jhardman; Jun 11 '12, 12:10 PM. Reason: Accidentally posted in the classic asp forum. Moved to asp.net

  • Maraj
    started a topic ScriptManager.RegisterStartupScript

    ScriptManager.RegisterStartupScript

    Hello everyone!I am having a problem with scriptmanager.
    I have used iframe in one website and that is user login.When user logins on the site user should be redirected to the other site.My problem is that the url does not cahnge to the new site.
    Code:
    ScriptManager.RegisterStartupScript(this, this.GetType(), "redirect", "top.location.href = 'membersarea/welcomej.aspx'", true);
    Please help me.
    See more | Go to post
    Last edited by Frinavale; Apr 9 '12, 03:22 PM.

  • Try this
    Code:
     if (listView1.SelectedItems.Count != 0)
     3.             {
     4.                 foreach (ListViewItem lvi in listView1.SelectedItems)
                      {
       students.RemoveAt(listView1.Items.IndexOf(lvi));
                          lvi.Remove();
                      }
                  }
    See more | Go to post

    Leave a comment:


  • Maraj
    started a topic MultiThreaded Chat Server

    MultiThreaded Chat Server

    Hy all!I am trying to make a multithreaded GUI based chat server.I connect client successfully but when i want to show a separate window for that client for cahtting that is not displayed.I have made a thread in which i create the chat window/form.What could be the problem?
    See more | Go to post

  • Here is the program which Outputs First and second largest number
    Code:
    // max.cpp : Defines the entry point for the console application.
    //Finds second maximum number in the array.
    
    #include "stdafx.h"
    #include<iostream>
    using namespace std;
    void max(int [],int *,int *);			//Define a function max which gives maximun ans second maxium number.
    						//Pass two int variables by-refernce
    ...
    See more | Go to post

    Leave a comment:


  • Maraj
    replied to Sql server 2005 and C#
    You can't do this because project is meant for storing data in database so where records will be saved?You have to install SQl Server on the System.
    See more | Go to post

    Leave a comment:


  • Pass an object to changecolor() of form1 then make changes to changecolor() like this in form1.
    Code:
      public void changecolor(Form2 frm2) 
            { 
      
                frm2.BackColor = Color.Red; 
                frm2.Refresh(); 
            }
    See more | Go to post

    Leave a comment:


  • Maraj
    replied to returns values
    in Java
    You should do like this and methods will be called one after other because you have written them in sequence.
    Code:
    String name=Dylan.Name(Dylan.name);
    Now what Name() will return will be stored in name.
    Now do same like this for remaining methods.
    See more | Go to post

    Leave a comment:


  • Hy shammishetty.Th ere are two things you can do.
    1.You can create an instance of class and then call methods or
    2.You can define Twotextbox() and test1() as static methods.
    See more | Go to post

    Leave a comment:


  • You need to get the size of excel file and set maximum property of progressbar to that size.
    See more | Go to post

    Leave a comment:


  • Maraj
    replied to charArray and string comparison
    in C
    I think you are using assingment operator = instead of eqaulity operator ==
    Code:
    choice = GetLine(); 
      
    //Here's the tricky part I can't figure out; 
    if(choice == "exit"){ 
      do this;
    See more | Go to post

    Leave a comment:


  • Maraj
    replied to server msg :207 errror
    Please give some code so we can know exact problem.
    See more | Go to post

    Leave a comment:


  • Maraj
    replied to SP to add next sequential user ID
    Hy jimatqsi!Why are you making it so complex if you want to return user id you only need a select statement after you have inserted new row.
    See more | Go to post

    Leave a comment:


  • Try this may it work for you
    Code:
    insert into new database.dbo.table_name select * from old database.dbo.table_name where
     old database.dbo.table.Primary Key not in 
    (select  new database.dbo.table.Primary Key from  new database.dbo.table)
    See more | Go to post

    Leave a comment:


  • Muralikrishna!I think you are inserting records in table which have 6 columns but when you are assigning values to variable param you have passed 7 values and in the table first argument is string and in param[0] you have assigned an int value.You have created
    param[6] and you are passing 7 values.
    See this if it works.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...