|
by: Plumer |
last post by:
Good morning everyone
Using C# I create a bog-standard System.Data.DataTable
which I then Add to a System.Data.Dataset (At the moment
I'm in the guess-and-test phase so the table has only
one field called "ID" which is Int32.)
I need to save this table to an SQL Server database. The
Dataset/DataAdapter approach does not seem to provide for
this requirement. The logic appears to be based on the
|
by: Dan Sikorsky |
last post by:
Should application data be read and written to the Registry to persist
state, or should the App.config file be used?
If the Registry should be used, what .NET class reads and writes the
Registry?
If the App.config file should be used, reading a configuration setting is
trivial, but there appears to be no write methtod. Please post a write
method when replying.
--
|
by: Paul Perot |
last post by:
Hi All:
I have a DataTable that I have defined Globally. I populate this datatable
dynamically with file/folder information that I read directly from the
server. I use this datatable information to bind mainly to a DataGrid, but
I would also like it to persist for the duration that I have a particular
page open. I seem to be losing this data either thru postbacks or by the
way I have coded it. Does anyone have any suggestions on how...
|
by: Alex |
last post by:
How can I retrieve a DataRow from the DataGrid in the update handler?
Can I do this or do I need to construct one?
|
by: Vlady |
last post by:
Hello. I recently built an ASP.NET "financial" application. I got to the
point where I have a HTML template (a contract) which needs to be filled with
various data from the database. I put a "generate contract" button on my ASPX
page, but I totally lack ideas of how to put the data in the correct places
in the html file. I was recommended (actually "do like this" from my boss) to
enclose the variable name like this {variable_name} in the...
|
|
by: Martin |
last post by:
Hi,
I understand you must first remove the constraint. The following bit does
not work (where t is a DataTable). It gives a 'reference not set to an
object' error
t.PrimaryKey.Clear(t.PrimaryKey, 0, 1)
If t.Columns.Contains("MYKEY") Then
If t.Columns.CanRemove(t.Columns("MYKEY")) Then
t.Columns.Remove("MYKEY")
|
by: DEWright_CA |
last post by:
Hi Everyone!
I am working on a project in C# and have a table the contains state info,
plus a variety of other info that I will reference from another dropdown
list. How can I do this programatically?
What I am doing is this,
1. create dbconn, to tblStates (already done!)
2. User has a dropdown list of states, when they select the state the box
next to it with Counties displays only the ones for that state, and on
|
by: BStrick |
last post by:
I would like to know what may be the "Best" way to approach with
problem.
I have an application that I created to transfers data dynamically from
an unknown source (ie maybe Excel, Access, XML, or SQLServer) and
imports it into a datatable and then on to the dataGridView for the
user to see. The thing about that initial datasource is that the
application will not know how its columns are formatted up until the
data is actually sent...
|
by: Marc |
last post by:
Ok, I am studying dot net, and I have a probably newbee sort of question
again. I have made a form and a button that fills the gridview on the form.
I also want to make a delete and edit button. But everytime I click the
delete or edit button, the gridview disappears again. I guess it is not
recreated after a page reload, but what can I do to fix this?
This is my code:
using System;
using System.Data;
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|