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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
S

srishree

@srishree
About
Posts
8
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • regarding reportviewer.....very urgent
    S srishree

    Hi all,i am having a problem populating data using reportviewer.i want to populate the data at runtime dynamically.on my button click event i want to populate the data corresponding to the dropdownlist value.for some reason my button click event gives me an error at ReportViewer1.LocalReport.setparameters(... ).it says "An attempt was made to set a report parameter 'parameter1' that is not defined in this report."below is my code for the button click......i m running a stored proc to populate the reportviewer....i am working on the visual webdeveloper 2005.and sql server 2000.any help would be greatly appreciated... protected void Button1_Click(object sender, EventArgs e) { DataSet ds = new DataSet(); string connstrA = ConfigurationManager.AppSettings["SQLConnectionString"]; SqlConnection myconnectionA = new SqlConnection(connstrA); SqlCommand mycommandA = new SqlCommand("dbo.up_campus_test", myconnectionA); mycommandA.CommandType = CommandType.StoredProcedure; mycommandA.Parameters.Add("@campus", SqlDbType.VarChar, 2).Value = DropDownList1.SelectedItem.Value.ToString(); SqlDataAdapter da = new SqlDataAdapter(mycommandA); da.Fill(ds); ReportViewer1.Visible = true; ReportViewer1.ProcessingMode = ProcessingMode.Local; LocalReport report = ReportViewer1.LocalReport; ReportViewer1.LocalReport.ReportPath = @"C:\Documents and Settings\gradasst\My Documents\My Web Sites\recent\Report\Report.rdlc"; ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSet2_up_campus_test", ds.Tables[0])); ReportViewer1.LocalReport.DataSources.Clear(); ReportParameter param = new ReportParameter(); param.Name = "parameter1"; param.Values.Add(DropDownList1.SelectedValue.ToString()); ReportParameter[] myReportParams = new ReportParameter[] { param }; ReportViewer1.LocalReport.SetParameters(myReportParams); ReportViewer1.LocalReport.Refresh(); } } Thanks in advance...

    hi

    ASP.NET help database sql-server sysadmin

  • update on button click along with validation
    S srishree

    Hi,i had been working on a gridview which has textbox and button controls in the itemtemplate fields and few bound fields.my question is that i need to validate the number entered manually in the textbox is a valid entry or not on the button click attribute of the gridview row.if valid i need to update the data entered in the textbox with the existing value in the database......i wrote a javascript to validate tht the entry is valid,but this checks only for the first row of gridview and fails for all other rows........here is my javascript..... function fn_check(which) { var element_length = which.length; alert(which.gv1$ctl02$TextBox5.name); for (i=0;i

    ASP.NET javascript database question announcement

  • Gridview cross page data transfer
    S srishree

    Hi Priya,tx,for the reply.can u please give me the solution for the above question using c#.and also i need the page load event for the parent. Many Thanks, Harsha

    hi

    ASP.NET question database

  • Gridview cross page data transfer
    S srishree

    I have a gridview with a link in the parent page.when i click on the link it opens up another gridview.this child gridview has 2 columns,one is a checkbox created using an itemtemplate and another a boundfield retreiving data from the database.what i want is when i check the checkbox of a particular row and hit a button,the data existing in that particular row of the child gridview which has been checked,has to transfer the data from that row to the parent gridview,in a sense the parent gridview has to refresh and show up with the new data that has come from the child gridview control.How can i do this?..........urgent..........

    hi

    ASP.NET question database

  • render values from check box and update to database on button click
    S srishree

    yes,the question is in my previous mail,to simultaneously check the chekbox in the cells of cells[7],cells[8],cells[10],cells[11] and then click the checkbox in the itemtemplate to update it to the database. how to do this?

    hi

    ASP.NET question database announcement

  • sending data from child gridview to parent gridview
    S srishree

    I have a gridview with a link in the parent page.when i click on the link it opens up another gridview.this child gridview has 2 columns,one is a checkbox created using an itemtemplate and another a boundfield retreiving data from the database.what i want is when i check the checkbox of a particular row and hit a button,the data existing in that particular row of the child gridview which has been checked,has to transfer the data from that row to the parent gridview,in a sense the parent gridview has to refresh and show up with the new data that has come from the child gridview control.How can i do this?..........urgent..........

    hi

    ASP.NET question database

  • render values from check box and update to database on button click
    S srishree

    Thanks for the reply.but it has not solved my problem completely.i have done similar to what u have replied,but in my case i need to loop through the inner cells of the gridview and as well the rows and check if there is a checkbox at any cell in the gridview,if exists,based upon my requirement i have to click the checkbox in those cells and also check the checkbox in the first column,and then update.what i want is to check the checkbox in the gridview cells and also the checkbox field created using the itemtemplate in the gridview.when i check the cells with checkboxes and then check the checkbox that is existing in the first column of the gridview and click the update button,then the data in the corresponding row should update.....

    hi

    ASP.NET question database announcement

  • render values from check box and update to database on button click
    S srishree

    I have a gridview which contains columns retreived from the database.i have in total 12 columns,in which 4 columns have checkbox's where ever there is a null in the database.i have done tht on the rowdatabound event of gridview dynamically by calling CheckBox cb= new CheckBox(); i also have a checkbox in the first column of the gridview created using an itemTemplate tag of gridview,so tht when we check the corresponding row's checkbox,the values in tht row shall be updated now my question is,i want to check the boxes in the column cells and update those corresponding row values in the database on button click.and also i need the checkbox state to be maintained.......how can i do this?any responses will be appreciated.

    hi

    ASP.NET question database announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups