|
Hello,
Could you please tell me why this code isn;t working(has a problem with update,when i just insert in the table works fine).Thanks
DataRow row=this.dataSet11.Tables[0].NewRow();
row[0]=this.txtNume.Text;
row[1]=this.txtPrenume.Text;
row[2]=this.txtFoto.Text;
this.dataSet11.Tables[0].Rows.Add(row);
this.oleDbDataAdapter1.InsertCommand=new System.Data.OleDb.OleDbCommand(
"INSERT INTO Persoane(nume,prenume,foto) values("+this.txtNume.Text+
","+this.txtPrenume.Text+","+this.txtFoto.Text+")");
this.oleDbDataAdapter1.InsertCommand.Connection=this.oleDbConnection1;
this.oleDbDataAdapter1.Update(this.dataSet11,"Persoane");
this.dataSet11.Tables[0].AcceptChanges();
|
|
|
|
|
Hello All!
Someone know where i can get HTTP Sniffer's source code or read about this ???
Thanks.
|
|
|
|
|
Hi there,
I've got a problem with updating data from an Access database. I just started (for a couple of weeks now) with working with this kind of databases so I don't know a lot about it.
I've got a program that displays data from a database. That's working perfect. But now I want to modify that data.
In one of the tables (I use 3 total) I created an UPDATE query. That happens in this method:
<br />
public void updateFamilie(TypeFamilie updateFamilie)<br />
{<br />
familieData.UpdateFamilieByFamilieID(updateFamilie.FamilieID, updateFamilie.Adres,<br />
updateFamilie.Belasting, updateFamilie.EigenWoning, updateFamilie.FamilieNaam,<br />
updateFamilie.Hypotheek, updateFamilie.Kalender, updateFamilie.KortNieuws,<br />
updateFamilie.Lening, updateFamilie.MobieleTelefoon, updateFamilie.Telefoonnummer,<br />
updateFamilie.Postcode, updateFamilie.Woonplaats, updateFamilie.PriveRekening,<br />
updateFamilie.SpaarRekening, updateFamilie.Verzekeringen);<br />
}<br />
The problem is that the database does not do the update. Can somebody please help me out with this??
Thanks a lot!
|
|
|
|
|
Hi All... Currently i am doing my banking application using ASP.Net,C#, SQL Server2000... i want some technical solution realated securities from you guys as follow..
i already logged to my application by using username and password.. after login page my home page Home.aspx coming on screen.. i have features all like Balance Inquiry, Mini Statement, Last Transaction, Private Banking, Net Banking in my Home Page in left menu side. All Features are working very well.. For Security Reason i want some technical help from all of you guys...
Problem is After my successful login page If i not touch the Home page or if i not click on any features available in home page for 10 minutes.. Like if i click on Balance Inquiry Link after 10 minutes that time Page Login.aspx want to open instead of BalanceInquiry.aspx... After my successful login by username and password i want to open page BalanceInquiry.aspx (do not want open Home.aspx Page Again)... For that what i have to do in my Application to make more secure... if u have any articles link then please send me..
Please Please Help me if you people have some technical solution... Bcz right now i am on mid way of that project... if u have any articles or articles link please help me out....
Regards,
Patel...
|
|
|
|
|
I believe Microsoft Press has a book out called Writing Secure Applications. It is a few inches thick and covers the gambit of what you need to do. You may want to investigate this as a resource for securing your application.
The situation you are experiencing is that your login cookie is set to expire after 10 minutes. I suggest doing some googles for stuff like IIS Security TimeOut and Cookie Expiration and stuff like that. It sounds like you may also need to pick up a book on IIS internals to help strengthen that area of knowledge.
|
|
|
|
|
Hi,
Im doing a music player, ripper and burner as part of my project. Im using VS2005 and C#. Does anyone know any good librarys or code for creating playlists? Help much appreciated.
Thanks,
Simon.
|
|
|
|
|
The whole fun of coding if figuring out something like this on your own.... so let's look at some common features of a playlist:
First it is a list of songs therefore your UI will be most likely a listbox.
You also need to support the ability to drop a song file on the playlist and have it show up. So you will need to code the Drag-and-Drop functionality (which isn't too difficult) and you need to code the event when an object is held over your list so you want to limit to types of mpg, wma, etc.
Finally is the ability to save the data. Here you can make up your own file format, your own file type, and all you need to determine is what is the minimum data you need. You can use BinaryWriter to Serialize/Deserialize your play list....which means you also get some exposure to implementing ISerializable in your playlist object.
Lot's of fun!
|
|
|
|
|
mickeyfitzray wrote: Does anyone know any good librarys or code for creating playlists?
If you're writing this as a school project, then it's expected that you finish the assignment on your own.
As far as creation of playlists goes, I think interopability with other MP3 players would a be great feature. For example, you dont want to serialize your playlist information in binary which will limit only your application to be able to read/write to that file.
You can have a playlist which fits your application/data-model the best, but you should have an option to export it in more standard formats (such as WPL, PLS, M3U). To understand these formats, simply open them in Notepad to analyze the structure and you'll see it's very trivial to create a playlist of songs. Assuming your playlist is in XML, you should create XSLT files (for each format) and apply the XSLT on your source-XML to dynamically generate M3U, PLS, WPL lists. If your data is stored in database, then get the dataset and serialize it in XML and apply XSLT.
Best of luck with the project.
- Malhar
|
|
|
|
|
Hi i just installed visual studio 2003 in my machine.windows application is working perfect but my ASP.NET Application is working.i unintalled it twice but still not working then i thouhgt it might be IIS so i uninstalled IIS then reinstalled it again but is still giving the same error
|
|
|
|
|
It would be helpful if you also post the error message you are receiving.
|
|
|
|
|
It gives me this error."Unable to create web project 'webapplication1'the file path 'c:\inetpub\wwwroot\webApplication1'does not correspond to the URL 'http://localhost/webApplication1.The two need to map to the same server location.HTTP Error 404 not found
|
|
|
|
|
As the old saying goes....it is not the car that is broken, it is the driver.
Run IISConfig and you will more than likely find a Virtual Directory that was built for webApplication1. And it is defined with a directory name different tha where you are trying to build it.
So either change the name of the webproject you are trying to build (RECOMMENDED) or delete the Virtual Directory for webApplication1.
|
|
|
|
|
Actually is not the project that is not working is the whole ASP.NET i cannot at any chance create a project i mean i cannot create a project with my asp
|
|
|
|
|
i whould like to know how to open url in the internet exeplorer from windows application
|
|
|
|
|
If IE is set as the default browser the following will work:
System.Diagnostics.Process.Start("http://www.codeproject.com");
|
|
|
|
|
using System.Diagnostics;
Process oProcess = new Process();
oProcess.StartInfo.FileName = "IEXPLORE.EXE";
oProcess.StartInfo.Arguments = "http://www.codeproject.com";
oProcess.Start();
----------
There go my people. I must find out where they are going so I can lead them.
- Alexander Ledru-Rollin
|
|
|
|
|
please can anybody help me
please tell me in javascript so that it should create html page
can anybody tell me how
1)creating a table so that should contain disabled and enabled checkboxes
2)each row should have a special checkbox for unchecking and checking all the enabled checkboxes in that row
3)can also tell me the function for checking and unchecking all the enabled checkboxes in that row
4)it should also contain a label box which shows the selected checkbox name
5)can u also tell me how to place that table in specified position or division
|
|
|
|
|
You might find posting this question in the Web Development[^] forum will provide more help.
|
|
|
|
|
Hi
I am fetching the data from excel sheet and import it into the sql server.
But if i have a worksheet which may contain 10 columns.
Now i want the data from certain columns say column 1, column 5, column 6, and Column 8, column 10, then how can i write the query for this?
Thanks In Advance
|
|
|
|
|
Last time I had to do something like this... thousand of rows in excel files to insert into an Access DataBase...
What I did was.
First, create a typed dataSet with the structure of the Target Tables... ( autogenerate the Insert Command ).
Now the problem is only to fill the DataSet.
Two ways.
First Open the Excel with the COM Object for Excel... and go column by column.... bla bla... and create a row of the DataSet for each row in the Excel file.... and so on..
Second, Export the Excel file to a CSV file and open the txt file from your application and open the file, read line by line and do a split using the ',' the comma, after that do a loop for each line creating a new row of the DataSet...
If there are many lines in the excel files, I recomend you to update every 100 or 200 rows...
Regards
Ricardo Casquete
|
|
|
|
|
Hi
I have one GridView and in this gv i have two column one is mark-printer other is model-printer.So i done this column like template but i don't know how to do exchanging of data when i doing edit???I mean if i choos for example "HP" i want to see only models for hp not all how to link both controls pleas help me.
Good bye best regards
|
|
|
|
|
Hi there,
I'm have a little problem with my page caching. On my admin side, I have a list of members. Lets say I want to update member Dean Martin, then I would click on his name and it takes me to an update page, I will change his last name to something like Martinn. The message displays that the member has been updated successfully. Then I have a link that goes back to the members listing, then it still displays as Dean Martin. I have to press CTRL + F5, then it will only update to Dean Martinn. I don't want to do this.
Each of my pages extend from a base page, and in the load up of this page is does the following:
this.Response.Buffer = true;<br />
this.Response.Expires = 5;<br />
this.Response.ExpiresAbsolute = DateTime.Now.AddMinutes(5);<br />
this.Response.ContentType = "text/html";<br />
this.Response.CacheControl = "private";<br />
this.Response.AddHeader("Pragma", "no-cache");<br />
this.Response.AddHeader("Cache-Control", "Private");<br />
Could this maybe be the problem? Am I doing it right or wrong? Can someone please help me with this problem that I am having??
Regards,
ma se
|
|
|
|
|
hai,
iam working with c# windows application. i want to delete a record from the data grid using delete button. how can that be done if any one have code pls help me.
|
|
|
|
|
hi rajaaa.please try this code is working perfect on my system.
try
{
DialogResult dr=MessageBox.Show("Are you sure you want to delete this row ? ", "Confirm deleting", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (dr ==DialogResult.Yes)
{
DataTable myTable =new DataTable("Transactions");
myTable=this.dataSet11.Tables["Transactions"];
myTable.Rows[dataGrid1.CurrentRowIndex].Delete();
sqlDataAdapter1.Update(myTable);
}
}
catch(Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
jacob bahula
|
|
|
|
|
How would i go about creating a Parameter containing an object (TypeCode.Object) to pass to an update method of a ObjectDataSource.
When I create a new Parameter it won't allow me to set it's value to an object even though I set it's type to object.
Thanks in advance!
|
|
|
|