Click here to Skip to main content
15,891,943 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Handling browser Close (X) button Pin
K V Sekhar5-Sep-08 20:03
K V Sekhar5-Sep-08 20:03 
QuestionHandling browser <- button Pin
K V Sekhar4-Sep-08 20:51
K V Sekhar4-Sep-08 20:51 
AnswerRe: Handling browser <- button Pin
Blue_Boy4-Sep-08 21:00
Blue_Boy4-Sep-08 21:00 
GeneralRe: Handling browser <- button [modified] Pin
K V Sekhar4-Sep-08 21:11
K V Sekhar4-Sep-08 21:11 
QuestionException Pin
trilokharry4-Sep-08 20:31
trilokharry4-Sep-08 20:31 
AnswerRe: Exception Pin
Blue_Boy4-Sep-08 20:41
Blue_Boy4-Sep-08 20:41 
QuestionHttp Response and Javascript Problem Pin
goradaranaresh4-Sep-08 20:30
goradaranaresh4-Sep-08 20:30 
QuestionException issue in grid view Pin
trilokharry4-Sep-08 19:43
trilokharry4-Sep-08 19:43 
Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.

view code:
<asp:GridView ID="grdBusScheduling" runat="server" ForeColor="#333333" DataKeyNames="DetailID" OnRowCommand="grdBusScheduling_RowCommand" OnRowEditing="grdBusScheduling_RowEditing" OnRowDataBound="grdBusScheduling_RowDataBound"
AutoGenerateColumns="False" CellPadding="5" Visible="False" DataSourceID="SqlDataSource1">
<EmptyDataTemplate>
<b>There is no Bus Schedule</b>
</EmptyDataTemplate>
<Columns>
<asp:TemplateField HeaderText="Date">
<ItemTemplate>
<%#Eval("ForDate", "{0:dd-MMM-yyyy}")%>
<%--<%#DataBinder.Eval(Container.DataItem,"ForDate", "{0:dd-MMM-yyyy}")%>--%>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="FareForAdult" HeaderText="Fare For Adult" />
<asp:BoundField DataField="FareForChild" HeaderText="Fare For Child" />
<asp:BoundField DataField="FareForSr" HeaderText="Fare For Senior" />
<%--<asp:BoundField DataField="OpenStatus" HeaderText="Open" />--%>
<asp:TemplateField HeaderText="Open">
<ItemTemplate>
<%#Eval("OpenStatus")%>
</ItemTemplate>
</asp:TemplateField>
<%--Testing--%>
<asp:TemplateField Visible="false" HeaderText="Pick-up Point"><%-- SortExpression="Position" >--%>
<EditItemTemplate>
<asp:ListBox ID="lstCityArea" Width="200" Height="100" runat="server" SelectionMode="multiple" >
<asp:ListItem Value="0" Text="ChandPole"/>
<asp:ListItem Value="1" Text="ChandPole1"/>
<asp:ListItem Value="2" Text="ChandPole2"/>
<asp:ListItem Value="3" Text="ChandPole3"/>
<asp:ListItem Value="0" Text="ChandPole"/>
<asp:ListItem Value="1" Text="ChandPole1"/>
<asp:ListItem Value="2" Text="ChandPole2"/>
<asp:ListItem Value="3" Text="ChandPole3"/>
</asp:ListBox>
</EditItemTemplate>

