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
F

For_IT

@For_IT
About
Posts
61
Topics
44
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to disable the TreeNode checkbox's tooltip of treeview control
    F For_IT

    Hi all I want to disable the TreeNode tooltip of the treeview control. I have a user control which I load into asp.net wizard. I create the nodes dynamically. I tried with windows.attachEvent() but I found that the specified treeview object is not available onLoad. Is there any way I can set the disable the treenode checkbox's tooltip at server side? Or is it possible to set the mouseover event for the checkbox of tree node? Please guide me. any other suggestions are also welcome.

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

  • Regular expression for valid time format (hr:min:sec) entered by user in text box
    F For_IT

    Thanks for the information. I have following regular expression to check HH:MM:SS format of the text box.

    ^([0-1]?[0-9]|2[0-3]):([0-5]?[0-9]):([0-5]?[0-9])$

    I would like to give the flexibility to the user to enter the data in MM:SS format too. I was trying to modify the above regular expression to validate for the MM:SS format too. but didnt get the success. can anyone please help me to build the regular expression to allow user to enter data in HH:MM:SS and MM:SS format too. Thanks a lot.

    ASP.NET css regex tutorial

  • how to close/hide the popup onmouseout event
    F For_IT

    Hi all, I have created helptooltip usercontrol and using it on my other controls and pages. aspx is

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HelpTooltipButton.ascx.cs" Inherits="Controls.HelpTooltipButton" %>
    <asp:ImageButton ID="TooltipButton" runat="server" Height="19px" Width="19px" ImageUrl="~/Images/HelpIcon_sm.gif" />

    the code behind is :

      protected override void OnPreRender(EventArgs e)
        {
            this.TooltipButton.TabIndex = 1000;
            functionScript = new System.Text.StringBuilder("showPopup('" + Content + "','" + Title + "','" + TooltipButton.ClientID + "');return false;");
            TooltipButton.OnClientClick = functionScript.ToString();
            TooltipButton.CausesValidation = ButtonValidator;
        }
    

    This control is being used in other user controls. In my main aspx page, I have used multiview control, to use for tabstrip. when I am on one tab, and if help button is clicked, helptooltip opens. without closing that tooltip if I move to other tab, the tooltip is still open. I would like to close that popup when I move from one tab to other. I tried to use mouseover and mouseout events for the tooltip as:

    protected override void OnPreRender(EventArgs e)
    {
    if ((TEAMAppConstants.m_AppMode == TEAMAppConstants.AppMode.AdminPages) && (TEAMAppConstants.SelectedUseCase == TEAMAppConstants.DASHBOARD_STATUS))
    {
    return;
    }
    this.TooltipButton.TabIndex = 1000;
    functionScript = new System.Text.StringBuilder("showPopup('" + Content + "','" + Title + "','" + TooltipButton.ClientID + "');return false;");
    // TooltipButton.OnClientClick = functionScript.ToString();
    TooltipButton.Attributes.Add("onmouseover", functionScript.ToString());
    TooltipButton.Attributes.Add("onmouseout", "hidePopup('" + TooltipButton.ClientID.ToString() + "');");
    TooltipButton.CausesValidation = ButtonValidator;
    }

    here, onmouseover tooltip opens, but on mouseout I javascript exception as object not found. can anyone please suggest me, how can I handle onmouseout event to close the already opened tooltip help? Many thanks.

    ASP.NET question csharp javascript winforms sysadmin

  • Regular expression for valid time format (hr:min:sec) entered by user in text box
    F For_IT

    Thanks for reply. I have regular expression validator, but wanted to have the regular expression to check user input in HH:MM:SS format. I am using, regular expression ^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$

    ASP.NET css regex tutorial

  • Regular expression for valid time format (hr:min:sec) entered by user in text box
    F For_IT

    Hi all I have a text box, which will take input from user in hr:min:sec format. I would like to verify: 1. User enters the in correct format, 2. I would like to verify of the values are correct, e.g. for hrs < 24, for mins it should be less than 60 and simillarly for sec should be less than 60. or is there any way, that I can set the text box to take user input as hrs:min:sec format. pls guide me. thanks

    ASP.NET css regex tutorial

  • Slider extender error: "htmlfile: Unspecified error"
    F For_IT

    Hi all I have an user control where I use Slider Extender from asp.net ajax control toolkit. This Control is loaded into update panel in the aspx page. When I drag the slider sometimes I get an error "htmlfile: Unspecified error" in ScriptResource.axd. This error occurs on the line var clientRects = element.getClientRects(); This error is not repeatative too. Sometimes this error occurs. Has anyone come across this issue ? how can I resolve this? thanks in advance

    ASP.NET help question csharp asp-net announcement

  • check box click server side event not working once validation summary is displayed
    F For_IT

    Hi all I have a user control with textbox fields to enter the address. If the fields are empty, the validation summary will be displayed. There is one checkbox on the control to fill up the text boxes if it is checked in. When the validation summary is available on the page, and I click on the checkbox, to automatically fill the text boxes, it does not work. Server side event is not getting fired when I check and uncheck the checkbox for the first time when validation summary is available on page. I added, client side to event to CheckBox and then called __doPostBack event from the javascript. But postback is not happening. I have following javascript

    function OnCheckClick()
    {
    __doPostBack('SameAddressCheckBox','');

    }

    When I used the above script on "onclick" event of checkbox, after validation summary appears on page, when I try to check in the checkbox, validation summary goes away, but the checkbox is not getting checked in and server side event is also not called. can anyone please suggest some thing so that postback can happen and will call serverside event. Many thanks.

    ASP.NET javascript sysadmin tools

  • print dialog pop up window, On click "Print" does not open the Print dialog box
    F For_IT

    Hi, I have a javascript which I register on click of link button, using ScriptManager. My link button is in update panel, the link button click code is:

    protected void lnkButton_Click(object sender, EventArgs e)
    {
    StringBuilder sb = new StringBuilder();
    sb.AppendLine(" var popup = window.open( '','popup','toolbar=no,menubar=no,scrollbars=1,width=750,height=800');");
    sb.AppendLine("popup.document.write('<html><head>');");
    sb.AppendLine("popup.document.write('<title>Configurations for ACA</title>');");
    sb.AppendLine("popup.document.write('</head><body>');");
    sb.AppendLine("popup.document.write('<div id=\"lnk\" class=\"noprint\" style=\"text-align:right\">');");
    sb.AppendLine("popup.document.write('<a href=\"#\" onclick=\"window.print();return false;\">Print</a>');");
    sb.AppendLine("popup.document.write('<a href=\"#\" onclick=\"window.close();return false;\">Close</a>');");
    sb.AppendLine("popup.document.write('</div>');");
    sb.AppendLine("popup.document.write('<table border=1px style=width:500px; margin-left:100px; margin-top:50px; border-color:Maroon; >');");
    sb.AppendLine("popup.document.write('<tr><td>');");
    sb.AppendLine("popup.document.write('This is my string');");
    sb.AppendLine("popup.document.write('</td><td>')");
    sb.AppendLine("popup.document.write('This is my string');");
    sb.AppendLine("popup.document.write('</td></tr></table>');");
    sb.AppendLine("popup.document.write('</body></html>');");
    ScriptManager.RegisterClientScriptBlock(this.GetType(), "OpenWindow", sb.ToString(), true);
    }

    WHen I click on "print",window.print() do not pop uo printer selection dialog box. When I click on "close", it closes the window. Can anyone please suggest what is wrong in the javascript ? Many thanks.

    ASP.NET question javascript html announcement

  • accordion header style missing in IE6
    F For_IT

    Hi all I am using Accordion Ajax extender tool in my user control. There are around 5 panes and each pane loads usercontrol at the page load. I have applied following style to the accordion header using style sheet class.

    .accordionHeader
    {
    border: 1px solid #0063A0;
    color: white;
    background-color: #002B55;
    font-family: Arial, Sans-Serif;
    font-size: 10px;
    font-weight: bold;
    padding: 5px;
    margin-top: 3px;
    cursor: pointer;

    }

    <cc1accordian:Accordion ID="ntAccordion" runat="server" SelectedIndex="0" CssClass="accordionStyle"
    HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected"
    ContentCssClass="accordionContent" FadeTransitions="false" FramesPerSecond="40"
    TransitionDuration="250" AutoSize="None" RequireOpenedPane="false" SuppressHeaderPostbacks="true">
    <Panes>
    <cc1accordian:AccordionPane ID="apane1" runat="server">
    <Header>
    <asp:Label ID="lblSpeed" runat="server" Style="position: relative" Text="Header One"
    CssClass="labelfont"></asp:Label>
    </Header>
    <Content> .... </Content>

    This style is applied correctly when page is loaded into IE7, but in IE6, there is no style applied. Has anyone experienced this problem before? Please help me

    ASP.NET help sysadmin architecture question

  • Pop up print window on button click
    F For_IT

    Thank you very much, this was helpful. I have another problem now: When I click on "Print" on pop up window, it does not open Print dialog box. When I wrote the client side javascript, it does open Print dialog box with printer listed. Can anyone please what improvement should be done in the code? my code now look like

    protected void lnkButton_Click(object sender, EventArgs e)
    {
    StringBuilder sb = new StringBuilder();
    sb.AppendLine(" var popup = window.open( '','popup','toolbar=no,menubar=no,scrollbars=1,width=750,height=800');");
    sb.AppendLine("popup.document.write('<html><head>');");
    sb.AppendLine("popup.document.write('<title>Configurations for ACA</title>');");
    sb.AppendLine("popup.document.write('</head><body>');");
    sb.AppendLine("popup.document.write('<div id=\"lnk\" class=\"noprint\" style=\"text-align:right\">');");
    sb.AppendLine("popup.document.write('<a href=\"#\" onclick=\"window.print();return false;\">Print</a>');");
    sb.AppendLine("popup.document.write('<a href=\"#\" onclick=\"window.close();return false;\">Close</a>');");
    sb.AppendLine("popup.document.write('</div>');");
    sb.AppendLine("popup.document.write('<table border=1px style=width:500px; margin-left:100px; margin-top:50px; border-color:Maroon; >');");
    sb.AppendLine("popup.document.write('<tr><td>');");
    sb.AppendLine("popup.document.write('This is my string');");
    sb.AppendLine("popup.document.write('</td><td>')");
    sb.AppendLine("popup.document.write('This is my string');");
    sb.AppendLine("popup.document.write('</td></tr></table>');");
    sb.AppendLine("popup.document.write('</body></html>');");

        Page.ClientScript.RegisterStartupScript(this.GetType(), "OpenWindow", sb.ToString(), true);
    }  
    

    Many thanks...

    ASP.NET question html debugging workspace

  • Pop up print window on button click
    F For_IT

    Hi all I am implementing print configuration functionality on button click: I am using following code:

    protected void lnkButton_Click(object sender, EventArgs e)
    {

        StringBuilder sb = new StringBuilder();
        sb.AppendLine(" var popup = window.open( '','popup','toolbar=no,menubar=no,scrollbars=1,width=750,height=800');");
        sb.AppendLine("popup.document.write('debugger');");
        sb.AppendLine("popup.document.write('<html><head>');");
        sb.AppendLine("popup.document.write('<title>Configurations for ACA</title>');");
        sb.AppendLine("popup.document.write('</head><body>');");
        sb.AppendLine("popup.document.write('<div id='lnk' class='noprint' style='text-align:right'>');");
        sb.AppendLine("popup.document.write('<a href='# onclick='window.print();return false;'>Print</a>');");
        sb.AppendLine("popup.document.write('<a href='#' onclick='window.close();return false;'>Close</a>');");
        sb.AppendLine("popup.document.write('</div>');");
        sb.AppendLine("popup.document.write('<table border=1px style=width:500px; margin-left:100px; margin-top:50px; border-color:Maroon; >');");
        sb.AppendLine("popup.document.write('<tr><td>');");
        sb.AppendLine("popup.document.write('This is my string');");
        sb.AppendLine("popup.document.write('</td><td>')");
        sb.AppendLine("popup.document.write('" + MyString + @"');");
        sb.AppendLine("popup.document.write('</td></tr></table>');");
        sb.AppendLine("popup.document.write('</body></html>');");
    
        Page.ClientScript.RegisterStartupScript(this.GetType(), "OpenWindow", sb.ToString(), true);
    }
    

    when I am executing this code, I am getting an exception on line sb.AppendLine("popup.document.write('<div id='lnk' class='noprint' style='text-align:right'>');"); Can anyone please give me suggestion what is wrong? Many thanks.

    ASP.NET question html debugging workspace

  • CSS 2.1 is not applying in IE6
    F For_IT

    Hi all I am developing the web application where I have used CSS classes for HTML and asp.net server controls. when I am opening the application in IE7, style are applied correctly. But when I am opening an application in IE6 there is no style applied. I am using IE6 with SP1 and CSS 2.1 . Can anyone please help me to know if I need to install any other fixes so that styles will be applied to the application when opened in IE6? Many thanks in advance.

    ASP.NET csharp html css asp-net wpf

  • open new window from server side on button click
    F For_IT

    Hi all, I would like to open new window on button click from sever side and write HTML content to it. I have written following code but this writes the HTML content to the main window instead of the new opened window.

    protected void btnClick_Click(object sender, EventArgs e)
    {
    Response.Write("<SCRIPT LANGUAGE=\"JavaScript\">\n");
    Response.Write("window.open( '','popup','toolbar=no,menubar=no,scrollbars=1,width=750,height=800')");
    Response.Write("</script>");
    Response.Write("<html><head>");
    Response.Write("</head><body>");
    Response.Write("<div id='lnk' class='noprint' style='text-align:right'>");
    Response.Write("<a href='#' onclick='window.print();return false;'>Print</a>&nbsp");
    Response.Write("<a href='#' onclick='window.close();return false;'>Close</a>");
    Response.Write("</div>");
    Response.Write("<div id='printv' class='print'>");
    Response.Write("This is test");
    Response.Write("</div>");

    }
    

    can anyone please suggest me how can I achieve this? Thanks a lot.

    ASP.NET question javascript html sysadmin tools

  • dynamically changing assembly
    F For_IT

    Hi everyone, I was asked following question, if anyone knows can u pls tell me 1. The assembly has been updated from version 1.0 to 2.0. The latest assembly 2.0 has some problem, it is required that application should use old assembly. How can we make the application to use old versioned assembly dynamically? 2. while developing a web application what factors should be considered with respect to no of ppl access the same application at a time? 3. When a http request is received by IIS serever, it checks if the page is .aspx and passes to aspnet_is.dll engine. How IIS server detects aspx page? if I have a .html page, and I change the file extension to .aspx, will this page process by IIS server to aspnet_is.dll? Thanks and regards

    C# question html asp-net sysadmin windows-admin

  • why multiple class inheritance is not supported in C# .NET
    F For_IT

    Hi all can someone pls tell me why multiple class inheritance is not supported in C#.net? thanks

    C# csharp oop question

  • file upload control
    F For_IT

    Hi all I want suggestions on following scenario 1.I have a image control on the web page. 2. I have FileUpload control 3. Button control to upload file to server When user will select a .jpg file using file upload control, I want to display that image in the image control. Once user is satisfied with the image, he will upload it to server by clicking on Button control. I have tried by implementing all events of FileUpload to refresh image control with the user selected image, but nothing worked out. can anyone pls guide me how can I refresh image control when user will select the file using file upload control. Thanks a lot.

    ASP.NET sysadmin tutorial question

  • how to get url on menu item click
    F For_IT

    Hi all I am using following menu.xml. On menu item click I want to know the "Url" value corresponding to the node clicked on. I am using following code, url = XmlMenuSource.GetXmlDocument().SelectSingleNode( String.Format("//MenuItem[@Value={0}]/MenuItem[@Value={1}]", MainMenu.SelectedItem.ValuePath.Split(@"/".ToCharArray())[0], MainMenu.SelectedItem.ValuePath.Split(@"/".ToCharArray())[1]) ).Attributes["Url"].Value; but this code fails when I click on "Warenkorb". can anyone pls suggest me how can i do it? Thanks in advance.

    ASP.NET question xml tutorial

  • ASP.NET login and password recovery control
    F For_IT

    Hi all, I am trying to create login and password recovery page ASP.NET2.0. I have user login and password stored in table in the database. I am using Login and password recovery controls. I am handling "Authenticate" event of login control. During the password recovery, I generate new password and send email to the user at specified address. To handle this which event of passwordprecovery should be handled? I have handled SendingEmail event, but when I checked in debug, I found that control does not go there on ButtonSubmit click. Can anyone suggest me, how can I do this. If someone has demo on this, that will be really helpful. Thanks a lot.

    ASP.NET question csharp asp-net database debugging

  • Data Binding to textbox
    F For_IT

    Hi how can I bind the data to textbox using ASP.NET inline coding? I have implemented data binding to dropdownlist... likewise I want to do data binding to TextBox too.. can someone please guide me? Thanks in advance.

    ASP.NET question csharp asp-net wpf wcf

  • stored procedure Output parameter value is Null
    F For_IT

    I changed the code as follows ALTER PROCEDURE [dbo].[GetUserControlTemplateCode] @product_id int, @genmask_code nvarchar(max) output AS BEGIN SET NOCOUNT ON; Declare @product_type int Select b.product_type, @genmask_code=dbo.cp_genmask.genmask_code from dbo.cp_genmask as a inner join dbo.cp_product as b on a.genmask_product_type=b.product_type where b.product_id=@product_id END I executed this code using using exec GetUserControlTemplateCode 1, @genmask_code output print @genmask_code It gives me message as command executed successfully, but I can not see any data in output window. Again when I call this procedure from code behind code it shows null value... Please suggest where I am wrong.

    Database database com 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