473,397 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Please Help this is my Crazy GridView !!

Aws
My crazy GridView !!
I am using Visual Studio 2005, I have a problem with my GridView.

I have one access .mdb table and when I update a record on the table
EVERYTHING is perfect. I made a Web Setup Project and installed My Web
Application on my Localhost and it works perfectly.

When I install My Web Application on our “Production Server” it just doesn’t
update the records on Edit mode!!!

I open the table with Access, update the records manually, and refresh… the
GridView is updated and cached my manual changes?

I tried to add ALL Users and grant Full Control on the Security Tab of the
used table, NO WAY, it didn’t help!!

No errors no messages, just doesn’t update the records.

Any help please ???
No code behind code, Here is my “default.aspx”…

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Welcome to Availibility Form</title>
</head>
<body>
<script type="text/javascript" language="JavaScript1.2">
<!--
//HV Menu-
//Submitted
//Visit http://www.dynamicdrive.com for this script and more

function Go(){return}
// -->
</script>

<script type="text/javascript" src="exmplmenu_var.js"></script>
<script type="text/javascript" src="menu_com.js"></script>

<noscript>
Your browser does not support script
</noscript>

<SCRIPT Language=VBScript>
function VisDato
dim Dag, TheDato, nu
nu = now
Dag = WeekdayName(Weekday(nu, vbUseSystemDayOfWeek), false,
vbUseSystemDayOfWeek)
TheDato = Dag & ", " & FormatDateTime(nu, vbLongDate)
TheDato = replace(TheDato, Dag & ", " & Dag, Dag)
dato.innerText = TheDato
end function
</SCRIPT>

<br>
<table class="maintable" width=820 border="0" align="center" cellpadding="0"
cellspacing="0" bgcolor="white">
<tr>
<td bgcolor="white" align="left"><img src="logo_one_line.gif"></td>
<!-- URET -->
<td align=right bgcolor="white">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td>Welcome 7TM Empolyee</td></tr>
<tr><td align="center"><span id=dato></span></td></tr>
</table>
</td>
<TD>&nbsp;</TD>
<TD align=right><a href="http://www.dmi.dk/dmi/index/danmark.htm"
title="Weather forecast. Click to see weather in details."><img
border="0"
src="http://glwww.dmi.dk/vejr/landsudsigter/1day.gif"></a></TD>
</tr>
</table>

<SCRIPT LANGUAGE=VBScript>
VisDato
setInterval "VisDato", 10000, "VBScript"
</SCRIPT>

