Contact Me

my email adderess:

adnanaman at gmail dot com (most frequent use for emails)

adnan_a2z at hotmail dot com (for chat)

adnanaman at live dot com (awaen)

cell # +92 321 8803081

i guess thats enough to know to contact me 🙂

7 responses to “Contact Me

  1. Hello,
    I try to send email with reply and read receipt using VB.Net 1.1 but I do not have ReplyTo property
    This is your code:
    mailMessage.ReplyTo = New MailAddress(“Enter your desired Reply To Email ID”)
    &
    mailMessage.Headers.Add(“Disposition-Notification-to”, ” Email ID”)
    Do you know how I can do that (read receipt is the most important)?
    Thanks
    NG

  2. its asp.net 2.0 feature. so try in .net 2.0 env

  3. Thanks for your article related to delegate. I’m a VB.Net user and i was wondering if you could help me. I’m trying to convert the expression below to VB.Net. None of the C# to VB.Net converter can do it. Could you help me convert it to VB? It would be appreciated. They are using the latest of delegate and lamda???? Maybe simplifying this to an older version C# 2 might help me run it through a C# to VB.Net converter.

    public static void RegisterListDefaults(LinqDataSource dataSource, HyperLink hyperLink) {
    hyperLink.PreRender += delegate(object sender, EventArgs e) {
    hyperLink.NavigateUrl = BuildInsertWithDefaultsUrl(dataSource);
    };
    }

    Thank you in advance.

    Nathalie

    • Public Shared Sub RegisterListDefaults(dataSource As LinqDataSource, hyperLink As HyperLink)

      hyperLink.PreRender += Function(sender As Object, e As EventArgs) Do

      hyperLink.NavigateUrl = BuildInsertWithDefaultsUrl(dataSource)
      End Function

      End Sub

  4. Hi,

    First of all – thanks for the code, very useful!

    I’ve modified it slightly to the following:

    function handleLeftClick(Obj, hdn) {
    var vartext = null;
    var varArr = null;
    var varbox = Obj;

    vartext = document.getElementById(hdn)
    if (vartext.value == ”) {
    vartext.value = “|” + Obj.value + “|”;
    }
    else {
    if (vartext.value.indexOf(“|” + Obj.value + “|”) != -1)
    {
    vartext.value = vartext.value.replace(“|” + Obj.value + “|”, “|”);
    }
    else {
    vartext.value += Obj.value + “|”;
    }
    }

    varArr = vartext.value.split(“|”)

    //The first element of varArr is the empty string
    for (var v = 1; v < varArr.length; v++) {
    for (var f = 0; f < Obj.options.length; f++) {
    Obj.options[f].selected = false;
    }
    }

    for (var v = 1; v < varArr.length; v++) {
    for (var f = 0; f < Obj.options.length; f++) {
    if (Obj.options[f].value == varArr[v]) {
    Obj.options[f].selected = true;
    }
    }
    }
    }

    i.e. I search for "|" and the value and a trailing "|" (I put a leading "|" as well) as I encountered the situation where, if, for example, you had two list values with the same substring it would cause problems with the selection. (eg: the list items "Associate Dean" and "Dean" would cause problems as they both contain the word "Dean").

  5. Hi,

    With regard to your article on “Dynamically controls creation asp.net/ event fire twice / event bubbling”, I have created a mobile web part in sharepoint.
    Here controls are created in createcontrolsforsummary method.

    I have 2 drop downs, City drop down (Cdd) and Locality drop down (Ldd).
    Ldd is populated based on Cdd (Written in Cdd-Selectedindex changed event) and when a value is selected in Ldd, Cdd-Selectedindex changed event is called first (hence selected value od Ldd is lost) and then Ldd-Selectedindex changed event is called( here the index[0] value will be selected). How to avoid the Cdd event firing when Ldd event is supposed to be triggered.

    Thanks.

    • hello chitra,

      “Ldd is populated based on Cdd (Written in Cdd-Selectedindex changed event) and when a value is selected in Ldd, Cdd-Selectedindex changed event is called ”
      it seems there is something fishy in code as it’s not what normally happens even though you are populating other fields/dropdown in another ‘s event code.

      can you send me that part of your code then i could help.

      all the best

Leave a comment