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
S

suzzain

@suzzain
About
Posts
24
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • check box in datagrid
    S suzzain

    Hi all, I have checkboxes in datagrid to select and a delete button outside the datagrid to delete the checked row in datagrid. After checking the check box and clicking the delete button, in the btndelete_Click im finding the check box in the datagrid and deleting the particular record, but im getting the checked false in the btndelete_Click of the datagrid checkbox which is checked. Please tell me why it is so and how can i find the checkbox of datagrid is checked or not in button click. The code is below:

    protected void btnDelete_Click(object sender, EventArgs e)
    {
    foreach (DataGridItem DemoGridItem in grid.Items)
    {
    CheckBox oCheckbox = (CheckBox)DemoGridItem.Cells[1].FindControl("chkDelete");
    HiddenField hidImageName = (HiddenField)DemoGridItem.Cells[1].FindControl("hdnItem");
    if (oCheckbox.Checked == true)
    {

                try
                {
                    Delete code;
                }
                catch( Exception e)
                {
    
                }
            }
        }
    

    }

    Thanks in advance for ur help.

    ASP.NET css help question

  • Use of save in FCK editor
    S suzzain

    Please tell me whats the use of save icon in FCK editor

    ASP.NET

  • Application Begin request is not getting called
    S suzzain

    Hi all, I have created menu controls with the help of <code><ul><li><a></code> tag. The url page defined in the href attribute of anchor tag does not actually exist in the application directory instead, it comes from database and the logic for it is written in the application begin request event in global.asax.cs. but this event is getting called only once and is not getting fired whenever any menu is clicked. Please tell what could be the reason for it. If this event will not be called dynamic pages will not be created. Please help me.

    ASP.NET database help

  • Error in Executing application from localhost
    S suzzain

    Thanks for your suggestion. I have forgotten to do this. Thank u again

    ASP.NET help question

  • Error in Executing application from localhost
    S suzzain

    yes I have put it under Default website.

    ASP.NET help question

  • Error in Executing application from localhost
    S suzzain

    I have done this but still im getting the error.

    ASP.NET help question

  • Error in Executing application from localhost
    S suzzain

    Hi all, When Im trying to execute my page through localhost like this http://localhost/default.aspx im getting the following error HTTP 403.1 Forbidden: Execute Access Forbidden Internet Information Services. Please tell me what are the possible causes and how my page can execute?

    ASP.NET help question

  • Dynamic menu item
    S suzzain

    hi im not getting any errors but im not getting the menus displayed. data is coming from database. xml with relation is generated. But im not getting the menus

    ASP.NET xml database sysadmin help question

  • Dynamic menu item
    S suzzain

    Hi all, I have to create dynamic menus that are coming from database. Im using asp:menu control , xmldatasource and xslt file. But im not getting the menus on my page. Can anyone help me where im wrong and what should i do/ I code used is: CODE IN .ASPX <asp:Menu ID="Menu1" DataSourceID="xmlDataSource" runat="server" DynamicHorizontalOffset="2" StaticDisplayLevels="1" Orientation="Horizontal" ItemWrap="false" DynamicEnableDefaultPopOutImage="False" StaticEnableDefaultPopOutImage="False" > <DataBindings> <asp:MenuItemBinding DataMember="MenuItem" NavigateUrlField="NavigateUrl" TextField="Text" /> </DataBindings> <StaticMenuItemStyle CssClass="popup" /> <DynamicHoverStyle CssClass="popup" /> <DynamicMenuStyle CssClass="popupd" /> <DynamicSelectedStyle CssClass="popup" /> <DynamicMenuItemStyle CssClass="popupd" /> </asp:Menu> <asp:XmlDataSource ID="xmlDataSource" TransformFile="~/TransformXSLT.xsl" XPath="MenuItems/MenuItem" EnableCaching="false" runat="server"/> CODE IN ASPX.CS protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { bindMainMenu(); } } private void bindMainMenu() { SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["cs"].ConnectionString.ToString()); SqlCommand comm = new SqlCommand(); SqlDataAdapter da = new SqlDataAdapter(); DataSet ds = new DataSet(); conn.Open(); comm.Connection = conn; comm.CommandType = CommandType.StoredProcedure; comm.CommandText = "getMenuItems"; da.SelectCommand = comm; da.Fill(ds); ds.DataSetName = "Menus"; ds.Tables[0].TableName = "Menu"; DataRelation relation = new DataRelation("id", ds.Tables["Menu"].Columns["nodeid"], ds.Tables["Menu"].Columns["parentid"], true); relation.Nested = true; ds.Relations.Add(relation); xmlDataSource.Data = ds.GetXml(); comm.Cancel(); conn.Close(); } TransformXSLT.xsl file is &lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; &lt;xsl:output method="xml" indent="yes" encoding="utf-8" /&gt; &lt

    ASP.NET xml database sysadmin help question

  • Google inner search in website
    S suzzain

    Yes u r right my reply was "I want to place google search in my web application" that's I want google searching in my web site.

    ASP.NET

  • Google inner search in website
    S suzzain

    Hi I did as u hv told. It is opening the google search results. Bt hw can I use it in my web application for searching in my site??

    ASP.NET

  • Google inner search in website
    S suzzain

    Hi, It is also not working. Im unable to know whwt im missing?? Do I need to add anythingelse??

    ASP.NET

  • Google inner search in website
    S suzzain

    Hi, I have used the code bt im nt getting anything. If im missing something??

    ASP.NET

  • Google inner search in website
    S suzzain

    I want to place google search in my web application

    ASP.NET

  • Google inner search in website
    S suzzain

    Hi all, Can anyone tell me how I can put Google inner search in my website. thank u in advance.

    ASP.NET

  • Problem in storing image in database
    S suzzain

    Hi all, I am saving an image in database in the image field but the image is getting saved in hexadecimal form inspite of the field defined as image type. When im trying to show the image through asp.net code im getting an error. Please help me how i can store the image in database and show it.

    ASP.NET help csharp asp-net database

  • javascript for slideshow is not working in firefox
    S suzzain

    Hi Navaneeth , Thanks for giving this idea. i have installed the debugger bt im unable to debug my javascript. My javascript is on the aspx page and is called on body's onload event. How ill debug it.

    ASP.NET javascript data-structures tools help question

  • Object reference not set to an instance of an object wen the cookie has no value
    S suzzain

    before retrieving the value from cookie check if ur cookie is not null

    ASP.NET

  • javascript for slideshow is not working in firefox
    S suzzain

    Hi I want to make slideshow of four images. The javascript for slideshow is <script language="JavaScript" type="text/javascript"> var slideShowSpeed = 5000; var crossFadeDuration = 3; var Pic = new Array(); var PicUrl = new Array(); var PicCaption = new Array(); Pic[0] = 'images/image1.jpg'; Pic[1] = 'images/image2.jpg'; Pic[2] = 'images/image3.jpg'; Pic[3] = 'images/image4.jpg'; PicUrl[0] = '#'; PicUrl[1] = '#'; var PageNav='#'; var m_intTimeOut; var j = 0; var m_intArrayLen = Pic.length; var preLoad = new Array(); for (i = 0; i < m_intArrayLen; i++) { preLoad[i] = new Image(); preLoad[i].src = Pic[i] } function runSlideShow(){ if (document.all){ document.images.SlideShow.style.filter="blendTrans(duration=2)"; document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"; document.images.SlideShow.filters.blendTrans.Apply(); } document.images.SlideShow.src = preLoad[j].src; PageNav=PicUrl[j]; if (document.all){ document.images.SlideShow.filters.blendTrans.Play(); } j = j + 1; if (j > (m_intArrayLen-1)) j=0 m_intTimeOut = setTimeout('runSlideShow()', slideShowSpeed); } function pg_nav() { window.location.href=PageNav; } </script> In the body I have called the runslideshow function. <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="runSlideShow();"> The images are displayed in the image tag with id=” SlideShow” <td><a href="states.aspx?page=1"> <img src="images/image1.jpg" name="SlideShow" id="SlideShow" width="579" height="145" border="0" alt=""/></a></td> This code is running fine in internet explporer but not working in firfox. Please help me.

    ASP.NET javascript data-structures tools help question

  • Gridview Display When no data to bound
    S suzzain

    Hi, I have a gridview and I have used Footer template to insert data. When there is no data returned from select method of object datasource The empty data text is displayed and nothing displays. I want that when there is no data then atleast the footer templates should be displayed so that new record can be inserted. How can i do this. Please help...

    ASP.NET wpf 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