<form id="form1" runat="server">
<div>
<table align="center">
<tr>
<td style="height: 77px; width: 800px;" align="left">
<strong><span style="text-decoration: underline"
contenteditable="false">Welcome to the Availability Form</span></strong> <br
/>
</td>
</tr>
<tr>
<td style="height: 63px; width: 800px; text-align: left;"
align="left">
<span style="font-size: 10pt; font-family: Arial">Please
click on the <strong><span
style="text-decoration: underline"><span
style="color: blue">Edit</span> </span>
</strong>link beside your name to start editing your
<strong>Availability</strong> Status
and select the <strong>Dates </strong>and
<strong>Times </strong>of your <strong>Leaving
</strong>and <strong>Return</strong>, and then click
<strong>Update</strong>. </span></td>
</tr>
<tr>
<td style="height: 104px; width: 800px;">
<asp:GridView ID="GridView1" runat="server"
AllowSorting="True" AutoGenerateColumns="False"
BackColor="#73A3D3" DataKeyNames="ID"
DataSourceID="AccessDataSource1" EmptyDataText="There are no data records to
display."
Font-Size="Medium" Width="800px">
<Columns>
<asp:CommandField ShowEditButton="True" />
<asp:BoundField DataField="Name"
HeaderText="Name" SortExpression="Name" />
<asp:BoundField DataField="Department"
HeaderText="Department" SortExpression="Department" />
<asp:BoundField DataField="Availability"
HeaderText="Availability" SortExpression="Availability" />
<asp:BoundField DataField="LeaveDate"
HeaderText="Leave Date" SortExpression="LeaveDate" />
<asp:TemplateField HeaderText="Leave Time"
SortExpression="LeaveTime">
<ItemTemplate>
<asp:Label ID="Label1" runat="server"
Text='<%# Eval("LeaveTime") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="DropDownList1"
runat="server" SelectedValue='<%# Bind("LeaveTime") %>'>
<asp:ListItem
Selected="True"></asp:ListItem>
<asp:ListItem>All Day</asp:ListItem>
<asp:ListItem>08:00</asp:ListItem>
<asp:ListItem>09:00</asp:ListItem>
<asp:ListItem>10:00</asp:ListItem>
<asp:ListItem>11:00</asp:ListItem>
<asp:ListItem>12:00</asp:ListItem>
<asp:ListItem>13:00</asp:ListItem>
<asp:ListItem>14:00</asp:ListItem>
<asp:ListItem>15:00</asp:ListItem>
<asp:ListItem>16:00</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="ReturnDate"
HeaderText="Return Date" SortExpression="ReturnDate" />
<asp:TemplateField HeaderText="Return Time"
SortExpression="ReturnTime">
<ItemTemplate>
<asp:Label ID="Label2" runat="server"
Text='<%# Bind("ReturnTime") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="DropDownList2"
runat="server" SelectedValue='<%# Bind("ReturnTime") %>'>
<asp:ListItem
Selected="True"></asp:ListItem>
<asp:ListItem>All Day</asp:ListItem>
<asp:ListItem>09:00</asp:ListItem>
<asp:ListItem>10:00</asp:ListItem>
<asp:ListItem>11:00</asp:ListItem>
<asp:ListItem>12:00</asp:ListItem>
<asp:ListItem>13:00</asp:ListItem>
<asp:ListItem>14:00</asp:ListItem>
<asp:ListItem>15:00</asp:ListItem>
<asp:ListItem>16:00</asp:ListItem>
<asp:ListItem>17:00</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
</asp:TemplateField>
</Columns>
<HeaderStyle BackColor="#80B6EC" />
<RowStyle Wrap="False" />
</asp:GridView>
<asp:AccessDataSource ID="AccessDataSource1"
runat="server" DataFile="App_Data\who_is_who_available.mdb"
DeleteCommand="DELETE FROM [who_is_who_available]
WHERE [ID] = ?" InsertCommand="INSERT INTO [who_is_who_available] ([ID],
[Name], [Title], [Department], [Availability], [LeaveDate], [LeaveTime],
[ReturnDate], [ReturnTime], [Init]) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"
SelectCommand="SELECT * FROM [who_is_who_available]
ORDER BY [Department], [Name]"
UpdateCommand="UPDATE [who_is_who_available] SET
[Name] = ?, [Title] = ?, [Department] = ?, [Availability] = ?, [LeaveDate] =
?, [LeaveTime] = ?, [ReturnDate] = ?, [ReturnTime] = ?, [Init] = ? WHERE [ID]
= ?">
<DeleteParameters>
<asp:Parameter Name="original_ID" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="Name" Type="String" />
<asp:Parameter Name="Title" Type="String" />
<asp:Parameter Name="Department" Type="String" />
<asp:Parameter Name="Availability" Type="String"
/>
<asp:Parameter Name="LeaveDate" Type="String" />
<asp:Parameter Name="LeaveTime" Type="String" />
<asp:Parameter Name="ReturnDate" Type="String" />
<asp:Parameter Name="ReturnTime" Type="String" />
<asp:Parameter Name="Init" Type="String" />
<asp:Parameter Name="original_ID" Type="Int32" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="ID" Type="Int32" />
<asp:Parameter Name="Name" Type="String" />
<asp:Parameter Name="Title" Type="String" />
<asp:Parameter Name="Department" Type="String" />
<asp:Parameter Name="Availability" Type="String"
/>
<asp:Parameter Name="LeaveDate" Type="String" />
<asp:Parameter Name="LeaveTime" Type="String" />
<asp:Parameter Name="ReturnDate" Type="String" />
<asp:Parameter Name="ReturnTime" Type="String" />
<asp:Parameter Name="Init" Type="String" />
</InsertParameters>
</asp:AccessDataSource>
</td>
</tr>
<tr>
<td align="center" style="height: 60px; width: 800px;">
©2006 ...... All All rights reserved.
</td>
</tr>
</table>

</div>
</form>
</body>
</html>

--

Aws
aw***@yahoo.com
Feb 23 '06 #1
0 2253

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

28
by: Tim_Mac | last post by:
hi, i'm new to .net 2.0, and am just starting to get to grips with the gridview. my page has autoEventWireUp set to true, which i gather is supposed to figure out which handlers to invoke when...
3
by: mosscliffe | last post by:
I have a gridview and in the GridView1_SelectedIndexChanged routine I am attempting to get at the data in the row I have done it successfully with cells 'Access the contents of a field in a...
0
by: Sam | last post by:
I am fairly new to ASP. Net 2.0, background MS Access 2000/2003 and working knowledge of SQL 2000. Scenario: Page1: Blank Page loads with 2 Text Boxes (TxtLast, TxtFirst), a Command...
0
by: Wannabe | last post by:
I have been trying to figure this out for days now...can someone please help? I am using ASP.Net 2.0 and have a gridview on my page. I have everything working except the delete command. The page...
8
by: Greg Lyles | last post by:
Hi all, I'm trying to develop an ASP.NET 2.0 website and am running into some real problems with what I thought would be a relatively simple thing to do. In a nutshell, I'm stuck on trying to...
0
by: trint | last post by:
I hope I can explain this clearly enough to get help. I have three gridviews that need to work from each other to display like a java verticle menu (just in the way it appears). GridView1 is...
0
by: sharonrao123 | last post by:
hello all, I have a parent gridview company and in this one a nested gridview people, Is it possible to allow the user to select one row or multiple rows from the people gridview using a check box...
4
by: anniebai | last post by:
Please help me with writing a RowUpdating function in C#, I don't know how to grab the current field's value and also get the old value for one of keys (which is ProjectName for editing) of the...
1
by: =?Utf-8?B?QXN0cml0aA==?= | last post by:
I have bin asked to use "Templated Gridview", for a project. Can somebody give me more information on how to use a "Templated Gridview", or can anybody paste any suitable website link that will...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.