Here are a few ways to get the value of an asp textbox
- document.getElementById(‘<%=Test.ClientID%>’).value
- <%=txtMyTextBox.ClientID%>
- Response.Redirect(“Form2.aspx?name=” + txtName.Text + “&num=” + txtStNum.Text );
String.Join(“,”,Array.ConvertAll(list.ToArray(),element => element.ToString()));
For entity framework, you should use ObjectContext.AddObject() instead of Linq to SQL DataContext.TableName.Add()
[sourcecode language=”vb.net”]
var selectCustomer = from c in dbContext.Customer.Include(“Invoice.Product”)
where c.Id == id
select c[/sourcecode]
“PRG stands for Post-Redirect-Get to avoid the classic browser warning when refreshing a page after post. Whenever you make a POST request, once the request complets do a redirect so that a GET request is fired. In this way when the user refresh the page, the last GET request will be executed rather than the POST thereby avoiding unnecessary usability issue.”
Mozilla Development Center – https://developer.mozilla.org/en/Web_Development
MSDN – Entity Framework – http://msdn.microsoft.com/en-us/library/bb386964.aspx
Entity Framework – http://naspinski.net/post/Getting-started-with-Linq-To-Entities.aspx
MSDN – The ADO.NET Entity Framework– http://msdn.microsoft.com/en-us/data/aa937723.aspx
MSDN – .Net Framework Class Library – http://msdn.microsoft.com/en-us/library/ms229335.aspx
MSDN – Data Development Videos (Entity Framework) – http://msdn.microsoft.com/en-us/data/cc300162.aspx
MSDN – When to use Linq to SQL vs When to use Linq to Entity – http://msdn.microsoft.com/en-us/library/cc161164.aspx
Eight Entity Framework Tutorials on DataDeveloper.NET – http://thedatafarm.com/blog/data-access/eight-entity-framework-tutorials-on-datadeveloper-net/
Application Scenarios (Entity Framework) – http://msdn.microsoft.com/en-us/data/bb738689.aspx
http://code.msdn.microsoft.com/EFDocSamples2008