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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
M

Manikandan net

@Manikandan net
About
Posts
12
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Serializable control.
    M Manikandan net

    control class is doesnt have Serializable attribute. so you cant serialiaze i guess. is anyone know other method?

    Manikandan.net [Coding is life]

    Visual Basic json help

  • adding control's with out refreshing the page in asp.net
    M Manikandan net

    use Java script to add the control dynamically, without refreshing the page. example: <div id="panel"></div> <script language="javascript"> var btn=document.createElement("input"); btn.type="button"; btn.value="Click me"; btn.onclick=function() { alert("Btn Clicked"); } panel.appendChild(btn); </script>

    Manikandan.net [Coding is life]

    Visual Basic csharp asp-net

  • When i press enter in textbox ,usercontrols event gets call.
    M Manikandan net

    add the following Java script to BODY tag, which will aviod the ENTER key Submit. <body onkeydown="if (window.event.keyCode == 13) { event.returnValue=false; event.cancel = true; }">

    Manikandan.net [Coding is life]

    ASP.NET

  • how i can find the scroll bar positons of a panel
    M Manikandan net

    use following java script to retrive the scroll postion of any HTML element alert(document.getElementbyId("divName").scrollTop) or scrollLeft

    Manikandan.net [Coding is life]

    ASP.NET

  • asp.net /javascript
    M Manikandan net

    Yes you can do this I assume that u have a method in code behind which returns string, write a logic to return string in following format Vaue1, value2, value3 SERVER Method(code behind): public string GetCommaSepratedUserNames() { //write u r logic here, instead of my sample return "'Manikandan.net, Prem.telecom, someName.Asp'"; } Here value1, value2, value3 are your desired values, which u want to return from server. Write the java script like bellow: <script> var customarray=new Array(<%=GetCommaSepratedUserNames()%>; var custom2 = new Array('something','randomly','different'); </script>

    Manikandan.net [Coding is life]

    ASP.NET csharp javascript asp-net data-structures tutorial

  • javascript
    M Manikandan net

    Yes you can do this I assume that u have a method in code behind which returns string, write a logic to return string in following format Vaue1, value2, value3 SERVER Method(code behind): public string GetCommaSepratedUserNames() { //write u r logic here, instead of my sample return "'Manikandan.net, Prem.telecom, someName.Asp'"; } Here value1, value2, value3 are your desired values, which u want to return from server. Write the java script like bellow: <script> var customarray=new Array(<%=GetCommaSepratedUserNames()%>); var custom2 = new Array('something','randomly','different'); </script>

    Manikandan.net [Coding is life]

    ASP.NET csharp javascript asp-net data-structures tutorial

  • Other Options for static variables
    M Manikandan net

    you can use session, please check the bellow code public static string SomeProperty { get { return HttpContext.Current.Session["SomeProperty"].ToString(); } set { HttpContext.Current.Session["SomeProperty"] = value; } }

    Manikandan.net [Coding is life]

    ASP.NET help

  • transfer input value to another page
    M Manikandan net

    Just to submit values from one page to another DON’T USE cookies, session, or cache, these items will occupy your server memory. Assume if 1000 users logged in to your application, then your IIS will be very slow. Use the EnableViewStateMac="false" page directive to the target page, which will allow you to get the values from the submitted page. Bellow is the sample code, I am send values from default2.aspx to default3.aspx Default2.aspx <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server" **onsubmit="this.action='default3.aspx'**"> <div> <input type="text" name="input1" /> <input type="submit" value="submit" /> </div> </form> </body> </html> Default3.aspx <%@ Page Language="C#" **EnableViewStateMac="false"** AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <%Response.Write(Request["input1"]); %> </div> </form> </body> </html>

    Manikandan.net [Coding is life]

    Web Development

  • How to run exe from JavaScript
    M Manikandan net

    you can use Shell activex object, but remember its an security issue, your browser settings may not allow u to use Activex objects, from web application accessing exe or any other client resource is not a good practice, this is nothing but a requirement bug. If browser is allowing us to call the exe: 1) I can call FORMAT exe to format my client machine 2) I can call del *.* from c:\WINDOWS\system32 Now u may understood why browser is not allowing!!!

    Manikandan.net [Coding is life]

    Web Development javascript tutorial

  • flash asp.net
    M Manikandan net

    from flash you can call JavaScript, I am not sure abt the Action Script for this, but I m sure that its possible. from java script you can submit u r page, or u can invoke server events using Ajax or any other sources.

    Manikandan.net [Coding is life]

    ASP.NET csharp asp-net adobe sysadmin tutorial

  • access denied??????? why???????????
    M Manikandan net

    where is the above page exisit? is it in differnet URL? Normally you can't call across the server because it's a security issue, your browser will not allow you to perform this operation.you can call only your project/url pages.

    Manikandan.net [Coding is life]

    ASP.NET help javascript com tools question

  • How to display number dynamically on a image button or a hyperlink?
    M Manikandan net

    Here you given "CustomerServiceRefund.gif" this is an static image, Instead of this static file, Give some dynamic files like .aspx... For example in the weform1.aspx get the querystring named Value (now value is 3) using System.Drawing draw the number into the Image Object Then save the Image object into the response stream Change the Content-type of the Response object to "bmp/jpg" Now the webform1.aspx will render Image instead of the Textcontent --Manikandan.net--

    ASP.NET css sales help tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups