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
N

netJP12L

@netJP12L
About
Posts
487
Topics
259
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Button event does not execute
    N netJP12L

    Hi Guys, I am loading buttons on a page load event dynamically. The buttons are added to a placeholder control on a aspx page. The problem I am having is that the dynamically created button event below (topic_Click) doesn't get fired. Bascially, I am trying to add topics to aobjective. Could you please help me. I would highly appreciate it.

    protected void Page_Load(object sender, EventArgs e)
    {

        if (Session\["s"\] == null)
        {
            AddObjective();
            AddTopic();
        }
        else if (Session\["s"\] != null)
        {
            List list = new List();
            list = Session\["s"\] as List;
            foreach (var item in list)
            {
                AddtoPlaceHolder(item);
            }
        }
    }
    

    private void AddObjective()
    {
    Panel panel = new Panel();
    Button objective = new Button();
    objective.Text = "Add objective";
    objective.Click += new EventHandler(objective_Click);
    panel.Controls.Add(objective);
    placeholder.Controls.Add(panel);

        AddtoPlaceHolder(panel);       
    }
    

    void AddtoPlaceHolder(Panel panel)
    {
    if (Session["s"] == null)
    {
    List list = new List();
    list.Add(panel);
    Session.Add("s", list);
    }
    else if(Session["s"] !=null)
    {
    List list = Session["s"] as List;
    list.Add(panel);
    Session.Add("s", list);
    }
    }

    void objective_Click(object sender, EventArgs e)
    {
    if (Session["s"] != null)
    {
    AddObjective();
    }
    }

    void topic_Click(object sender, EventArgs e)
    {
    throw new NotImplementedException(); =======> Problem doesn't execute
    }

    private void AddTopic()
    {
    Panel paneltopic = new Panel();
    paneltopic.ID = Guid.NewGuid().ToString();
    Button topic = new Button();
    topic.ID = Guid.NewGuid().ToString();
    topic.Text = "Insert topic";
    topic.Click += new EventHandler(topic_Click);
    paneltopic.Controls.Add(topic);
    placeholder.Controls.Add(paneltopic);

        AddtoPlaceHolder(paneltopic);
    

    }

    ASP.NET help

  • Asp.net 4.0
    N netJP12L

    Thanks for replies. Will you be able to tell me where do I find the assembly or file which I need to ad again to the toolbox? A step by step guide will be very very helpful to me. Thanks

    ASP.NET csharp asp-net visual-studio xml question

  • Asp.net 4.0
    N netJP12L

    It's a web based project. On the Default.aspx Design page I simply drag and drop the ajax TextBoxWaterMarkExtender control from the Toolbox on the web page. The Ajax controls are listed under the General tab within the ToolBox. I also have another tab Ajax Extensions which only have Pointer, ScriptManager, ScriptManagerProxy, Timer,UpdatePanel and UpdateProgress controls.As soon as I drop it creates bunch of xml codes like as follows

    true

    Microsoft
    TextBoxWatermarkExtender
    AjaxControlToolkit.TextBoxWatermarkExtender

    <{0}:TextBoxWatermarkExtender runat="server"></{0}:TextBoxWatermarkExtender>
    0

    <_Name id="ref-18">AjaxControlToolkit
    <_PublicKey href="#ref-19"/>
    <_PublicKeyToken xsi:null="1"/>
    <_CultureInfo>127
    <_CodeBase id="ref-20">file:///C:/Documents and Settings/khay228225/My Documents/Longview/ClassroomRegistration/bin/AjaxControlToo

    ASP.NET csharp asp-net visual-studio xml question

  • Asp.net 4.0
    N netJP12L

    Hi Guys, I have installed Visual Studio 2010 with Framework 4.0. But when I try to add an Ajax control on a web form it convert into an xml and shows some code. Also there is no Bin folder in the solution explorer, therefore no ajax.dll file. Do I need to install ajax for VS2010 and Framework 4.0? I would appreciate your feedbacks. Thanks

    ASP.NET csharp asp-net visual-studio xml question

  • is it true about MSSQL Database server
    N netJP12L

    Hi Guys, I would like to know if this is true for MS SQL Server. Lets say you have 1000 users in your MS SQL database. Does a person has to pay for each of those 1000 of users who uses your application which connects to the database to retrieve the users information. Thanks

    Database database sql-server sysadmin

  • row clickable
    N netJP12L

    Hi, I have hyperlinks in each of the table rows and user is tranfered to a different page upon clicking. What I would like to have instead is that they click on the row rather than the hyperlink. How could I do it, while still keeping those hyperlinks. Thanks

    ASP.NET

  • asp.net Mobile
    N netJP12L

    Thanks guys, for providing me the helpful resources. I went through a couple of listed sites and and Microsoft has mentioned that the even the Framework 4.0 is not updated enough to develop websites for Android, Iphone and blackberry. The "Request.Browser.IsMobileDevice" returns a value of False when i were to view a simple Default.aspx page. Is getting values from the user agent enough to tell if a website is Desktop or Mobile? If so why there are 51Degree.mobi framework. Also, how do i generate the dynamic width for different phones rather than a fixed width. Thanks for your cooperation.

    ASP.NET csharp asp-net help question learning

  • asp.net Mobile web
    N netJP12L

    Hi Fellows I am wondering how can I create a mobile website in VS2010 asp.net C#. I have been looking through the VS2010 and haven't found a way to create a Mobile Website project. I haven't found a good resource that could explain me the components I need to download. If you could help me I would really appreciate it. Thanks

    Mobile csharp asp-net help question learning

  • asp.net Mobile
    N netJP12L

    Hi Fellows I am wondering how can I create a mobile website in VS2010 asp.net C#. I have been looking through the VS2010 and haven't found a way to create a Mobile Website project. I haven't found a good resource that could explain me the components I need to download. If you could help me I would really appreicate it. Thanks

    ASP.NET csharp asp-net help question learning

  • Third-party WEB authentication
    N netJP12L

    Hi fellows, I am looking for some tutorials and references about the Third-party web authentication. How do we implement and how does it works? I am somewhat told about the HTTPHEADER value that is used in the Third-party Web authentication. But I am not so sure what is exactly needed. Could someone please help me and provide me a link. Thanks

    ASP.NET question security help

  • Class
    N netJP12L

    I have created a class and if I were to put the class under the App_code folder then I don't get any error message but i put in one my own created folder then it says Compiler Error Message: CS0246: The type or namespace name 'ClassRoomClass' could not be found (are you missing a using directive or an assembly reference?) What could i do to put the class under my own created folder folder? thanks

    ASP.NET help question

  • Gridview Paging
    N netJP12L

    Hi fellows, I have a Gridview with paging enabled. I wanted to display the 3rd page record of the gridview without clicking on the paging buttons at the bottom of the gridview. I couldn't find a way to do. I have tried to call the gridview_PageIndexChanging event manually but it doesn't get called. I google it but couldn't find anything, Coud anyone help me with it? Thanks

    ASP.NET help question

  • could we add a table in the content area of the google calendar
    N netJP12L

    I wish, but first i need to solve this milestone.

    ASP.NET question

  • could we add a table in the content area of the google calendar
    N netJP12L

    Hi fellows, How could I add apply nice formatting to the content area of body of the google calendar events? Thanks

    ASP.NET question

  • how to access calendar
    N netJP12L

    Hi guys, I am able to access my own outlook calendar but i wanted to know how could I access the shared calendar via C#. The shared Calendar resides in the Outlook Public Folders. I couldn't find any examples Could you please help me. Thanks

    C# csharp help tutorial

  • calendar access
    N netJP12L

    Hi fellows, How could i access an ms outlook public calendar and add events or appointment through code into that calendear? Could anyone of you suggest me some guidelines. Thanks

    ASP.NET question

  • how to reference image
    N netJP12L

    I have two projects in one solution. What I want to do is that whenever I instantiate CusomPicture class it should show a picture that is inside this project class. How could i tell the ProjectB CustomPicture class that upon its run look for Logo.gif inside its own project. Project A using CustomPicture; private void Form1_Load(object sender, EventArgs e) { CustomPicture cp = new CustomPicture(); } Project B public class CustomPicture { public customPicture() { PictureBox.Image=new Bitmap("Logo.gif"); } }

    C# csharp visual-studio help tutorial

  • how to reference image
    N netJP12L

    Hi fellows, I created a "Class Library project" in Visual Studio and added a "Windows Applications" project to the same solution. The problem is that I added a referece to the Class Library dll file to my Windows appication project and I don't see images. Images resides in the ClassLibrary project. What i want is that when a dll class is reference in any project and instiantated. It should display image that is define in it's assembly. Thanks in advance

    C# csharp visual-studio help tutorial

  • site accessing
    N netJP12L

    I am running windows server 2003 and sharepoint inside a virutal PC. I am able to access the Windows server and Sharepoint with no problem. However, how could i access the local websites/sharepoint over the internet. e.g: I am able to access things running inside the virutal pc. But how could i access the virtual pc from it's parent machine or from the machine which is running the virtual PC Thanks

    ASP.NET sharepoint sysadmin windows-admin help

  • form submit
    N netJP12L

    That's cool. Thankkkks

    ASP.NET help
  • Login

  • Don't have an account? Register

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