Hi all I need to change the name of a table from Student_ind to Student_tbl. There are three tables that have a relationship with it, is there a nice and smooth way of changing it without upsetting the Relationships involved??
View Complete Post
You'll have to excuse my ignorance, I'm coming at this from a front-end perspective, and don't really know how to deal with data views in ASP.NET.
Basically, I'm trying to change the layout of some repeated data from a straight table, to something more design-heavy. It's the same data, just re-organised slightly. The current ASP.NET code looks like this:
<asp:GridView ID="GVMoments" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" PageSize="20" RowHeaderColumn="FirstName"
<PagerSettings Mode="NumericFirstLast" PageButtonCount="20" Position="TopAndBottom" />
<asp:BoundField DataField="moment_id" HeaderText="moment_id" ReadOnly="True" SortExpression="moment_id"
The List Page display child Entity using the gridview each row will have link to the parent
How can I change the link so it shows the parent but in list view(using list.aspx) not detailes (detailes.aspx)view
I checked the
The List Page displays a child Entity using the gridview, each row has a to link to the parent in detailes view how can I change to list view .
use list.aspx?parent=32 not detailes.aspx ?parentId=32
I am using SQLCE and some prepopulated table,
but whenever master data will chage so we need to chage my whole code.
Wherever I had wrriten my Category and CoAName so is there any way we can't change my code,
but I am able to access my CoA(Chart of Account Table).
When I'm trying to change somthing at my table, on saving I get an error massage to "Drop or Re-create" the table.
How can I change or add parameters in my table without re-creating it all the time????
I'm using .net 4 with a link to entities web application, and I"ve got the data annotations starting to work, but I'm wondering if there is a way to display a friendly name for my tables?
this code gives me a compilation error that says:
Error 1 Attribute 'Display' is not valid on this declaration type. It is only valid on 'method, property, indexer, field, param' declarations. C:\Kens Files Oct 2010\Visual Studio 2008\Projects\ManagementAndDiagnosticsWeb\EFWebApp\EntityClasses\ScaffoldRules.cs 37 10 EFWebApp
how to table row click row color change in jquery
i have two row
<td> Name </td>
<td> Name 2</td>
when i click in Second row than Second row color is red and (2) green
when i click in First row than First row color is red and (2) green
On one of my webpage i am displaying datalist in which i am using this label:
<asp:Label ID="nameLabel12a" runat="server" Text='<%# Eval("CreatedOn") %>' />
This label is displaying created on date along with time (10/18/2010 2:45:07
PM), but i would like to display it something like this:
23 hours ago
10/3/2010 (if the time is more than 24 hours then it should display the date)
how to accomplish this ? please guide me...
I know this sounds a bit noob but I still don't know if there's a way to do this or not. Let's say we have 3 columns. 2nd column (the middle one) is populated with a detailview when the user click something on the first column, then it shows in the middle column detailview. So, it's like
column1 column2(middle) column3Something DetailView Something more
But the point is, if the detailview is a bit longer, then the entire table size change. column2 becomes very long and column1 and column2 also changed their style by shrinking the same size as in column2. I have no idea if there's such way to make those layout flexible. I don't seriously wanna limit the height of the column2 from CSS though. Thanks all.
Hi, I am using Table Adapter to insert records into my database. I first insert my member record into the database and it has no errors, after that i insert the contact records into the table. however I got the following error:
You cannot add or change a record because a related record is required in table 'Member'.
This is my code:
For index = 0 To contactList.Items.Count - 1
newContactRow.memberIc = memRow.nric
newContactRow.number = CType(contactList.Items.Add(index), String)
Contactdt = CType(ds.Contacts.GetChanges, dbDataSet.ContactsDataTable)
If Contactdt IsNot Nothing Then
MsgBox("Contacts have been added into database")
Catch ex As Exception
Memdt = CType(ds.Member.GetChanges,dbDataSet.MemberDataTable)
If Memdt IsNot Nothing Then
MsgBox("Member has been added into database")
Catch ex As Exception