Click here to Skip to main content
15,891,567 members

Dynamic Data Linq to SQL Website Layout. Field template help!

Member 8015046 asked:

Open original thread
Hi I am somewhat new to ASP.NET and also a Computer Science Student. Currently I am just doing some self learning here.

I have made a Dynamic Data Linq to SQL website, that was made from the C# website templates. Followed the scaffold tutorials, http://www.asp.net/web-forms[^]
I tried to follow the tutorial for the Modifying the Dynamic Data Fields. It showed a demo for getting the date picker widget.

I am trying to do something similar but with the autocompelte widget. I don't know how to create the data and which type of data to create. Or where to put the data, also I am having trouble seeing some progress to see if I am actually getting the widget to work. Also I want to do this to only one of my fields. Any snippets I should try to get the widget to work or any advice I could try to do to get this? Sorry for asking for "give me that code". But I am really clueless. This was already in the Dynamic Data website template. And the tutorials told me to mess with this which I am not sure how to do.
XML
<%@ Control Language="C#" CodeFile="Text_Edit.ascx.cs" Inherits="Text_EditField" %>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# FieldValueEditString %>' CssClass="DDTextBox"></asp:TextBox>

<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" CssClass="DDControl DDValidator" ControlToValidate="TextBox1" Display="Static" Enabled="false" />
<asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator1" CssClass="DDControl DDValidator" ControlToValidate="TextBox1" Display="Static" Enabled="false" />
<asp:DynamicValidator runat="server" ID="DynamicValidator1" CssClass="DDControl DDValidator" ControlToValidate="TextBox1" Display="Static" />
Tags: SQL, LINQ, ASP.NET, SQL Server, Templates, Data, Webservice

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900