Click here to Skip to main content
14,661,984 members
Home » Discussions » ASP.NET
   

ASP.NET

 
Questionuse windows usercontrol in web application Pin
ramki.pindi16-Sep-09 2:48
Memberramki.pindi16-Sep-09 2:48 
AnswerRe: use windows usercontrol in web application Pin
Abhishek Sur16-Sep-09 9:26
professionalAbhishek Sur16-Sep-09 9:26 
GeneralRe: use windows usercontrol in web application Pin
ramki.pindi16-Sep-09 18:52
Memberramki.pindi16-Sep-09 18:52 
GeneralRe: use windows usercontrol in web application Pin
Muhammad Mazhar17-Sep-09 9:32
MemberMuhammad Mazhar17-Sep-09 9:32 
GeneralRe: use windows usercontrol in web application Pin
ramki.pindi17-Sep-09 18:50
Memberramki.pindi17-Sep-09 18:50 
QuestionRestrict users to access the help file, download js files Pin
Rijz16-Sep-09 2:45
MemberRijz16-Sep-09 2:45 
AnswerRe: Restrict users to access the help file, download js files Pin
Abhishek Sur16-Sep-09 9:21
professionalAbhishek Sur16-Sep-09 9:21 
QuestionAjax AutoComplete Extender(urgent) Pin
Devkranth Kishore Vanja16-Sep-09 1:57
MemberDevkranth Kishore Vanja16-Sep-09 1:57 
Hi all


can any one Help On this


i am using the gridview item template ,Edit itemTemplate,footer Template

to insert the data into the DB

i have developed a webservice which displays Cityname as the user types in the the character

here is the code..

<asp:GridView
ID="dg_masters" runat="server" AutoGenerateColumns="False" BackColor="White"
BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3"
GridLines="Horizontal" ShowFooter="True" Width="746px"><AlternatingRowStyle
BackColor="#C2D69B" />
<Columns>
<asp:CommandField ShowEditButton="True" />
<asp:TemplateField>
<ItemTemplate>

</ItemTemplate>
<FooterTemplate>
<asp:Button ID="btnAdd" runat="server" CssClass="Button" Text="Add" OnClick="AddNewDesignation"
ValidationGroup="abc" />
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Designation Code">
<EditItemTemplate>
<asp:TextBox ID="txt_DesignationCode" runat="server" CssClass="textboxDisabled"
Text='<%# Eval("Designation Code")%>' Enabled="false">
</asp:TextBox>
<asp:RequiredFieldValidator ID="txt_Vld_designCOde" runat="server"
ControlToValidate="txt_DesignationCode" Display="Dynamic"
ErrorMessage="Designation Code" CssClass="Validators">
</asp:RequiredFieldValidator>
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="txt_designationCode" runat="server" CssClass="textboxDisabled" MaxLength="3">
</asp:TextBox>
<asp:RequiredFieldValidator ID="txt_Vld_designCode1" runat="server"
ControlToValidate="txt_designationCode" Display="Dynamic"
ErrorMessage="Designation Code" ValidationGroup="abc" CssClass="Validators">
</asp:RequiredFieldValidator>
</FooterTemplate>
<ItemTemplate>
<asp:Label ID="lbl_DesignationCode" runat="server" Text='<%# Eval("Designation Code")%>'>
</asp:Label>
</ItemTemplate>
<ItemStyle Width="30px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Designation Description">
<EditItemTemplate>
<asp:TextBox ID="txt_designDesc" runat="server" CssClass="textboxEnabled"
Text='<%# Eval("Designation Description")%>'>
</asp:TextBox>
<asp:RequiredFieldValidator ID="txt_vld_DesignDescr" runat="server"
ControlToValidate="txt_designdesc" Display="Dynamic"
ErrorMessage="Designation Description" CssClass="Validators">
</asp:RequiredFieldValidator>
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="txt_designDesc" runat="server" CssClass="textboxEnabled" AutoCompleteType="None" >
</asp:TextBox>
<cc1:AutoCompleteExtender ID="aceMinfileNumber" runat="server"
ServicePath="WebService.asmx" ServiceMethod="GetCompletionList" TargetControlID="txt_designDesc"
MinimumPrefixLength="1" EnableCaching="true" CompletionInterval="1000" CompletionSetCount="15" />
<asp:RequiredFieldValidator ID="txt_vld_designdescr" runat="server"
ControlToValidate="txt_designdesc" Display="Dynamic"
ErrorMessage="Designation Description" validationGroup="abc" CssClass="Validators">
</asp:RequiredFieldValidator>
</FooterTemplate>

