473,562 Members | 3,113 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can Someone please try the following?

Can someone please try the following in VS2005 and let me know if you get
the same results...

-1-Create a new Web Application use C#
-2- double click on the default.aspx form and view it in design mode
-3- right mouse click and select "View Component Designer"
-4- select "SqlDataAdapate r from the Tools bar, under Data if it doesn exist
there then rightmouse click within the data tab and select "Choose Items"
and then scroll down and select the SQLDataAdapter, and press OK
-5- now drag this new SQLDataAdapter onto your Components designer window,
it will lauch the wizard, select a SQL Server and a table, select one with
lots of fields in it.
-6- now close the components desiger window and go back into the webform and
right mouse click and select "View Code", scroll down and where you see
your Page_Load add in a InitializeCompo nent();
-7- scroll down into the InitializeCompo nent() method and you should see
something like this:
this.components = new System.Componen tModel.Containe r();
System.Componen tModel.Componen tResourceManage r resources = new
System.Componen tModel.Componen tResourceManage r(typeof(_Defau lt));

then further down below you will see another statement something like:

this.sqlInsertC ommand1.Command Text =
resources.GetSt ring("sqlInsert Command1.Comman dText");

btw this is the line where you program will fail.

Now select Ctrl + F5, this will build and run your project, I would be
very surprised if it works, Please let me know how it goes..

Dec 1 '05 #1
0 1183

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

Similar topics

by: Michael Lauzon | last post by:
A while back, I had a program that I was working on, while taking Java in a Web Design & Development course -- this was back in 1999 -- not having the mindset of a programmer I failed that part of the course misrably. I had to do the following program, but you can see why I failed, I only managed to write to lines of code. I am wondering if...
by: Berhack | last post by:
I am not too familiar with C# interop so please help me out. I need to call the following C function (in a DLL): // this creates an array of strings // LPTSTR is just char * void C_Func(LPTSTR **pszStrings) { (*pszStrings) = reinterpret_cast<LPTSTR *>(malloc(2 * sizeof(LPTSTR))); (*pszStrings) = _T("A test");
by: Alan Silver | last post by:
Hello, I am having a problem setting and resetting cookies. I'm sure I just doing something really stupid as this is such a basic issue, but I can find any answer. Please can someone help me? The following code is a complete page that demonstrates my problem. If you save this as an .aspx and load it in a browser, it tells you it is...
by: Rob Dob | last post by:
Can someone please try the following in VS2005 and let me know if you get the same results... -1-Create a new Web Application use C# -2- double click on the default.aspx form and view it in design mode -3- right mouse click and select "View Component Designer" -4- select "SqlDataAdapater from the Tools bar, under Data if it doesn exist...
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...
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...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
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 project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
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...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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...

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.