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
N

Nisha Agrawal

@Nisha Agrawal
About
Posts
59
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Custom Window Control
    N Nisha Agrawal

    Thats what i am thinking from starting but i was not sure that this is the only solution or it's a good approach. Thanks to you all.

    C# html design help question

  • Custom Window Control
    N Nisha Agrawal

    but then my problem remains same that i won't be able to inherit this control with TextBox so that all it's properties and events are avialable to the Control User. So now if there is any idea for this problem then i'll be really thankful to you.

    C# html design help question

  • Custom Window Control
    N Nisha Agrawal

    Thanks to all for taking intrest in my problem. Now i just understood that i am making some mistake. When i searched CP more, i got this article A Touch Screen Keyboard Control in WPF[^]. It was my exact requirement but i have to design a window control not WPF. Now i got the idea from this article that i should display the keyboard panel as another window not to include panel in the control itself.

    C# html design help question

  • Custom Window Control
    N Nisha Agrawal

    Hi All, I want to design a custom window control which can be derived from textbox and to which i can add another control like month calendar or keyboard panel. I have tried user control for this but then i can't derive this from textbox and if i design a custom control that derives from textbox class then how i can add keyboard panel/ month calendar to it? If i have to design a web control instead of window control then i can add controls to inherited textbox control via rendering the required html. but how this task can be done in window control? [Addition]The idea in my mind is design it like user control and then expose the required properties/ event through the custom control. Is it a right solution? or is there a better solution for this problem?[/Addition]

    C# html design help question

  • Inserting Only time into SQL db
    N Nisha Agrawal

    In SQL Server 2008, there is Time Data Type so that you can insert only time value there.

    ASP.NET database help question

  • query needed
    N Nisha Agrawal

    yes, you are right. If records are already not in order in what we need then we need to sort it as per the requirement.

    Database database question sales workspace

  • insert only date
    N Nisha Agrawal

    If you are using sql server 2008 then there is a data type date for this purpose. you can use that.

    ASP.NET database

  • startdate in dropdownlist
    N Nisha Agrawal

    I would prefer this one as it does not believe on string manipulatio and when we have datetime datatype then why do string manipulation?

    String strDate = "12/27/2009"; //or any date format
    String strFormat = "mm/dd/yyyy";
    System.Globalization.CultureInfo provider = System.Globalization.CultureInfo.InvariantCulture;
    DateTime dt = DateTime.ParseExact(strDate, strFormat, provider);
    String dd = dt.Day.ToString();
    String mm = dt.Month.ToString();
    String yyyy = dt.Year.ToString();

    ASP.NET database help tutorial

  • having links in an email
    N Nisha Agrawal

    If you are sending the mail having reply link then you know the content of the mail so you can use that one.

    C# docker

  • having links in an email
    N Nisha Agrawal

    You can set To Address , Subject And Message Body like this

    mailto:abc@xyz.com?subject=mailsubject&body=message to be set.

    C# docker

  • A matter of style : Switch or ?: [modified]
    N Nisha Agrawal

    It's not the matter of readability, infact i'll use switch due to performance gain over multiple if-else statements. There is detailed description of this thought here. http://www.ozcandegirmenci.com/post/2008/05/Switch-vs-If.aspx[^]

    C# javascript performance question

  • Set server variable as forecolor propery value
    N Nisha Agrawal

    i think still u can do it with the help of ItemDataBound Event. Just handle the ItemDataBound Event. In that handler, find out the control via e.Item.FindControl("lnb1") and then set the color as u wish.

    ASP.NET sysadmin help

  • How to call a C# Method from Javascript
    N Nisha Agrawal

    you can share this value via hidden control as d@nish said else if you really want to call C# method from javascript then call it like this

    <%# serverMethod() %>

    C# tutorial csharp javascript help

  • Not able to call .NET function with return value in javascript
    N Nisha Agrawal

    Yes, the withparam is the actual function to be called, i mean if we don't need any server side processing then this way would be the best.

    ASP.NET csharp javascript html asp-net

  • Not able to call .NET function with return value in javascript
    N Nisha Agrawal

    Replace the line

    st = <% withparam(10) %>;

    with this

    st = <%= withparam(10) %>;

    it would work surely. i have tested it.

    ASP.NET csharp javascript html asp-net

  • Not able to call .NET function with return value in javascript
    N Nisha Agrawal

    amittinku wrote:

    It does not work.

    what does mean by this? do u got some error or what?

    ASP.NET csharp javascript html asp-net

  • Not able to call .NET function with return value in javascript
    N Nisha Agrawal

    you are getting this error as you have declared variable 'st' in <% %> block, means it is declared server side and you are using it at client side. so declare it at client side and assign value by calling server side method.

    var st;
    st = <% withparam(10) %>;
    document.write(st);

    ASP.NET csharp javascript html asp-net

  • Delete InnerText with its node. [modified]
    N Nisha Agrawal

    Actually you havn't provided the whole xml so i have taken "root" as placeholder. For your case it would be "albumes". Also in "/root/album" is the placeholder for the album name.

    XML / XSL csharp xml tutorial

  • Delete InnerText with its node. [modified]
    N Nisha Agrawal

    First of all, i would say that you have to remove a node not it's innertext. So you need to find the node. Second thing, IS all the album node is named as albume1 or is it the name of the Alubum? anyways you can remove the child node in this way.

    XmlDocument _xmlDoc = new XmlDocument();
    if (System.IO.File.Exists(xmlDbFilepath))
    {
    _xmlDoc.Load(xmlDbFilepath);
    }

    XmlNode albumNode = _xmlDoc.SelectSingleNode("/root/album");
    if (albumNode != null)
    {
    foreach (XmlNode node in albumNode.ChildNodes)
    {
    if (node.InnerText.trim() == fileName)
    {
    albumNode.RemoveChild(node);
    }
    }
    }

    I hope it will help you.

    XML / XSL csharp xml tutorial

  • Custom monthCalendar control
    N Nisha Agrawal

    You won't need any custom control. You can use DayRender Event of the Calendar Control. Here you can set the background color of any date via e.Cell.BackColor or e.Cell.Attributes.Add("backgroundcolor","red"); Infact you can add here some controls also via e.Cell.Controls.Add() method.

    C# help tutorial
  • Login

  • Don't have an account? Register

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