Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 8 of 8
Search took 0.01 seconds.
Search: Posts Made By: Phil Critchley
Forum: ASP.NET 4 General Discussion April 13th, 2011, 03:00 AM
Replies: 22
Views: 15,442
Posted By Imar
Hi Phil, Yes, but in different frameworks....

Hi Phil,

Yes, but in different frameworks. SubmitChanges is part of LINQ to SQL, while SaveChanges is part of Entity Framework 4. Both are similar ORM frameworks, where EF is getting more...
Forum: ASP.NET 4 General Discussion April 12th, 2011, 03:42 PM
Replies: 22
Views: 15,442
Posted By Imar
I guess it all depends on what you're doing....

I guess it all depends on what you're doing. Here's a simple example using LINQ to SQL but the idea is the same for EF (not sure which one you're using):


using (PlanetWroxDataContext context =...
Forum: ASP.NET 4 General Discussion February 27th, 2011, 02:51 PM
Replies: 5
Views: 1,393
Posted By Imar
A SqlDataReader is connected to the database, so...

A SqlDataReader is connected to the database, so you can't store that object in Session state directly.

So, you need to decide how you want the data stored. You could store simple values:
...
Forum: BOOK: Beginning ASP.NET 4 : in C# and VB February 21st, 2011, 03:43 AM
Replies: 11
Views: 3,223
Posted By Imar
Hi there, When I copy and paste your code...

Hi there,

When I copy and paste your code into a new file, this seems to work fine for me.

Maybe there's other code in your site that messes up the design?

I attached my demo page so you...
Forum: ASP.NET 4 General Discussion February 19th, 2011, 08:30 AM
Replies: 10
Views: 13,084
Posted By Imar
The same principle applies: move the code from...

The same principle applies: move the code from CriteriaButton_Click to a separate sub like SetDataSource and call that new method from both CriteriaButton_Click and PageIndexChanging.

When you...
Forum: ASP.NET 4 General Discussion February 19th, 2011, 04:27 AM
Replies: 10
Views: 13,084
Posted By Imar
Where exactly do you call the code you posted in...

Where exactly do you call the code you posted in your first message? In Page_Load alone? If so, you need to call it in PageIndexChanging as well. E,.g you can move your code to a method like...
Forum: ASP.NET 4 General Discussion February 18th, 2011, 05:37 PM
Replies: 10
Views: 13,084
Posted By Imar
Hi there, Take a look here at this thread...

Hi there,

Take a look here at this thread as I think it deals with the exact same issue: http://p2p.wrox.com/asp-net-3-5-basics/82510-grid-view-problem.html#post268972

Cheers,

Imar
Forum: ASP.NET 3.5 Basics June 21st, 2008, 04:31 AM
Replies: 2
Views: 1,915
Posted By firblazer
I have entered: Dim DropDownList1 As...

I have entered:

Dim DropDownList1 As DropDownList = CType(DetailsView1.FindControl("DropDownList1"), DropDownList)
DropDownList1.SelectedValue = Request("EmployeeID")

and it works, but is...
Showing results 1 to 8 of 8

 


All times are GMT -4. The time now is 08:43 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.