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
C

carlecomm

@carlecomm
About
Posts
140
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to remove the rows from the gridview control when check box is unchecked
    C carlecomm

    for (int i = 0; i < GridView1.Rows.Count; i++) { CheckBox ck=(CheckBox)GridView1.Rows[i].Controls[0]; if(!ck.Check) { GridView1.Rows[i].visible=false; } }

    ASP.NET csharp tutorial asp-net

  • How to get DataGridView Checkbox Checked or not ! [modified]
    C carlecomm

    Please change "bool IsChecked = ((CheckBox)datagridview1.rows[i].Cell["ID"].Value).Checked;" to "bool IsChecked = ((CheckBox)datagridview1.rows[i].Cell["ID"].FindControl["CheckBox1"]).Checked;" and have another try.

    C# csharp tutorial

  • getting and setting textbox.txt value in XAML from C# in Winform
    C carlecomm

    You can samply convert the child control to TextBox. Try this: private void treeView1_AfterSelect(object sender, TreeViewEventArgs e) { System.Windows.Controls.TextBox tb = (System.Windows.Controls.TextBox)(elementHost1.Child); tb.Text = e.Node.Name; }

    WPF csharp wpf hosting tutorial question

  • Add Custom Color in ColorDialog
    C carlecomm

    To create a custom color, 1. In the More Colors dialog box, click Custom... . The Color dialog box is displayed. 2 Try one of the following: a. Use the color matrix and the saturation gradient to create a color by clicking inside the matrix. Then use the saturation gradient pointer to select a saturation level. b. Enter the HSL or RGB values for the custom color. The custom color is displayed in the Color/Solid box. 3. If you want to create more colors, click Add to Custom Colors to add the color to the Custom colors palette. You can then repeat step 2 to create other colors. 4. Click OK to assign the color to the page element that you have selected on the page.

    C# question

  • AddString()
    C carlecomm

    private void AddStringExample(PaintEventArgs e) { // Create a GraphicsPath object. GraphicsPath myPath = new GraphicsPath(); // Set up all the string parameters. string stringText = "Sample Text"; FontFamily family = new FontFamily("Arial"); int fontStyle = (int)FontStyle.Italic; int emSize = 26; Point origin = new Point(20, 20); StringFormat format = StringFormat.GenericDefault; // Add the string to the path. myPath.AddString(stringText, family, fontStyle, emSize, origin, format); //Draw the path to the screen. e.Graphics.FillPath(Brushes.Black, myPath); }

    C# tutorial question

  • Editing in gridview
    C carlecomm

    In gridView RowDataBound event, disable the editor when type is Cash.

    ASP.NET css

  • nvarchar vs varchar
    C carlecomm

    VARCHAR is a variable length string of ASCII characters while NVARCHAR is a variable length string of UNICODE characters.Since NVARCHAR can handle unicode characters, so it allows to use multiple languages in the database. Each ASCII character takes one Byte of space while each UNICODE character takes two Bytes of space. It means NVARCHAR takes twice as much space to store to allow for the extended character set required by some other languages.

    Database question visual-studio

  • Regular Expression
    C carlecomm

    You can use the following regular expression to validate it. "^[0-9]*[1-9][0-9]*$"

    ASP.NET help regex

  • append node by element name
    C carlecomm

    You can use c# DOM to access the XML or DHMTL. Try this: http://progzoo.net/wiki/C%23:Navigating\_over\_DOM\_Tutorial

    C# question csharp xml

  • Creating new Silverlight project silently crashes Visual Web Developer 2008
    C carlecomm

    I suggest you reinstall the visual studio. Most of these problems will be solved in this way.

    WPF help csharp asp-net question

  • Response.End()
    C carlecomm

    Hi, If you use 1. Response.End,you should try ApplicationInstance.CompleteRequest 2. Response.Redirect,please change it to Response.Redirect(String url, bool endResponse),set endResponse as false. For example, Response.Redirect ("nextpage.aspx", false); 3. Server.Transfer,please change it to Server.Execute. Hope this helps:)

    ASP.NET c++ data-structures help tutorial question

  • Table and panel
    C carlecomm

    Hi, Do you want this: < asp:Panel ID="Panel1" runat="server"> < table> < tr> < td> </td> </tr> </table> </asp:Panel> Or this: < table> < tr> < td> < asp:Panel ID="Panel2" runat="server"> </asp:Panel> </td> </tr> </table>

    ASP.NET question

  • Table and panel
    C carlecomm

    Sure. You can both place a panel inside the table and place a table inside the panel.You can have a try by yourself.

    ASP.NET question

  • how hyperlink connected excel file save in Project in Asp.net..Pls help me
    C carlecomm

    Hi, Actually, I do not understand your requirement clearly. However, if you want to save the file without any location, you should get the file when the page is opened. Or IF you just want to get the file to your project and want to do some changes, why not get the whole project and check out the file??

    ASP.NET help csharp asp-net

  • crate a new avi/wmv file from byte array
    C carlecomm

    I think you can use the DirectShow, and it can help you get the type of the video and decode the video. Try this: http://en.wikipedia.org/wiki/DirectShow

    C# data-structures

  • image
    C carlecomm

    Please try this: http://www.shabdar.org/store-save-images-in-sql-server.html

    Windows Forms database tutorial

  • if statement in the html code in aspx page
    C carlecomm

    Hi, If you just want to change the forecolor, you can try this: string test1 = "John"; string test2 = "Jim"; string testStr = Label1.Text;//source string if (testStr.IndexOf(test1) > 0) Label1.ForeColor = System.Drawing.Color.Red; else if (testStr.IndexOf(test2) > 0) Label1.ForeColor = System.Drawing.Color.Blue; Hope it helps:)

    ASP.NET html sysadmin help tutorial

  • change forecolor of a label in gridview [modified]
    C carlecomm

    hi, Here is an example: gridview_OnDataBound(){ Label label1 = e.Item.FindControl("lable1") as Label; Label label2 = e.Item.FindControl("lable2") as Label; if(lable1.Text == "1") { label2.ForeColor = "red"; }else if(lable1.Text == "2"){ label2.ForeColor = "blue"; } } Hope it helps:)

    ASP.NET sysadmin

  • How do you create a query string with JavaScript and access the values in Code Behind
    C carlecomm

    Hi, You can try this: function QueryString(qs) { s = location.href; s = s.replace("?","?&").split("&"); re = ""; for(i=1;i<s.length;i++) { if(s[i].indexOf(qs+"=")==0) { re = s[i].replace(qs+"=",""); } } return re; } then you can do sth to access the pass to anywhere.

    ASP.NET javascript database tutorial question

  • Calling a js function from a different aspx.cs page problem. [modified]
    C carlecomm

    Hi, You can try the code below: Child page: if (!IsPostBack) { CloseButton.Attributes.Add("onclick","return _SetValue();"); } function _SetValue() { var lblRelated = window.opener.document.getElementById('Related'); var lblQuery = document.getElementById('Query'); lblRelated.innerText = lblQuery.innerText; window.close(); } Hope it helps:)

    ASP.NET javascript csharp help 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