|
|
Please don't cross post. Do you have any idea how you will achieve your project ? I mean, did you just choose it because it sounded cool, or because you had an idea how to go about it ? I assume you know C# and ASP.NET, as that's where you asked. No way are you doing any sort of graphical VR world in ASP.NET.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
What was the original question?
---mod
Never mind, went to the asp.net forum
"Try asking what you want to know, rather than asking a question whose answer you know." - Christian Graus
|
|
|
|
|
Word of advice...if you have no idea how to start the project, pick something else. And learn how to spell. Don't use text speak at this site.
__________________________
Don't drink and derive.
Alcohol and calculus don't mix.
|
|
|
|
|
Virtual doesn't do anything with Asp.net. Instead go with Adobe or flash player to create a website.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
hi
i want to create driver for my own devices, how to create driver with csharp?
thanks
|
|
|
|
|
You don't.
You need to write device drivers in native (unmanaged) code so they are more deterministic. The only drivers you can (mostly) write in C# are USB drivers.
--
Where are we going? And why am I in this handbasket?
|
|
|
|
|
thanks.
is there any helpFul article for full working with usb ?
|
|
|
|
|
Maybe you can check out the following:
http://www.sharpdevelop.com/OpenSource/SharpUSBLib/default.aspx
good luck
|
|
|
|
|
Here am trying to delete the row in the dataset for Delete button click on each row and finally, when I click SAVE button, the entire dataset will be pushed into the db.
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
DataSet dsGr = (DataSet)Cache["MyGrid"];
int RowID = (int)GridView1.DataKeys[e.RowIndex].Value;
dsGr.Tables[0].Rows[RowID].Delete();
Cache["MyGrid"] = dsGr;
GridView1.DataSource = dsGr;
GridView1.DataBind();
}
The DataKeyNames property for gridview is set to "id".
When I delete the first row on the grid, the RowID=1 and hence the first row on the dataset gets deleted but actually the first row (0th row) should be deleted. Can you please suggest if am going wrong on identifying the RowID?
int RowID = (int)GridView1.DataKeys[e.RowIndex].Value;
Just guide me how to find the correct RowID
Thanks.
|
|
|
|
|
Should be:
int RowID = e.RowIndex;
This gets the correct Index for the row that fired the event.
|
|
|
|
|
Thanks. I was finding the value.
|
|
|
|
|
HI,
i like to know if there is a special control that can do this :
imagne a table :
----Att1----Att2----
row1____----____----
row2____----____----
____ - the row/Att cross junction
i like to know if there is a possibilty to put there ( ____ )
a Combo box or any kind of a control or even number of controls
please HELP!!!!
if u can help me, i can talk over the messnger : kobiamor@gmail.com
THNKS
kobkob
|
|
|
|
|
I think I safely speak for everyone when I say "Uhhh... WHAT?"
|
|
|
|
|
HI
can i send u an email with a drawing that will explaine more???
kobkob
|
|
|
|
|
No. My mail filters will just delete it. I don't accept "direct email responses" from CodeProject, unless you're in an exception list. And you're not in the exception list.
Post your image on Flickr or any other free photo hosting site and post the link to it here.
|
|
|
|
|
Putting combo boxes, etc, inside data grids is the subject of countless articles here, and elsewhere.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Okay I can't get my update to work. here is my code:
namespace DBWinVoice
{
public partial class Company : Form
{
WinVoiceDataSet companyDS = new WinVoiceDataSet();
public Company()
{
InitializeComponent();
}
private void Company_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'winVoiceDataSet.Company' table. You can move, or remove it, as needed.
this.companyTableAdapter.Fill(this.winVoiceDataSet.Company);
}
private void button1_Click(object sender, EventArgs e)
{
try
{
this.companyBindingSource.EndEdit();
this.companyTableAdapter.Update(this.companyDS);
MessageBox.Show("Update Successful");
}
catch (System.Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
}
}
I know I am doing something dumb...can anyone help me?
Thanks
Christopher J. Thornburg
Senior Systems Analyst
Ideal Card
|
|
|
|
|
What are the error messages, if any?? Define how it's "not working".
Does this table have a primary key that is returned by the SELECT statement?? The adapters won't work without it. The Adapters write the changes back to the database by executing the INSERT, DELETE, and UPDATE command for each line in the table that needs updating. Without a primary key in your table, AND without that key being part of the resulting recordset, there is no way for the TableAdapter to tell the SQL database which record to update and how to do it.
|
|
|
|
|
Yes I have a primary key. I am not getting any error messages it just will not work. I have just added tables to my dataset so I need to change my code a bit.
Would this work better if I used a datatable variable assigned my company table and then passed the datatable to the update or should I use datarows?????
I just want you to know I have no idea what I am doing....
I am a little confused about the whole thing.
Christopher J. Thornburg
|
|
|
|
|
You're passing an empty DataSet to the update method.
You intialize companyDS as new and then never assign any data to it.
That's why there is no error. It is successfully updating with an empty DataSet into a database (that presumably) allows NULL values or empty strings.
|
|
|
|
|
Okay cool...will you show me how to do it????
I think I would need a dataset.table variable and then assign it the data of the current row, and then pass that to the tableadapter.update() is this right?
can you show me how you would do it in some code. I have 4 tables in my dataset.
Dataset = WinVoiceDataSet
Table = Company
Christopher J. Thornburg
|
|
|
|
|
Hi ,
How in C# .NET find the position of specifig image (saved for example in Bitmap) on the screen ?
Life would be much easier if we just could look at the source code
|
|
|
|
|
If you already know the exact bitmap you want to find, you can do a screen capture, then look for an exact pixel match from there. I don't recall how to do the screen capture, but I know there's support for it. You would use code like that in my image processing articles to turn the two bitmaps into byte arrays and go looking for the scanline that represents the top of the bitmap.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|