M.Waqas Aslam 67 Posting Pro in Training Featured Poster

Dear All ,

Hope everyone is fine. I have little question. We use this query normally in MSSQL
select * from emp where empid in (1,2,3,4)
How to write this query in lambda expression. Is there any way to perfrom above mentioned operation ?

Best Regards

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

Dear All,

I am working on IM app . I want to add call featuer in my app. I googled alot and downloaded 10's of projects but unable to execute them due to missing files. I am looking for running project of Doubango or PJSIP so that I can use them.
One more thing, If you have any idea about anyother SIP Call library please do mention.
I also want to know that windows 8.1 app are able to run on windows 10 ? as someone told me that they changes templates and many other things in new OS.

Best Regards

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

Hi , If you want to do it manually then follow following steps.

1- make a zip folder of wp-content folder.
2- now generate the database script.
3- open the generated script in any good text editor. replace localhost:port with your new web url in complete doc.
4- upload folder in installed wp directory and replace wp-content
5- now open the database panel and run the script .
6- open the wp-config file and change the username , password , and server address.

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

Dear All,

I am not clear that where to ask this question so i am starting this thread here. In my country youtube is banned by the Govt. I want to create the website same as playit.pk. I dont know how this site is working are they using any proxy script or youtube api to show and play youtube videos.

Regards

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

Hello!

I am working on updation of an old asp classic website. I have experience in Asp.net but dont know much about asp classic. I want to show my query results in xml format. I am getting data in my record set but unable to convert it into xml and also dont know how to show xml on the page.
I need help in this.

Regards.

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

I used iframe to show the xml. and it is working fine.

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

Dear All!

I am facing a small issue in showing xml in a proper format. I am getting proper xml data from my webservice. but after receiving it browser is treating it as a text and showing all test in single line. I want to show my xml data same as we open xml file in browser. How can i do this.

Here is my code

 $("#getXml").click(function () {
               var xmlhttp;
               xmlhttp = new XMLHttpRequest();
               xmlhttp.onreadystatechange = function () {
                   if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {

                       $("#divResult").html(xmlhttp.response);

                   }
               }
               //        alert("email.aspx?all=""&id="3"&item=""&type="");
               xmlhttp.open("GET", "e.aspx?all=&id='3'&item=&type=", true);
               xmlhttp.send();
           });

Regards

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

you can do something like this

Page.ClientScript.RegisterStartupScript(this.GetType(),"CallMyFunction","MyFunction()",true);
M.Waqas Aslam 67 Posting Pro in Training Featured Poster

yes you can work on this idea. But I think you need something new in your inventory solution as there are lots of free online solutions are available.

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

you can use repeater control of asp.net for this purpose. just assign datasource to it.

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

Dear all!

I am creating a proxy website, which will open a restricted site. Proxy is working very fine and I am happy with it.Now there is a site which only allow in my clients country. Site need username and password to allow user to view contents, Now I want that when user open that proxy site and click on button to view the above mentioned site, It will auto login with provided username and password.

regards

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

yes you can use ajax for this purpose. as minitauros said.

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

what type of elements you want to display ? you can use javascript and jquery for this purpose. Please be more specific about your issue.

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

If simply you want to import data in mssql server then you can use mssql server data import feature.

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

I think you are changing just html of the grid and not performing backend operation. If possible please post your code here.

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

use the shortcut key for the menu item and use normal form.show() code in menu button.

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

Thanks for your reply. I had done with my work. here is the link of my testing siteClick Here username = admin and password: admin. I took this code from net just add and remove few features as i required.
Files are also attached with this post so others may also get help from it.

Regards

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

hi ! here is the sample ajax code

 $.ajax({
            type: "POST",
            url: "commonWebservice.asmx/getLocations",
            data: "{'TariffCardId':'" + tariffCardId + "'}",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function (mdata) {
                strItems = mdata.d.split(',');
                $('#txtLocation').autocomplete({
                    source: strItems
                });
            },
            error: function (msg) {
                alert(msg.status + ' ' + msg.statusText);
            }
        });
M.Waqas Aslam 67 Posting Pro in Training Featured Poster