</asp:TemplateField>
<%--*********--%>
<asp:CommandField ShowEditButton="True" HeaderText="Edit" />
</Columns>
<FooterStyle BackColor="#003366" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#EFF3FB" />
<EditRowStyle BackColor="#2461BF" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#003366" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#003366" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringTravel %>"
SelectCommand="BusDetailSelectByFields" SelectCommandType="StoredProcedure"
UpdateCommand="BusDetailEditByDetailID" UpdateCommandType="StoredProcedure">
<SelectParameters>
<asp:ControlParameter ControlID="ddlCityFrom" Name="CityFromID" PropertyName="SelectedValue"
Type="Int64" />
<asp:ControlParameter ControlID="ddlCityTo" Name="CityToID" PropertyName="SelectedValue"
Type="Int64" />
<asp:ControlParameter ControlID="ddlBusType" Name="BusTypeID" PropertyName="SelectedValue"
Type="Int64" />
<asp:ControlParameter ControlID="ddlVendor" Name="VendorID" PropertyName="SelectedValue"
Type="Int64" />
<asp:ControlParameter ControlID="ddlBus" Name="BusID" PropertyName="SelectedValue"
Type="Int64" />
<asp:ControlParameter ControlID="Date1" Name="FromDate" PropertyName="Text" Type="DateTime" />
<asp:ControlParameter ControlID="Date2" Name="ToDate" PropertyName="Text" Type="DateTime" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="DetailID" Type="Int64" />
<asp:Parameter Name="FareForAdult" Type="Int64" />
</UpdateParameters>
<UpdateParameters>
<asp:Parameter Name="DetailID" Type="Int64" />
<asp:Parameter Name="FareForChild" Type="Int64" />
</UpdateParameters>
<UpdateParameters>
<asp:Parameter Name="DetailID" Type="Int64" />
<asp:Parameter Name="FareForSr" Type="Int64" />
</UpdateParameters>
<%--<UpdateParameters>
<asp:Parameter Name="DetailID" Type="Int64" />
<asp:Parameter Name="OpenStatus" Type="Double" />
</UpdateParameters>--%>
</asp:SqlDataSource>

You get the best out of others when you give the best of yourself.

Questionvalidation Pin
nithydurai4-Sep-08 19:23
nithydurai4-Sep-08 19:23 
QuestionPublish in .Net Pin
Member 45999724-Sep-08 19:22
Member 45999724-Sep-08 19:22 
AnswerRe: Publish in .Net Pin
Abhijit Jana4-Sep-08 19:41
professionalAbhijit Jana4-Sep-08 19:41 
GeneralRe: Publish in .Net Pin
Member 45999724-Sep-08 19:47
Member 45999724-Sep-08 19:47 
QuestionRe: Publish in .Net Pin
Abhijit Jana4-Sep-08 20:13
professionalAbhijit Jana4-Sep-08 20:13 
AnswerRe: Publish in .Net Pin
Member 45999724-Sep-08 20:18
Member 45999724-Sep-08 20:18 
GeneralRe: Publish in .Net Pin
www.Developerof.NET4-Sep-08 20:36
www.Developerof.NET4-Sep-08 20:36 
GeneralRe: Publish in .Net Pin
Abhijit Jana4-Sep-08 20:49
professionalAbhijit Jana4-Sep-08 20:49 
GeneralRe: Publish in .Net Pin
Member 45999724-Sep-08 23:53
Member 45999724-Sep-08 23:53 
GeneralRe: Publish in .Net Pin
www.Developerof.NET5-Sep-08 4:31
www.Developerof.NET5-Sep-08 4:31 
AnswerRe: Publish in .Net Pin
Abhijit Jana5-Sep-08 2:22
professionalAbhijit Jana5-Sep-08 2:22 
QuestionDisplay message in a htmleditor in text format itself. Pin
SreejithAchutan4-Sep-08 18:50
SreejithAchutan4-Sep-08 18:50 
QuestionHow to orient text in a web page Pin
Ahmad994-Sep-08 18:28
Ahmad994-Sep-08 18:28 
AnswerRe: How to orient text in a web page Pin
Abhijit Jana4-Sep-08 19:20
professionalAbhijit Jana4-Sep-08 19:20 
GeneralRe: How to orient text in a web page Pin
Ahmad994-Sep-08 20:56
Ahmad994-Sep-08 20:56 
GeneralRe: How to orient text in a web page Pin
Ashfield4-Sep-08 21:13
Ashfield4-Sep-08 21:13 
QuestionHow to auto upload files using asp.net with c# without using controlfile upoload? Pin
Yasir Ali Wah4-Sep-08 17:51
Yasir Ali Wah4-Sep-08 17:51 

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.