Hi All,
int maxAge = db.tbl_zaposlenis.Where(p => p.IdSifra == 22) .Max(p => p.IdSifra);
zaposleni.IdSifra = maxAge;
How to display the largest number in the "IdSifra?
thanks.
View Complete Post
When i'm trying to update a table using dynamic data, i'm getting the following error. I was trying to google the solution for the whole day, but it didnt work. I tried to declare the type of parameters like this<asp:LinqDataSource ID="DetailsDataSource" runat="server" EnableUpdate="true" OnInserting="DetailsDataSource_Inserting" onselected="DetailsDataSource_Selected" onupdating="DetailsDataSource_Updating" > <UpdateParameters><asp:Parameter Name="PK_ID" Type="Int32" /><asp:Parameter Name="id" Type="Int32" /> <asp:Parameter Name="c_titulu" Type="Int32" /> <asp:Parameter Name="perio" Type="Int32" />  
When i'm trying to update a table using dynamic data, i'm getting the following error. I was trying to google the solution for the whole day, but it didnt work. I tried to declare the type of parameters like this
<asp:LinqDataSource ID="DetailsDataSource" runat="server" EnableUpdate="true" OnInserting="DetailsDataSource_Inserting" onselected="DetailsDataSource_Selected" onupdating="DetailsDataSource_Updating" > <UpdateParameters><asp:Parameter Name="PK_ID" Type="Int32" /><asp:Parameter Name="id" Type="Int32" /> <asp:Parameter Name="c_titulu" Type="Int32" /> <asp:Parameter Name="perio" Type="Int32" />  
Good Day all,
Having an issue with an outside user accessing my IIS7 box. I do not have this problem when running the website from my host machine. I found this post: Http://forums.asp.net/t/1371394.aspx. I assure you that this is not a solution because I am not storing any of my files on a network share.
What do you think my approach should be.
I already have read rights to IIS user to my BIN folder.
Thanks for the help.
Hi,
This is frustrating, and I don't know how to solve it.
I have a strange problem. I am adding a LinqDatasource object, and set the context:
protected void LinqDataSource_ContextCreating(object sender, LinqDataSourceContextEventArgs e) { e.ObjectInstance = new KaruselaDataContext(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString); }
Then I get this error:The type 'System.Data.Linq.DataContext' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
On web.config I already have this:<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
NOTE: The datacontext is in a different project (DLL proect) where I added a refernce to System.Data.Linq.
is there another way adding a refernce to a web project? or only though teh web.config?
Thanks.
This month Stanley Lippman begins translating the Text Query Language Query class hierarchy from C++ to the .NET Common Type System.
Stanley B. Lippman
MSDN Magazine February 2007
Stanley Lippman moves Text Query Language to the Microsoft .NET Framework using the C++/CLI language extensions in Visual C++ 2005.
MSDN Magazine December 2006
The next version of SQL Server, code-named "Yukon," will offer enhanced support for user-defined types (UDTs). Because UDTs can be managed by the CLR, you can represent a wide variety of data structures to create types not possible with previous versions of SQL Server. With UDTs you can more precisely control the kind of data your type accepts, resulting in better data management. This article explores UDTs in "Yukon" and covers their design and implementation.
Peter W. DeBetta
MSDN Magazine February 2004
Hello, Why am I getting this error on line:
sp.Price = Convert.ToDecimal(collection.GetValue("Price"));
sp is : SPecials_Templates sp = new SPecials_Templates();SPecials_Templates Defined: [MetadataType(typeof(SPecials_TemplatesMetaData))] public partial class SPecials_Templates { public class SPecials_TemplatesMetaData {
[ScaffoldColumn(false)] public object Key { get; set; } [StringLength(50)] public object Template_Name { get; set; } [StringLength(12)] public object Headline { get; set; } [StringLength(12)] &nbs
Hall of Fame Twitter Terms of Service Privacy Policy Contact Us Archives Tell A Friend