Hello All!

I want to create my own proxy site. I googled alot and I find not a single solution in .net to do this. Everyone is using php for it. I am very new to php so i dont know how to use it. here is the code i found on net.

<?php
$url = 'http://www.cnn.com';
$proxy_port = 80;
$proxy = '92.105.140.115';
$timeout = 0;
$referer = 'http://www.mydomain.com'


$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0);
curl_setopt($ch, CURLOPT_PROXYPORT, $proxy_port);
curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt($ch, CURLOPT_PROXYTYPE, 'HTTP');
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 0);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);*/
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);       
curl_setopt($ch, CURLOPT_REFERER, $referer);

$data = curl_exec($ch);
curl_close($ch);
echo $data; 
?>

My question is, Do I need to have proxy server for proxy site ? or I can just give my server address in $proxy ?

Regards

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

it is database application ? if yes then store data in encrypted format and on load of you master form check the date. You can also write date value in windows registry. here is the link Click Here . you can also save the date value in .ini file after encryption.

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

I simply take this example from w3school and made some changes hope this will help you

<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
</script>
<script>
$(document).ready(function(){
  $("#Button1").click(function(){
      $("#div1").fadeOut();
        $("#div2").fadeIn();
    });
    $("#Button2").click(function () {
        $("#div2").fadeOut();
        $("#div3").fadeIn();
    });
    $("#Button3").click(function () {
        $("#div3").fadeOut();
    });
});
</script>
</head>

<body>
<div id="div1" style="height:80px;background-color:red;"><input id="Button1" type="button" value="button" /></div><br>
<div id="div2" style="height:80px;display:none;background-color:green;">  <input id="Button2" type="button" value="button" /></div><br>
<div id="div3" style="height:80px;display:none;background-color:blue;">  <input id="Button3" type="button" value="button" /></div>

</body>
</html>
mattyd commented: Thank you +7
M.Waqas Aslam 67 Posting Pro in Training Featured Poster

you can use simple ajax request in your email's html body. get that request and set some counter. I dont know this method is good or not but I think this will work.

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

Please rephrase your question.statement is ambiguous.

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

try to do something like this

'assume we have 8 textboxes with following name txt1,txt2,txt3,txt4,txt5,txt6,txt7,txt8
'now use this code

Random random = new Random();

for(int i = 0;i<=3;i++)
{
    int randomNumber = random.Next(1, 8);
    if(randomNumber == 1)
        txt1.Enable= false;

    if(randomNumber == 1)
        txt1.Enable= false;

    if(randomNumber == 1)
        txt1.Enable= false;
        .
        .
        .
        'you can also use switch statement for this.
}

This is not the ideal solution. If you find any shortest way please do share here.

regards

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

I know there are many proxy sites are there but I want to create my own site just for learning purpose. and yes I dont know how to technically do it.

BTW thanks for the reply. :)

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

hello all !

I want to create a proxy site to allow users to surf anonymously. I am unable to understand the logic of it. Need some tips and basic information about it.

Regards

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

just inspect element of given link. and download all js files and related code. then use it .

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

use another div outside popup div to completly cover the background and set its background dark.

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

You have to create a complete module of user management for your site.

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

i think you can add value of label in query string . and on page load event just check if it is post back then get the value from query string and set to label :P .

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

simple , try this

$('a').click(function(){
    var id = jQuery(this).attr("id");
    //now you have id of clicked tag.

    alert($('#' + id).length());

});
M.Waqas Aslam 67 Posting Pro in Training Featured Poster

Please share the solution, for other's help .

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

This is my webservice code. May be this will help you brother :)

Imports System
Imports System.Web
Imports System.Collections
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Data
Imports System.Data.SqlClient
Imports System.Web.Script.Serialization
Imports System.Web.Script.Services
Imports System.ComponentModel
Imports System.Collections.Generic

<System.Web.Script.Services.ScriptService()> _
<System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _
<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ToolboxItem(False)> _
Public Class commonWebservice
    Inherits System.Web.Services.WebService

    <WebMethod()> _
