------------------------------------------------------AJAX NOTE----------------------------------------------------
1. In the case of <cc1:calendarextender you can't add ReadONly property in the textBox like
<asp:TextBox ID="txtdate" runat="server" Width="300px" ReadOnly="true"></asp:TextBox>
Then u'll get error textbox = blank it pass blank value to the d/b.
------------------------------------------------ASP.NET NOTE-----------------------------------------------------
1 <asp:TextBox ID="txtdate" runat="server" Width="300px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtdate"
ErrorMessage="Enter the date." SetFocusOnError="True">*</asp:RequiredFieldValidator>
<asp:Image ID="Image1" runat="server" ImageUrl="~/images/show-calendar.gif" />
<cc1:calendarextender id="CalendarExtender1" runat="server" TargetControlID="txtdate"
format="dd-MMM-yyyy" PopupButtonID="Image1">
2. You'll get this type of error when you are passing this (company's ) type of value in inline query. means single quote.
Incorrect syntax near 's'.
------------------------------------------SQL SERVER NOTE-----------------------------------------------------
1 When u retrive any value from database to excel and in database any cloumn has value 1-50 then it Jan-50 in excel sheet. what should be the solution.
2. In case of executeNonQuery(), command is right and it always return -1 it means u have to remove a property in sql set nocount on and off
1. In the case of <cc1:calendarextender you can't add ReadONly property in the textBox like
<asp:TextBox ID="txtdate" runat="server" Width="300px" ReadOnly="true"></asp:TextBox>
Then u'll get error textbox = blank it pass blank value to the d/b.
------------------------------------------------ASP.NET NOTE-----------------------------------------------------
1 <asp:TextBox ID="txtdate" runat="server" Width="300px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtdate"
ErrorMessage="Enter the date." SetFocusOnError="True">*</asp:RequiredFieldValidator>
<asp:Image ID="Image1" runat="server" ImageUrl="~/images/show-calendar.gif" />
<cc1:calendarextender id="CalendarExtender1" runat="server" TargetControlID="txtdate"
format="dd-MMM-yyyy" PopupButtonID="Image1">
2. You'll get this type of error when you are passing this (company's ) type of value in inline query. means single quote.
Incorrect syntax near 's'.
Unclosed quotation mark after the character string ''.
3.
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
Increase the connection time in sql data adapter like
oadapter.SelectCommand.CommandTimeout = 120;
and in sql command like this
cmd.CommandTimeout = 120;
------------------------------------------SQL SERVER NOTE-----------------------------------------------------
1 When u retrive any value from database to excel and in database any cloumn has value 1-50 then it Jan-50 in excel sheet. what should be the solution.
2. In case of executeNonQuery(), command is right and it always return -1 it means u have to remove a property in sql set nocount on and off
No comments:
Post a Comment