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

sheringkapoting

@sheringkapoting
About
Posts
11
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to save Ajax CalendarExtender value in a textbox.text
    S sheringkapoting

    Frnds, I have a textbox txtSalaryMonth which displays the value of Ajax CalenderExtender on click of a Image. But when I press Another button btnOK to send the calendarVale as paramenter to Database.. It shows txtSalaryMonth.text as null... My txtSalaryMonth.Readonly = false. My Code is:

    and Java Script is :

        function onCalendarSalShown() 
        {
            var cal = $find("calendar1");
            //Setting the default mode to month
            cal.\_switchMode("months", true);
            //Iterate every month Item and attach click event to it
            if (cal.\_monthsBody) 
            {
                for (var i = 0; i < cal.\_monthsBody.rows.length; i++) 
                {
                    var row = cal.\_monthsBody.rows\[i\];
                    for (var j = 0; j < row.cells.length; j++) 
                    {
                        Sys.UI.DomEvent.addHandler(row.cells\[j\].firstChild, "click", callSal);
                    }
                }
            }
        }
    
        function onCalendarSalHidden()
         {
            var cal = $find("calendar1");
            //Iterate every month Item and remove click event from it
            if (cal.\_monthsBody) 
            {
                for (var i = 0; i < cal.\_monthsBody.rows.length; i++) 
                {
                    var row = cal.\_monthsBody.rows\[i\];
                    for (var j = 0; j < row.cells.length; j++) 
                    {
                        Sys.UI.DomEvent.removeHandler(row.cells\[j\].firstChild, "click", callSal);
                    }
                }
            }
        }
    
        function callSal(eventElement) 
        {
            var target = eventElement.target;
            switch (target.mode) 
            {
                case "month":
                    var cal = $find("calendar1");
                    cal.\_visibleDate = target.date;
                    cal.set\_selectedDate(target.date);
                    cal.\_switchMonth(target.date);
                    cal.\_blur.post(true);
                    cal.raiseDateSelectionChanged();
                    break;
            }
        }
    

    plss Help

    ASP.NET java database design tools help

  • Assigning the SelectedValue of Dropdownlist within Gridview to a datatable field
    S sheringkapoting

    Yes I Get the Values of Text Boxes, The problem lies only in Dropdown List....

    ASP.NET help

  • Assigning the SelectedValue of Dropdownlist within Gridview to a datatable field
    S sheringkapoting

    for (int i = 0; i < dtCurrentTable.Rows.Count; i++)
    {
    //extract the TextBox values
    DropDownList ddlFrequency = (DropDownList)mdlpopupGrid.Rows[rowIndex].Cells[4].FindControl("ddlFrequency");
    drCurrentRow = dtCurrentTable.NewRow();
    dtCurrentTable.Rows[i]["Start_Salary"] = ((TextBox)mdlpopupGrid.Rows[rowIndex].Cells[1].FindControl("txtStartSalary")).Text;
    dtCurrentTable.Rows[i]["End_Salary"] = ((TextBox)mdlpopupGrid.Rows[rowIndex].Cells[2].FindControl("txtEndSalary")).Text;
    dtCurrentTable.Rows[i]["Increament"] = ((TextBox)mdlpopupGrid.Rows[rowIndex].Cells[3].FindControl("txtIncreament")).Text;
    dtCurrentTable.Rows[i]["Frequency"] = ddlFrequency.SelectedValue.ToString();
    rowIndex++;
    }

    This is my Code in Which I assigns the Values of all textboxes & Dropdownlist within mdlpopupGrid into a Datatable... But the Problem is I dont get the Selectedvalue of Dropdownlist to my Datatable dtCurrentTable

    ASP.NET help

  • Showing a single Modal Popup Extender on Click of Multiple Controls.
    S sheringkapoting

    I have a Modal Popup Extender which I show on two different Button click events i.e btnAddNew_Click() & having imgbtnNew as TargetControlID. the problem is I want Two of the Textboxes txtFullName & txtShortName to be Disabled or Visible false on imgbtnNew_Click() Where as Visible True on btnAddNew_Click() Can anyone help....

    ASP.NET help

  • Error: Index was out of range. Must be non-negative and less than the size of the collection
    S sheringkapoting

    Thanks... Its working now...

    ASP.NET help css database

  • Error: Index was out of range. Must be non-negative and less than the size of the collection
    S sheringkapoting

    I have a function in which I bind my Gridview with the Datalist according to the info that i get from the Row in Datalist My Code Behind function is:

    protected void dtlGradeMaster\_ItemDataBound(object sender, DataListItemEventArgs e)
    {
      GridView grdGradeDetails = (GridView)e.Item.FindControl("grdGradeDetails");
      BindDetailGrid(grdGradeDetails, dtlGradeMaster.DataKeys\[e.Item.ItemIndex\].ToStrin()); 
    }
    
    private void BindDetailGrid(GridView GridView, string strGrade) 
    {
        DataTable GridData = GridDataSource(strGrade);
        GridView.DataSource = GridData; 
        GridView.DataBind(); 
    }
    

    But it gives me the Fallowing Error plss help...

    ASP.NET help css database

  • Popultea Gridview Inside Datalist...
    S sheringkapoting

    Sir Actually I didn't got U plss Help

    ASP.NET

  • Popultea Gridview Inside Datalist...
    S sheringkapoting

    I have Datalist with Product Image and Product Name. I would like to populate the gridview with the products detail information like Description and Price By the Side of Product Image in a Gridview

    ASP.NET

  • Every time I click a button in mymodal popup to add new row in Gridview it Disappears
    S sheringkapoting

    I have a Modal popup in my .aspx Page which opens on Click of a Button (btnNew). Modal popup Contains a Gridview with a blankraow added by Default, and a Button (btnAddNew), What I want is I want to add a new row on (btnAddnew) click.. which does so, but the Probem is Modal popup get disappeared. And have to click (btnNew) to pop it ip again,which shows the new row added in Gridview.. I want the Modal popup to remin same untill I save the records. plss Help :(

    Sheringkapoting...

    ASP.NET help

  • Not all code paths return a value
    S sheringkapoting

    Can SARIGÜL wrote:

    insert return null; before the last }

    not working actually I want this Function result to be used as Datatable to fill a Gridview. return null will work

    C# help

  • Not all code paths return a value
    S sheringkapoting
    private DataTable AddNewRowToGrid()
    {
        int rowIndex = 0;
        if (ViewState\["CurrentTable"\] != null)
        {
            DataTable dtCurrentTable = (DataTable)ViewState\["CurrentTable"\];
            DataRow drCurrentRow = null;
            if (dtCurrentTable.Rows.Count > 0)
            {
                for (int i = 1; i <= dtCurrentTable.Rows.Count; i++)
                {
                    //extract the TextBox values
                    drCurrentRow = dtCurrentTable.NewRow();
                    dtCurrentTable.Rows\[i - 1\]\["EffectFrom"\] = ((TextBox)mdlpopupGrid.Rows\[rowIndex\].Cells\[1\].FindControl("txtEffectFrom")).Text;
                    dtCurrentTable.Rows\[i - 1\]\["EffectivePercentage"\] = ((TextBox)mdlpopupGrid.Rows\[rowIndex\].Cells\[2\].FindControl("txtEffectivePercentage")).Text;
                    dtCurrentTable.Rows\[i - 1\]\["Grade\_Salary"\] = ((TextBox)mdlpopupGrid.Rows\[rowIndex\].Cells\[3\].FindControl("txtGradeSalary")).Text;
                    rowIndex++;
                }
                dtCurrentTable.Rows.Add(drCurrentRow);
                ViewState\["CurrentTable"\] = dtCurrentTable;
                return dtCurrentTable;
            }
        }
    }
    

    This code gives me the Fallowing Error: Not all code paths return a value plss Help !!

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