<ItemTemplate>
<asp:Label ID="lbl_designDesc" runat="server" Text='<%# Eval("Designation Description")%>'>
</asp:Label>
</ItemTemplate>
<ItemStyle Width="100px" />
</asp:TemplateField>


</Columns>
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
<PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
<RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
<SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
</asp:GridView>


WEBSERVICE


Dim adp As SqlDataAdapter
Dim str_Qry As String
str_Qry = "select distinct cityname from tblLocation where cityname like '" + prefixText + "%'"
adp = New SqlDataAdapter(str_Qry, cnn)
Dim daset As Data.DataSet = New Data.DataSet
adp.Fill(daset, "xxx")
Dim temp As New List(Of String)
For i As Integer = 0 To daset.Tables(0).Rows.Count - 1
temp.Add(daset.Tables(0).Rows(i).Item(0).ToString())
Next
Return temp.ToArray
cnn.Close()


plzzzzzzzzzzzzz Its urgent
AnswerRe: Ajax AutoComplete Extender(urgent) Pin
Arun Jacob16-Sep-09 1:59
MemberArun Jacob16-Sep-09 1:59 
GeneralRe: Ajax AutoComplete Extender(urgent) Pin
J4amieC16-Sep-09 2:19
MemberJ4amieC16-Sep-09 2:19 
AnswerRe: Ajax AutoComplete Extender(urgent) Pin
Arun Jacob16-Sep-09 2:31
MemberArun Jacob16-Sep-09 2:31 
GeneralRe: Ajax AutoComplete Extender(urgent) Pin
J4amieC16-Sep-09 2:35
MemberJ4amieC16-Sep-09 2:35 
GeneralRe: Ajax AutoComplete Extender(urgent) Pin
Arun Jacob16-Sep-09 2:41
MemberArun Jacob16-Sep-09 2:41 
AnswerRe: Ajax AutoComplete Extender(urgent) Pin
J4amieC16-Sep-09 2:37
MemberJ4amieC16-Sep-09 2:37 
QuestionDynamic Item tmpate inside gridview Pin
sekannak16-Sep-09 1:28
Membersekannak16-Sep-09 1:28 
AnswerRe: Dynamic Item tmpate inside gridview Pin
Christian Graus16-Sep-09 1:37
mveChristian Graus16-Sep-09 1:37 
AnswerRe: Dynamic Item tmpate inside gridview Pin
Arun Jacob16-Sep-09 1:54
MemberArun Jacob16-Sep-09 1:54 
Questionajax controls not working fine..,when evets not fire for some time..., Pin
Member 387988116-Sep-09 0:52
MemberMember 387988116-Sep-09 0:52 
AnswerRe: ajax controls not working fine..,when evets not fire for some time..., Pin
Christian Graus16-Sep-09 1:36
mveChristian Graus16-Sep-09 1:36 
AnswerRe: ajax controls not working fine..,when evets not fire for some time..., Pin
Shalini_U16-Sep-09 3:11
MemberShalini_U16-Sep-09 3:11 
QuestionDatabinding Pin
Member 448708316-Sep-09 0:23
MemberMember 448708316-Sep-09 0:23 
AnswerRe: Databinding Pin
Christian Graus16-Sep-09 1:35
mveChristian Graus16-Sep-09 1:35 
AnswerRe: Databinding Pin
Muhammad Mazhar17-Sep-09 9:35
MemberMuhammad Mazhar17-Sep-09 9:35 
QuestionAccess Denied in CreateDirectory with UNC Path Pin
Stephan Pilz15-Sep-09 23:49
MemberStephan Pilz15-Sep-09 23:49 
AnswerRe: Access Denied in CreateDirectory with UNC Path Pin
Christian Graus16-Sep-09 1:33
mveChristian Graus16-Sep-09 1:33 

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.