Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Showing results 1 to 22 of 23
Search took 0.02 seconds.
Search: Posts Made By: markhh
Forum: ASP.NET 4 General Discussion October 8th, 2014, 04:39 PM
Replies: 23
Views: 2,466
Posted By Imar
The DetailsView and associated SqlDataSource...

The DetailsView and associated SqlDataSource control can get data from the database, but also send updates back. For the updates, you can use INSERT, UPDATE and DELETE commands.

All the...
Forum: ASP.NET 4 General Discussion October 8th, 2014, 11:10 AM
Replies: 23
Views: 2,466
Posted By Imar
Isn't this the same issue as before? The column...

Isn't this the same issue as before? The column you are trying to update is not part of your INSERT or UPDATE statement...

Imar
Forum: ASP.NET 4 General Discussion September 30th, 2014, 05:49 PM
Replies: 23
Views: 2,466
Posted By Imar
You could use SQL Server's getdate in your query...

You could use SQL Server's getdate in your query for that, or you can handle the DetailView's ItemUpdating event:...
Forum: ASP.NET 4 General Discussion September 21st, 2014, 03:30 PM
Replies: 23
Views: 2,466
Posted By Imar
You can't insert strings into integer columns, so...

You can't insert strings into integer columns, so it makes sense you're getting an error.

When the data comes from a drop down control, can't you set up that control to display the text but use...
Forum: ASP.NET 4 General Discussion September 21st, 2014, 04:58 AM
Replies: 23
Views: 2,466
Posted By Imar
Hi Mark, Does it work when you move the...

Hi Mark,

Does it work when you move the DetailsView outside the UpdatePanel?

Imar
Forum: ASP.NET 4 General Discussion May 24th, 2013, 10:38 AM
Replies: 5
Views: 2,383
Posted By Imar
Nope, you need to define a real function using...

Nope, you need to define a real function using something like.

function swapImageIn()
{
// .... Code here
}

Did you copy this code from somewhere? If so, didn't they include the swapImageIn...
Forum: ASP.NET 4 General Discussion February 19th, 2013, 07:17 PM
Replies: 6
Views: 1,170
Posted By Imar
Can you define "it's not running"? Do you get an...

Can you define "it's not running"? Do you get an error?

It's important to realize that defaults only work when your SQL statement is not supplying a value. So when you've set up your data controls...
Forum: ASP.NET 4 General Discussion February 8th, 2013, 06:18 AM
Replies: 2
Views: 878
Posted By Imar
Hi Mark, When you make the changes to the...

Hi Mark,

When you make the changes to the data source, Visual Studio as you if you want to reset key and other information. When you answer yes, you get the behavior your describe below. When you...
Forum: ASP.NET 4 General Discussion January 14th, 2013, 08:17 AM
Replies: 2
Views: 875
Posted By Imar
Hi there, The QueryString parameter is used...

Hi there,

The QueryString parameter is used to influence the SQL statement so it only selects the review whose ID is in the query string (in the address of the page; e.g. something like ?Id=123...
Forum: ASP.NET 4 General Discussion March 19th, 2012, 03:07 PM
Replies: 2
Views: 1,197
Posted By Imar
Hi Kark, Per page, yes. And you only ever...

Hi Kark,

Per page, yes. And you only ever want one. So if you have one in a master page, your content page can't have one. You can use the ScriptManagerProxy though.

Cheers,

Imar
Forum: Access VBA December 1st, 2011, 09:52 AM
Replies: 10
Views: 7,437
Posted By Harry
Mark, of course it needs a 'where'-clause to...

Mark,
of course it needs a 'where'-clause to select the records to be updated. A simple Update-statement always uses all records in the table. I do not know what the criteria is to select a specific...
Forum: Access VBA December 1st, 2011, 08:25 AM
Replies: 10
Views: 7,437
Posted By Harry
Hi Mark, there is a space between Authorised...

Hi Mark,

there is a space between Authorised and Date in the fieldname. In this case you should code:
CurrentDb.Execute "Update tblComments set tblComments.[Authorised Date] = '" & Now & "'" ...
Forum: Access VBA December 1st, 2011, 04:58 AM
Replies: 10
Views: 7,437
Posted By Harry
But don't forget to check the content of the...

But don't forget to check the content of the checkbox first

'If checkbox = True then .....
Forum: Access VBA November 29th, 2011, 07:09 PM
Replies: 10
Views: 7,437
Posted By HiTechCoach
There are several methods you can use. For...

There are several methods you can use.

For example

1) if the field to be updates is part of the form's record source then place a text box on the form that is bound to the control. In the check...
Forum: ASP.NET 4 General Discussion November 25th, 2011, 09:12 AM
Replies: 2
Views: 1,199
Posted By Imar
Hi there, There are many, many ways to do...

Hi there,

There are many, many ways to do this. To give you an idea of a possible solution, try this:

1. File | New Web Site

2. In App_Data create a file called Sample.xml and add the...
Forum: ASP.NET 4 General Discussion October 29th, 2011, 09:39 AM
Replies: 3
Views: 849
Posted By Imar
Hi there, Take a look at the...

Hi there,

Take a look at the CompareValidator (http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.comparevalidator.aspx) and its Type property in particular.

Cheers,

Imar
Forum: ASP.NET 4 General Discussion September 18th, 2011, 02:12 PM
Replies: 4
Views: 1,016
Posted By Imar
Hi there, Positioning is used for different...

Hi there,

Positioning is used for different purposes than centering a button. For a detailed explanation of position take a look here:

http://www.w3schools.com/css/css_positioning.asp...
Forum: ASP.NET 4 General Discussion August 3rd, 2011, 04:11 PM
Replies: 9
Views: 4,797
Posted By Imar
Take a look at this: switch...

Take a look at this:


switch (Page.Theme.ToLower())
{
case "darkGrey":
Menu1.Visible = false;
TreeView1.Visible = true;
You're using ToLower on the...
Forum: ASP.NET 4 General Discussion July 26th, 2011, 09:04 AM
Replies: 9
Views: 4,797
Posted By Imar
Hi there, I can see a couple of issue with...

Hi there,

I can see a couple of issue with your page. There might be more, but with the broken HTML (this forum ate half the page) and colored CSS it's a bit hard to say. Here are some things I...
Forum: ASP.NET 4 General Discussion June 27th, 2011, 11:07 AM
Replies: 3
Views: 949
Posted By Imar
Hi Mark, The page overrules the title set in...

Hi Mark,

The page overrules the title set in the master. To have new pages take the title, you need to re-export the tempate and then base your pages on this new template.

You can use server...
Forum: BOOK: Beginning ASP.NET 4 : in C# and VB May 17th, 2011, 10:09 AM
Replies: 6
Views: 2,637
Posted By Imar
The Page class *is* the BaseClass. When you...

The Page class *is* the BaseClass. When you create a page, you let it inherit BasePage. So, the request for a page is handled by your BasePage. Its base class (eg. System.Web.UI.Page) then raises the...
Forum: ASP.NET 4 General Discussion March 29th, 2011, 09:17 AM
Replies: 2
Views: 1,055
Posted By om_prakash
Try this: Application["hitCounter"] =...

Try this:

Application["hitCounter"] = (int)Application["hitCounter"] + 1;
Label1.Text = Application["hitCounter"].ToString();
Showing results 1 to 22 of 23

 




Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.