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
D

Dominic Goulet

@Dominic Goulet
About
Posts
17
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Change BG color on Client side and store it till browser close.
    D Dominic Goulet

    Okay so you just have to use javascript to achieve that.

    document.body.style.backgroundColor = '#000000'; // black

    ______________________ Dominic Goulet FroggedSoft My blog

    ASP.NET question

  • Tree View in ASP.NET
    D Dominic Goulet

    You could achieve this easily by using the CollapseAll method from the tree view and then, on the clicked node you could do thisNode.Expanded = true, and recursively do this for all the parents he has using the Parent property. For instance,

    youTree.CollapseAll();

    .. on the event

    TreeNode currentNode = nodeFromEvent;
    while(currentNode != null)
    {
    currentNode.Expanded = true;
    currentNode = currentNode.Parent;
    }

    ______________________ Dominic Goulet FroggedSoft My blog

    ASP.NET csharp asp-net com data-structures help

  • asp:HyperLinkField inside Gridview in Ajax:Update panel
    D Dominic Goulet

    Hello, I'm not sure I understand your question, but at least I understand a part of it. For the " don't want to refresh the page, When i click on the Hyperlink" question, here is the answer : The only way to not refresh the page on a hyperlink click is to call some client side action, such as javascript. For the rest of your question, I guess you want to copy the current row to the fields you might have created upside from your gridview. To achieve that, you could use a javascript method (so there will be no page refresh) and copy the data into the fields. This could be a simple call on the hyperlink such as href="javascript:SomeMethodThatCopyDataToFields('data1','data2');" Cheers

    ______________________ Dominic Goulet FroggedSoft My blog

    ASP.NET help announcement

  • Change BG color on Client side and store it till browser close.
    D Dominic Goulet

    Create an event handler on your buttons click. Set the body element to be runat="server". On the click events, do a Body.BackgroundColor = Color.TheColorYouWant. With the body set to runat="server", it will store the information in the page viewstate. It will keep that color until you change it again.

    ______________________ Dominic Goulet FroggedSoft My blog

    ASP.NET question

  • TextBox Problem in asp.net
    D Dominic Goulet

    I clearly can't answer a such wide question, but at least I will give you hints. Have you checked your web page encoding? Is it UTF-8? Maybe you are losing the arabic text on the post back? Have you did a step-by-step debug in code? Do you use a stored procedure or plain sql code inside your .net code? Are you using any Globalization inside your .net code?

    ______________________ Dominic Goulet FroggedSoft

    ASP.NET help csharp javascript asp-net database

  • Sys.WebForms.PageRequestManagerServerErrorException
    D Dominic Goulet

    Can you provide me : 1. The html code for the button 2. The javascript function that is called. 3. The javascript function call. 4. The button event code. Thanks

    ______________________ Dominic Goulet FroggedSoft

    Web Development help javascript

  • How can I retrieve the source code of the content in an iframe.
    D Dominic Goulet

    In JScript it's innerHTML As far as I know, document.getElementById is a jscript method ;)

    ______________________ Dominic Goulet FroggedSoft

    ASP.NET csharp asp-net question

  • How can I retrieve the source code of the content in an iframe.
    D Dominic Goulet

    I would do a document.getElementBydId("iframeId").innerHTML.

    ______________________ Dominic Goulet FroggedSoft

    ASP.NET csharp asp-net question

  • Popup window problem
    D Dominic Goulet

    Hello, Does your problem only happens in IE? Or all browsers? Are you actually using window.open or window.showModalDialog? I would try adding a break point in code so you could see if the debugger actually goes into the code or does IIS blocks it. Have you checked what are the IIS log about this page?

    ______________________ Dominic Goulet FroggedSoft

    Web Development help csharp html asp-net sysadmin

  • Cross-browser compatibility with ASP.NET 3.x?
    D Dominic Goulet

    Well it is generally safe to develop an asp.net application using ajax for IE and firefox. As previsouly said, simply take care of the home made js code from your developers. As an advice, I would also recommend that you split your dev team into 2 parts, one using IE and one using firefox. While not a great project management method (!!), this has proven to reduce the number of problems in projects I've been involved into.

    ______________________ Dominic Goulet FroggedSoft

    Web Development question csharp asp-net

  • Insert a standar control to a ASP.NET Web application
    D Dominic Goulet

    First of all, make sure you are having an asp.net webpage (.aspx). Also, make sure you are dropping the control into the form runat="server" part of the page (if it is a master page or full web page, don't apply to web content forms).

    ______________________ Dominic Goulet FroggedSoft

    Web Development csharp question html asp-net visual-studio

  • query regarding uploading of files in one page and vieweing the uploaded files in another page of same website using javascripts/vbscript/html with full and complete details
    D Dominic Goulet

    Your question is really not clear, tho i'll try to answer. First of all, if you want to upload content via a webpage, use the Asp:FileUploader control. On the post back, you can use the FileUploader.Save method to save the file to the server. Then, on a second page, you will have to use System.IO to get all the files in a directory, and print the list as the webpage output.

    ______________________ Dominic Goulet FroggedSoft

    Web Development html database help

  • Sys.WebForms.PageRequestManagerServerErrorException
    D Dominic Goulet

    You are setting a string that is not a date to a "Text" property of a control that expects a date string.

    ______________________ Dominic Goulet FroggedSoft

    Web Development help javascript

  • pass a variable in hyperlink gridview using code behind
    D Dominic Goulet

    You need to use the attributes already in place for that!

    ______________________ Dominic Goulet FroggedSoft

    ASP.NET question database

  • event bubbling
    D Dominic Goulet

    Hello, A simple way to achieve this would be to add an event on the dropdown controls dynamically in the gridview RowDataBinding event.

    ______________________ Dominic Goulet FroggedSoft

    ASP.NET tutorial question

  • How edit my URL on button click
    D Dominic Goulet

    Hello, What you are asking is to change to url, while doing a postback event. I'm sorry, this can't happen in a fashionly manner. When you use a redirection (or a hyperlink -- so whenever you modify the url), you will lost the viewstate. Why is that so? Because viewstate is stored in a form value. It is actually stored into a hidden field of the page. If you change the url, the data in this field is lost because you are causing a page change, not a page postback event. You should post here what you want to do, we can help you manage the situation in another way. One suggestion here could be that you use the ViewState object instead of a query string parameter to manage the current step of your wizard.

    ______________________ Dominic Goulet FroggedSoft

    C# com tutorial question

  • How can I implement this complex object
    D Dominic Goulet

    Hello, You question is very large. I will try to answer you with a simple and short answer, and if you feel you need more explanations, feel free to post back here. You will need more than a single object to hold your information. For instance, you could use a ExamFile, Exam and Question objects. In the ExamFile object, you could have a List, and in Exam object you could have a List. Here is a concrete example of a data structure to hold your information :

    using System;
    using System.Collections.Generic;

    public class ExamFile
    {
    public String Title { get; set; }
    public String FileName { get; set; }
    public List Exams { get; set; }
    }

    public class Exam
    {
    public String ExamName { get; set; }
    public List Questions { get; set; }
    }

    public class Question
    {
    public String Remark { get; set; }
    public String Type { get; set; }
    }

    ______________________ Dominic Goulet FroggedSoft

    C# question csharp 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