<ScriptMethod(UseHttpGet:=False, ResponseFormat:=ResponseFormat.Json)> _
    Public Function getLocations(ByVal TariffCardId As String) As String
        Dim CN As SqlConnection = New SqlConnection(ConfigurationManager.ConnectionStrings("xxxx").ConnectionString)
        CN.Open()
        Dim strQuery As String
            strQuery = "Select Location From tbl_Locations"

        Dim cmd As SqlCommand = New SqlCommand(strQuery, CN)
        Dim ds As DataSet = New DataSet()
        Dim da As SqlDataAdapter = New SqlDataAdapter(cmd)

        da.Fill(ds)
        CN.Close()

        Dim MArray()() As String = New String(ds.Tables(0).Rows.Count)() {}
        Dim i As Integer = 0
        Dim str As String
        For Each rs As DataRow In ds.Tables(0).Rows
            ' MArray(i) = New String() {rs("Location").ToString()}
            'i = i + 1
            If str = "" Then
                str = rs("Location").ToString()
            Else
                str = str & "," & rs("Location").ToString()
            End If

        Next

        Dim js As JavaScriptSerializer = New JavaScriptSerializer()
        Dim sJSON As String = js.Serialize(MArray)
        Return str
    End Function

End Class
M.Waqas Aslam 67 Posting Pro in Training Featured Poster

check this
Click Here

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

Sir, Can you please explain the Desktop app ? If I want to use microsoft crm in my office/Local network. and I want that my data will store on my local database. Is it possible ?

Regards

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

please check this
Click Here

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

I think HTML5 is not compatible with the version of IE you are using. Please do mention the version you are using.

Do you need any help regarding Button rotation and smiling face ?

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

Use asp.net label control and on click event of print button simple get the last entered record using datareader or dataadapter .

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

You can also use mssql server data import functionality. you can simply map your csv file columns with your table columns .

Regards

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

sorry I cant understand your point. just add \9\0 at the end of your css property. like I use them in above example.

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

Dear All !

I am starting R&D for Microsoft CRM and HRM. I have some basic knowledge about CRM and HRM but I want to know is there any offline version of both ? or we can only use it online.

If you have some important links having some information about above mentioned products then do share.

Regards

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

hi, you can try this hack hope this will help you

<img src="your link" style="width:400px;height:400px;width:400px\9\0;height:400px\9\0;">

hope this will solve your prob . here are some other hacks

color:red; /* All browsers */

color:red !important;/* All browsers but IE6 */

_color:red; /* Only works in IE6 */

color:red; / IE6, IE7 */

+color:red;/* Only works in IE7*/

+color:red; / Only works in IE7 */

color:red\9; /* IE6, IE7, IE8, IE9 */

color:red\0; /* IE8, IE9 */

color:red\9\0;/Only works in IE9/

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

Thanks for your reply sir , i just solved my prob. There is no issue with the code. There was issue with the firewall they are using. After enabling few services (i dont know which) page is loading fine.

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

use scope identification in MSSql server. Google it

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

here is the second pic.

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

Dear All !

I am facing very strange issue of my online application. There are two images are attached with this post:
1-Snap shoot of my PC
2-Snam shoot of client PC

There is a asp tab control having menu. At client end its visibility is hidden i dont know what is the reason, and at the same time this control is visible at my end with same user. Issue is same with diff browsers but just at client end. It is working fine on any other PC.

Regards

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

Thanks both of you for your interest. My plan is very simple. I am looking to hire an electronics engineer to buil a circut for me which will connect to the circut of Halicopter's remote and also connect with my computer through usb port. I will also ask him to give me any interface to communicate with driver files so that I could get and send some data and commands.

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

are you getting any error while connecting to your server ? if yes please post it here.

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

try this

select * from tbl
where DateOfBirth >= addDate(day,-1,getdate()) and DateOfBirth <= getdate() 

you can also use between clause in where condition.

Hope this will give you any idea.

Regards

M.Waqas Aslam 67 Posting Pro in Training Featured Poster

Hello !

I have a remote control aricraft toy. I want to control it from my pc. I do not know where to start. Is there anyone who did this before or did any project dealing with hardware programming ?

Regards