Click here to Skip to main content
15,908,661 members

Comments by StephanGumpert (Top 11 by date)

StephanGumpert 30-Apr-13 4:03am View    
Using your Idea works a treat to get the DataSet and all accosiated properties etc.

My problem still exsits but.

Say I have 5 Columns in my Table.
The Last 4 are just pure data.
The First is my primary Key with the property of "Do Not Allow Null" set. This column data is AutoGenerated on the SQL database.

My problem is I cant add a row to the Dataset.Table with out that First column value. (it errors complainaing about NULL Values)

But how do I know what to put in that column so as to not produce duplicate data in that column. (remembering that this column is the Primary key Column)
StephanGumpert 27-Apr-13 8:32am View    
Thanks for the reply but my problem is more on how I fill the column with data which normally would be filled by the SQL Database on the server side.

Or are you saying that this can be done by this?
StephanGumpert 11-Jun-12 20:36pm View    
Deleted
Master Page
<pre lang="HTML"><%@ Page Language="VB" MasterPageFile="~/gmeMaster.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_index" Title="Untitled Page" %>
<%@ MasterType VirtualPath="~/gmeMaster.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainDataFrame" Runat="Server">

</pre>

Code Behind
<pre lang="vb">Imports System
Imports System.Data
Imports System.Configuration
Imports System.Collections
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls

Partial Class _index
Inherits System.Web.UI.Page

Public Sub New()

End Sub
End Class</pre>

Content Pages DEFAULT.ASPX
<pre lang="HTML"><%@ Master Language="VB" CodeFile="gmeMaster.master.vb" Inherits="gmeMaster" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>XXXX</title>
</head>
<body>
<form id="form1" runat="server">

XYZ


<span>Home</span>
<asp:ContentPlaceHolder id="MainDataFrame" runat="server">


<div class="footer">© 2012 www.XYZ.com. Design by XYZ</div>
</form>
</body>
</html></pre>

Code Behind
<pre lang="vb">Imports System
Imports System.Data
Imports System.Configuration
Imports System.Collections
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls

Partial Public Class gmeMaster
Inherits System.Web.UI.MasterPage

Public Sub New()

End Sub
End Class</pre>

<pre lang="xml">
<configuration>
<appsettings>
<connectionstrings>
<system.web>
<!--
Visual Basic options:
Set strict="true" to disallow all data type conversions
where data loss can occur.
Set explicit="true" to force declaration of all variables.
-->
<compilation debug="true" strict="false" explicit="true" targetframework="4.0">
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows">
<!--
The <customerrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.

<customerrors mode="RemoteOnly" defaultredirect="GenericErrorPage.htm">
<error statuscode="403" redirect="NoAccess.htm">
<error statuscode="404" redirect="FileNotFound.htm">

-->
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
<namespaces>
<clear>
<add namespace="System">
<add namespace="System.Collections">
<add namespace="System.Collections.Generic">
<add namespace="System.Collections.Specialized">
<add namespace="System.Configuration">
<add namespace="System.Text">
<add namespace="System.Text.RegularExpressions">
<add namespace="System.Web">
<add namespace="System.Web.Caching">
<add namespace="System.Web.SessionState">
<add namespace="System.Web.Security">
<add namespace="System.Web.Profile">
<add namespace="System.Web.UI">
<add namespace="System.Web.UI.WebControls">
StephanGumpert 11-Jun-12 20:23pm View    
Ok I have dumbed down my pages to almost nothing and I cant seam to get it to work.

I have down loaded an example from this WebSite and it works fine only difference I can see if the C# and I am using VB.

Article 333650 Beginners Tutorial on Master Pages in Asp NET.

Below I have added the snippets from my files. I have a Content Pages Default.aspx and a Master Page.

As I said it works find in VS2010 (Windows 7 64bit) but when I publish to my IIS 7.5 site I get the message:

Handler "PageHandlerFactory-Intergrated" has a bad module "ManagedPipeLineHandler" in it module List.

I'll add the code for the 2 Files below
StephanGumpert 11-Jun-12 19:35pm View    
Deleted
Closed For now.