Click here to Skip to main content
16,006,440 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow to make template Pin
nabeelkhan24-Jun-06 2:47
nabeelkhan24-Jun-06 2:47 
QuestionHow to Create shortcut in Websetup Pin
Parvai24-Jun-06 1:21
Parvai24-Jun-06 1:21 
AnswerRe: How to Create shortcut in Websetup Pin
minhpc_bk24-Jun-06 13:16
minhpc_bk24-Jun-06 13:16 
AnswerRe: How to Create shortcut in Websetup Pin
cloudking1196629-Jun-06 1:35
cloudking1196629-Jun-06 1:35 
QuestionThis is a marker file generated by the precompilation tool, and should not be deleted! Pin
god4k24-Jun-06 1:01
god4k24-Jun-06 1:01 
AnswerRe: This is a marker file generated by the precompilation tool, and should not be deleted! Pin
Guffa24-Jun-06 1:22
Guffa24-Jun-06 1:22 
Questioninsert and update in formview along deopdownlist (argent) Pin
rajeev kumar sharma24-Jun-06 1:00
rajeev kumar sharma24-Jun-06 1:00 
AnswerRe: insert and update in formview along deopdownlist (argent) Pin
minhpc_bk24-Jun-06 13:08
minhpc_bk24-Jun-06 13:08 
Below is a quick example to demonstrate what you might want to do with the Northwind database.
<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:FormView ID="FormView1" runat="server" DataKeyNames="ProductID" DataSourceID="SqlDataSource1"
            DefaultMode="Edit">
            <EditItemTemplate>
                ProductID:
                <asp:Label ID="ProductIDLabel1" runat="server" Text='<%# Eval("ProductID") %>'></asp:Label><br />
                Category:
                <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource2"
                    DataTextField="CategoryName" DataValueField="CategoryID" SelectedValue='<%# Bind("CategoryID") %>'>
                </asp:DropDownList><br />
                ProductName:
                <asp:TextBox ID="ProductNameTextBox" runat="server" Text='<%# Bind("ProductName") %>'></asp:TextBox><br />
                <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
                    Text="Update"></asp:LinkButton>
                <asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel"
                    Text="Cancel"></asp:LinkButton>
            </EditItemTemplate>
        </asp:FormView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
            SelectCommand="SELECT [ProductID], [CategoryID], [ProductName] FROM [Products]"
            UpdateCommand="UPDATE [Products] SET [CategoryID] = @CategoryID, [ProductName] = @ProductName WHERE [ProductID] = @ProductID">
            <UpdateParameters>
                <asp:Parameter Name="CategoryID" Type="Int32" />
                <asp:Parameter Name="ProductName" Type="String" />
                <asp:Parameter Name="ProductID" Type="Int32" />
            </UpdateParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
                    SelectCommand="SELECT [CategoryID], [CategoryName] FROM [Categories]"></asp:SqlDataSource>    
    </div>
    </form>
</body>
</html>

Questionplz help me????? [modified] Pin
nabeelkhan23-Jun-06 20:48
nabeelkhan23-Jun-06 20:48 
GeneralRe: plz help me????? Pin
_AK_25-Jun-06 19:09
_AK_25-Jun-06 19:09 
QuestionHow To Manage Record Pin
sachinthamke23-Jun-06 20:31
sachinthamke23-Jun-06 20:31 
Questionproblem Pin
amaneet23-Jun-06 19:34
amaneet23-Jun-06 19:34 
AnswerRe: problem Pin
Tirthadip23-Jun-06 22:34
Tirthadip23-Jun-06 22:34 
AnswerRe: problem Pin
Nagraj Naik23-Jun-06 22:47
Nagraj Naik23-Jun-06 22:47 
QuestionHey guys , how to handle a textchanged event Pin
Mohammed Amine23-Jun-06 13:12
Mohammed Amine23-Jun-06 13:12 
AnswerRe: Hey guys , how to handle a textchanged event Pin
Nagraj Naik23-Jun-06 19:29
Nagraj Naik23-Jun-06 19:29 
QuestionHow to Get the Id of a Dynamically Generated Table in CS file. [modified] Pin
antontj23-Jun-06 9:39
antontj23-Jun-06 9:39 
Questionpassing variable through multiple pages Pin
leckey23-Jun-06 8:34
leckey23-Jun-06 8:34 
AnswerRe: passing variable through multiple pages Pin
Not Active23-Jun-06 9:27
mentorNot Active23-Jun-06 9:27 
GeneralRe: passing variable through multiple pages Pin
leckey23-Jun-06 9:32
leckey23-Jun-06 9:32 
QuestionThe ongoing blank datagrid saga Pin
leckey23-Jun-06 4:59
leckey23-Jun-06 4:59 
QuestionHow to create events for dynamically generated datagrid Pin
BalasahebK23-Jun-06 4:37
BalasahebK23-Jun-06 4:37 
AnswerRe: How to create events for dynamically generated datagrid Pin
l0kke23-Jun-06 5:17
l0kke23-Jun-06 5:17 
GeneralRe: How to create events for dynamically generated datagrid [modified] Pin
BalasahebK23-Jun-06 6:34
BalasahebK23-Jun-06 6:34 
GeneralRe: How to create events for dynamically generated datagrid [modified] Pin
l0kke25-Jun-06 2:42
l0kke25-Jun-06 2:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.