I dnt knw what code is to be written inside the row editing event...i had read in sme other article that just enabling the row_editing event will be sufficient....
Here my datasource is datatable..and the gridview rows are databound..is it needed to convert those rows to some controls like textbox to enable edit property?
For that Edit Property To Work .U need to use data source i.e. sqldatasource ,then it will work .Otherwise if u r binding data source programmatically then u need to use code and templates to databind u can the following link to do programmatically
Style sheet design cant be seen in your design page . It will be applied only when the page gets executed. I don't know how to have seen the design of style sheet in your design view. Nothing wrong in your registration with the master page. Post more codes to get clarification.
What are you putting in the head place holder? Is the / missing from the end of <asp:content id="Content1" contentplaceholderid="head" runat="server"> due to a cut and paste issue or is it missing from your page as well?
i have html table with some data.......now i want collect the data from this html table and then send the all data to the server-side through page method.
My logic is that in for-loop collect all data from html table and put in hashtable and then add this hashtable in an arraylist and then send this arraylist to server side.
Can anybody solve my problem?
I m trying to use a modal popup extender, dynamically in my code in event calendar.
And event calendar is a 3rd party tool, I only have dll for that.
So I have to paas all data in data table to add in event calendar.
That's why I m trying to do this.
I am having a GridView paging done using Object data source.
I want to calculate the sum of records of a column.
First I need to find out values if ID = 1 sum all IDS with 1, if ID=2 sum all IDS with 2 and Display. I am able to do it
but when i move to next page my label looses its value while rendering.
I got teh solution for the problem. I am usin Update Panel which gives inconsistent behaviour while postback.
SO before closing Update Panel for gridView we need to give
this PostBack Trigger
Hi. I'm rather new to asp.net and even more so in crystal. Basically this is the first time I'm using this. What I need to do is prepare a report from a dynamically created dataset(untyped if you will). I have read a lot of articles online but haven't been able to make it work. Basically the table that i want to display in crystal doesn't exist in database and was created programmatically as a DataTable
The data simply doesn't display.Here's the code in codebehind:
Protected Sub CrystalReportViewer1_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles CrystalReportViewer1.Init
Dim rpt As New ReportDocument
CrystalReportViewer1.ReportSource = rpt
Please note that the dataset is populated correctly as i can see it in a gridview. CrystalReport1.rpt uses the same schema as Tab1 but using a dataset included at design time called "DataSet1".
Here is the code for how this dataset was created:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim mysqlDad As MySqlDataAdapter
Dim mysqlConn As MySqlConnection
Dim query As String = "" 'some select query that returns 2 rows.
Dim connstring As String = "Database=ocsweb;Data Source=10.135.158.160;User Id=abc;Password=abc"
dset = New DataSet("Home")
mysqlConn = New MySqlConnection(connstring)
mysqlDad = New MySqlDataAdapter(query, mysqlConn)
Dim Dt As New DataTable("Tab1")
Dim col1 As New DataColumn("Unchecked")
Dim col2 As New DataColumn("Checked")
Dim dr As DataRow = Dt.NewRow()
dr.Item(0) = dset.Tables("Tab1_tmp").Rows(0).Item(0)
dr.Item(1) = dset.Tables("Tab1_tmp").Rows(1).Item(0)
catch ex as exception
If there is something else that can/needs to be done, please let me know. I'm very new and could surely use some help here.