I have written this. theres is some problem. It shows "Convert.ToBoolean(true)". What is the problem? <asp:TemplateField HeaderText="Mode"> <ItemTemplate> <asp:Button runat="server" Text="<%!Convert.ToBoolean(true) %>" CommandName="ToggleClick" CommandArgument=<%#true %>/> </ItemTemplate> </asp:TemplateField> Thank You
Purish Dwivedi
Posts
-
Problem with GridView: How to change the text of Button in a GridView Cell ? -
Problem with GridView: How to change the text of Button in a GridView Cell ?Actually I am using it as a TemplateField. It's value is not coming from database. what can be the solution? Thank You.
-
Problem with GridView: How to change the text of Button in a GridView Cell ?thanks for the reply, but there is something wrong with this code. Can u recheck it plz? Thank You
-
Problem with GridView: How to change the text of Button in a GridView Cell ?How can I show additional button in a gridview cell based on another cell value.I am using asp.net and c#. I have ON or OFF values in a GridView cell. Based on this value I want to show a button (opposite Toggle (OFF/On) correspondingly) in another cell. This is my code. protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.Cells[2].Text== "0") e.Row.Cells[2].Text = "OFF"; else e.Row.Cells[2].Text = "ON"; } please help. Thank You
-
Problem with GridViewthanks for the reply, but a new problem is, that it is changing my column header also. Any help would be appreciated. Thank YOu
-
Problem with GridViewThanks for previous reply. It worked for me. I have ON or OFF values in a GridView cell. Based on this value I want to show a button (opposite Toggle (OFF/On) correspondingly) in another cell. This is my code. protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.Cells[2].Text== "0") e.Row.Cells[2].Text = "OFF"; else e.Row.Cells[2].Text = "ON"; } please help. Thanks...
-
Problem with GridViewthanks
-
Problem with GridViewI have created my webapp in ASP.NET, C# and MS-Access. in Table I have cell value as, 1 and 0. At the time of binding I want to convert it to On and Off respecively. How can I do it? Please help , as I am new to .NET This is my code. private void Binding() { // create the connection OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:/GmoteDeviceControl/App_Data/DeviceCtrl.mdb;User Id=admin;Password=;"); // Open the connection con.Open(); // create the DataSet DataSet ds = new DataSet(); // create the adapter and fill the DataSet OleDbDataAdapter da = new OleDbDataAdapter("Select DEVICE_NAME,CURRENT_STATE from SUBSCRIBER_DEVICES", con); da.Fill(ds); //Binding DataSource with GridView GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); // close the connection con.Close(); } Thank You.
-
Logout problemThanks for the reply. My problem is that: I am maintaining session only in first page(login page). How can I maintain it in other pages? Plz help..
-
Logout problemI am using MS-ACCESS with ASP.NET & C#. To maintain the session my code is. if (ds.Tables[0].Rows.Count > 0) { Session["SUBSCRIBER_USERNAME"] = Login1.UserName; Session["SUBSCRIBER_PASSWORD"] = Login1.Password; } else { Response.Redirect("index.aspx"); } I have 3 other pages in my web application. I have a logout button on all the 3 pages onwhich I want to apply logout coding. How can it be done? Please help. Thanks.
-
Problem with Connection ?I am loading data from Access table into GridView, but it shows nothing in my Web Application after executing. What is wrong int this code?Plz help. This is my connection code. private void Binding() { // create the connection OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:/GmoteDeviceControl/App_Data/DeviceCtrl.mdb;User Id=admin;Password=;"); // Open the connection con.Open(); // create the DataSet DataSet ds = new DataSet(); // create the adapter and fill the DataSet OleDbDataAdapter da = new OleDbDataAdapter("Select * from SUBSCRIBER_DEVICES", con); da.Fill(ds); GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); // close the connection con.Close(); }
-
Could not find installable ISAM.Thanks for the reply. I tried but , but still it shows same error? What should I do? Plz help. Thank You
-
Could not find installable ISAM.I am using ASP.NET 2.0 and MS ACCESS 2007. Connection string is like this. OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;,DataSource=~/DeviceCtrl.mdb"); When I run this application, I get this problem "Could not find installable ISAM." What can be the reason and solution to this? Plz help me. Thank you
-
Help regarding connctivity of GridView with AccessDataSource control?Can u tell me the solution of this problem? I am using GridView control to display data from AccessDataSource. Is it also possible to edit the data in GridView Control while running the application? Can I insert, delete and update data in the databse using these 2 controls? One more thing I want to ask is: I want to add one column in which I want to show a checkbox. and I want to update it while running in database. plz help me as I am a newbie. thanks
-
[Message Deleted]Can u tell me the solution of this problem? I am using GridView control to display data from AccessDataSource. Is it also possible to edit the data in GridView Control while running the application? Can I insert, delete and update data in the databse using these 2 controls? One more thing I want to ask is: I want to add one column in which I want to show a checkbox. and I want to update it while running in database. plz help me as I am a newbie. thanks
modified on Tuesday, October 27, 2009 3:13 AM
-
[Message Deleted][Message Deleted]
-
Error: Exactly one <sitemapnode> element is required directly inside the <sitemap> element.</sitemap></sitemapnode>I removed that problem with the help of p2p.wrox.com. But now one more problem is that it is not showing all the menu items. How can I resolve this issue? Can u help me as i'm a beginner plz?
-
Error: Exactly one <sitemapnode> element is required directly inside the <sitemap> element.</sitemap></sitemapnode>I have already seen that solutions and even made the changes as well. But it doesn't solve my problem. Can u help me out? Thanks?
-
Error: Exactly one <sitemapnode> element is required directly inside the <sitemap> element.</sitemap></sitemapnode>I have created Web.sitemap file. <?xml version="1.0" encoding="utf-8"?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0"> <siteMapNode title="Home" description=""> </siteMapNode> <siteMapNode title="Products And Services" description=""> </siteMapNode> <siteMapNode title="Clients" description=""> </siteMapNode> <siteMapNode title="ContactUs" description=""> </siteMapNode> </siteMap> When I run this web application, it shows following error. Exactly one <siteMapNode> element is required directly inside the <siteMap> element. Plz help me to solve this problem.
-
how to load swf files in ASP.NETbut I want to load swf file in a table in my aspx page. how can I do it? Plz help me?