13,153 Topics
| |
Hello , I have a Gridview control in which i am having a button (template field) named btnEdit (it is placed in the 2 column of the grid) On the click of this button i want the dropdownlist placed in the 1st column of the Gridview control to be enabled … | |
Has anyone noticed that when you do a "find on this page" in Internet Explorer (7 and 8), which causes the page to scroll down, the onscroll event isn't fired? I have a situation where I need the onscroll event to be fired under those circumstances. Does anyone know a … | |
is there any website where i can find some Linq Excercise.. or you guys can setup a scenario.. | |
The Above Code has Runtime Error. Type ' Product' is not defined. Pls help me.[code]Imports System.Data Partial Class insert Inherits System.Web.UI.Page Private SelectedProduct As Product Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not IsPostBack Then ddl1.DataBind() End If SelectedProduct = Me.GetSelectedProduct() Label1.Text = SelectedProduct.empno … | |
I have create for CrystalReport format in vb.net website Reports. How to create Crystalreport to PDF Format Report. Pls give example coding. | |
Hi I get the error Invalid column name 'MakerID' from my code below. [CODE] <asp:GridView ID="GridView1" AllowSorting="true" AllowPaging="true" runat="server" DataSourceID="SqlDataSource1" AutoGenerateDeleteButton="true" AutoGenerateEditButton="true" DataKeyNames="CamID"AutoGenerateColumns="False"> <Columns> <asp:BoundField Visible="false" ReadOnly="true" HeaderText="ID" DataField="CamID" SortExpression="CamID" /> <asp:BoundField HeaderText="Kamera" DataField="CamName" SortExpression="CamName" /> <asp:BoundField HeaderText="MakerID" DataField="MakerID" SortExpression="MakerID" /> <asp:TemplateField HeaderText="Tillverkare"> <EditItemTemplate> <asp:SqlDataSource SelectCommand="Select * from Maker" ConnectionString="<%$ … | |
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="cart.aspx.vb" Inherits="cart" title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <asp:GridView ID="GridView1" runat="server" BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" ForeColor="Black" GridLines="Vertical" style="z-index: 1; left: 293px; top: 711px; position: absolute; height: 184px; width: 985px" AutoGenerateColumns="False" DataKeyNames="OrderID" DataSourceID="SqlDataSource1"> <Columns> <asp:BoundField DataField="OrderID" HeaderText="OrderID" InsertVisible="False" ReadOnly="True" … | |
Hi folks, I am trying to prevent multiple postbacks from a button. When user clicks the button it becomes disabled but still i end up having multiple entries of same data in the database. Is anything wrong the way I am disabling my button ? [CODE] StringBuilder sbValid = new … | |
hello,plz tell me how to rate a particular video on average bases and after calculating average how to show that in aspx page; [code] protected void ratechange(object sender, AjaxControlToolkit.RatingEventArgs e) { // string k = Rating1.CurrentRating.ToString(); int rate = int.Parse(e.Value.ToString()); Response.Write(e.Value); count++; Session.Add("ratecount", e.Value); Session.Add("countuser", count++); } protected void Advertisedatagrid_ItemCommand(object … | |
Hi all, I am trying to build a ui application with thread for tcp server. I managed to build the tcp server itself using console (giving a welcome message when I telnet it), but when I copy the exact source code in WPF , I can not telnet it. The … | |
hi,i am making a website in which i have included google search engine.i want to write a code for remembering the previously searched keywords ie if user has written 'a' then all his previous searches starting with a must come in textbox.i dont want to use auto complete feature of … | |
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="cart.aspx.vb" Inherits="cart" title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <script runat="server"> Dim TotalUnitPrice As Decimal = 0.0 Function GetUnitPrice(ByVal Price As Decimal) As Decimal TotalUnitPrice += Price Return Price End Function Function GetTotal() As Decimal Return TotalUnitPrice End Function Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, … | |
how to set shortcut keys for button in asp.net? | |
hi iam working on asp.net using c# project...iam facing a problem...the problem is,i had a master page in which iam using collapse panel(ajax control)... in collapse panel i had folders like:- xyz abc def ghi.... and in xyz folder i had some forms.... nw the problem is that i had … | |
Last date value (Next Training ) gets properly inserted but not the rest... any clue? [ICODE] <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/JABILMCALLEN.mdb" DeleteCommand="DELETE FROM [Certifications] WHERE [CertificationID] = ?" InsertCommand="INSERT INTO [Certifications] ([EmployeeID], [TrainingDocID], [StartedTraining], [EndedTraining], [EvalutationType], [TrainedBy], [NextTraining], [Approved]) VALUES (?, ?, ?,?,?, ?, ?, ?)" SelectCommand="SELECT * FROM [Certifications]" UpdateCommand="UPDATE … | |
Hi Friends, I have a user control. what I wanted to do is to find the panel from its parent page. My code is below [ICODE]Dim pnl As Panel = Me.Parent.FindControl("Panel1")[/ICODE] But it returns Nothing. Help me asap. | |
hi guys, i want to give new line after fixed amount of characters(say after every 100 characters) in the textbox.as i have to display my news content which is very large. pl guide me for that.thanks waiting for ur reply. | |
Hello, I need some advice from some of the more expert programmers on what path should I take further in my learning process. I started with PHP and now I can say I do ok, not an expert of course. I like programming very much and I love PHP, it's … | |
Hi All, I think this is my first question here. My web application uses an Access database and I'm getting some strange behaviour which might be related to that. Here's the issue: At the end of processing a users request (during which a lot of calculations are done), a record … | |
I want to apply skins to fckeditor. the code which is with me is as follows ---------------code-------------- FCKeditor1.SkinPath = FCKeditor1.BasePath + "skins/silver/"; but this code doesnt works and no buttons of fckeditor's are visible. | |
I keep getting this error: c:\inetpub\wwwroot\Phoenix\Login.aspx.cs(85): 'Phoenix.WebForm1.DBConnection(string, string)': not all code paths return a value I have already tried putting everything in the DBConnection function to comments but still the problem persisted. This is crucial that i get this working. I have watched examples from the guides in daniweb but … | |
Protected Sub Button5_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button5.Click Dim connection As SqlConnection = New SqlConnection("server=(local); Database = Bookstore; integrated Security=True") Dim CSP As SqlCommand = New SqlCommand() 'Dim Cust As SqlCommand = New SqlCommand() CSP.Connection = connection CSP.CommandText = ("select CusID,CusPassword from CusromerDetail where CusUsername = … | |
Hi I create web site using asp.net,It publish in windows server 2003.when I type URL in internet explore its sows all the aspnet file(.aspx) file,after that I click on default.aspx file,but it wont works,its generate "page cannot found".I tried it in my local machine and server machine,but its that didn't … | |
i'll attach a little snippet: [CODE] comd = New OdbcCommand("INSERT INTO news (new_title, new_content) VALUES (@newTitle, @newContent)", conn) comd.Parameters.Add("@newTitle", OdbcType.Text) comd.Parameters("@newTitle").Value = newsTitle.Text comd.Parameters.Add("@newContent", OdbcType.Text) comd.Parameters("@newContent").Value = FCKeditor1.Value conn.Open() comd.ExecuteNonQuery() Response.Redirect("default.aspx") [/CODE] this code executes, and my database is updated, but the new_title and new_content fields are still NULL. i've … | |
hello guys, i am new with WIZARD. i am usnig 4 WIZARD steps login,profile,education and business. i have four diff. tables in DB namely tbl_login,tbl_profile,tbl_educatio,tbl_business.i have also 4 procedures for the login,profile,education,business to insert the records in DB every time when i click on next in wizard(i have in my … | |
Hi, I'm reasonably new to C# and even newer to WPF projects in C#, i'm having a lot of trouble getting to grips with how to use the template property and its doing m head in. Firstly an explanation of what I am trying to achieve: I am working on … | |
How to Open a webPage in new Tab or new Window in ASP.net(C#)? | |
[CODE] SELECT Customer_Info.CustName,Customer_Info.Address,Customer_Bank_Info.CustChequeNo,Customer_Bank_Info.CustAccountNo from Customer_Info,Customer_Bank_Info WHERE Customer_Info.AgentID=Customer_Bank_Info.AgentID [/CODE] THERE ARE TWO RECRODS ARE AVAILABLE IN Customer_Info TABLE AND TWO RECORDS ARE AVAILABLE IN Customer_Bank_Info BUT WHEN ABOVE QUERY IS EXECUTED IT SHOWS 4 RECORDS IT REPEATS THE QUERY THAT'S WHY SAME RECORDS FROM THESE TABLE ARE RETRIVED FOR TWO TIMES. … | |
Hello, I'm new to ASP.NET. I'm requesting help. I've tried hard but with no result. I want to provide my user a Gridview filled with data from database, allowing him to edit these records not in order to update the database, but in order to insert edited rows in db … | |
hii all i am new in asp.net.i am trying to implement a grid view with all functionalities(insert,update delete). i have successfullly done edit,update and cancel.but not able to insert(new record) in grid view.As soon as i click on insert i get exception as: Exception Details: System.Data.SqlClient.SqlException: Must declare the scalar … |
The End.