|
actually i m new to dot net
i m using oledb connection
and my query is
"select * from tableabc where name = ? and id = ?"
i dont know how to map these parameters to my command object can any body tell me please
thanks
hello
|
|
|
|
|
Before posting your questions here in the forum did you read the guidlines of how to post the question in the forum.
pls make your subject with suitable topic relevant to your question.
Don't name your subject as hi, hi all.
pls be specific in your subject and post the questions here.
Regards,
Satips.
|
|
|
|
|
Create OleDbParameter objects. Assign them a data type and a value and add them to the collection of parameters of the command object IN THE EXACT ORDER THEY APPEAR IN THE STATEMENT.
|
|
|
|
|
In OleDb you use named parameters:
"select * from tableabc where name = @Name and id = @Id"
Use "@Name" and "@Id" as names when you create the parameter objects for the command.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi.
Is there a way to get the number of the print jobs pending for a specified installed printer?
Thanks.
|
|
|
|
|
|
Martin# wrote: Hope it helps!
It sure helped. Thanks a lot!
|
|
|
|
|
hi all
i am passing two parameters via responce.redirect but its not working can
any body please tell me the exzact syntax
Response.Redirect ("Employee.aspx?id= "+ this.DropDownList1.SelectedValue + "?name=" + this.TextBox1.Text);
hello
|
|
|
|
|
ghumman63 wrote: onse.Redirect ("Employee.aspx?id= "+ this.DropDownList1.SelectedValue + "?name=" + this.TextBox1.Text);
Response.Redirect ("Employee.aspx?id= "+ this.DropDownList1.SelectedValue + "&name=" + this.TextBox1.Text);
Regards,
Satips.
|
|
|
|
|
ghumman63 wrote: Response.Redirect ("Employee.aspx?id= "+ this.DropDownList1.SelectedValue + "?name=" + this.TextBox1.Text);
Use an ampersand (& ) symbol to append the fields after the first one as follows:
Response.Redirect ("Employee.aspx?id= "+ this.DropDownList1.SelectedValue + "&name=" + this.TextBox1.Text);
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Thats what i too have mentioned it.
Regards,
Satips.
|
|
|
|
|
Dear Satips,
See the time delay between you and me.
This shows that we are in the same wavelength.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
yeah i didn't notice the time. Ok.
Regards,
Satips.
|
|
|
|
|
Hello everyone,
I'm starting to work on a project. This project will incorporate so many components from previous work of another colleague. He did all his work in a separate project. Basically,I'm trying to
do a wizard-based version of hsi work with screens and neat menus and so on. I was wondering how I can use functions and events that he programmed into my project without having to hard-code or copy code into my own project.
For example, I want to call an event function from his work when i click a "next" button in my project.
I hope the questions is clear enough. and Thanks for any help. It will be much appreciated.
|
|
|
|
|
Recompile his code as a dll/dlls.
Now include reference those dlls in your code.
You might have to make some minor changes to compile it as a dll. (All this on the assumption that his code is currently compiled to an executable, you have good understanding of his code)
rAm
i Think, i Wait, i Fast -- Siddartha
|
|
|
|
|
Hi guys, whats up ? How can I change the Input Language From English to Farsi Or other languages, a friend told me to use this code (This is a delphi ample)
LoadKeyboardLayout('0000040c', KLF_ACTIVATE);<br />
Application.BiDiKeyboard := '0000040c';
Does the same code works in C#, if so where can I get a sample? Please help me out !
Thanx
Mr.K
|
|
|
|
|
|
Hello Everybody,
In my program i have to encrypt the password and i have to store it in the SQL server database.
It should by very strong.
Could you please give me a hint
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
The Cryptography namespace is full of options. MD5 is definately not a secure option, FWIW.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
Thank you Christian.
What do you mean by FWIW, is it a encryption method. plz don't mistake me
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
For What It's Worth = FWIW
Use SHA256 - that's pretty strong - we use it in my company (note I'm not saying WHICH company)
Mark
|
|
|
|
|
Thank you for your kind suggesstion
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Mark Greenwood wrote: we use it in my company (note I'm not saying WHICH company)
Most companies use this I suspect - as it is very easy to use and very strong. Usually with a strong password as well.
|
|
|
|
|
When i tried and go through the SHA256 algorithm i felt it is very difficult to implement and they have used it for encrypting the files but i have to get a password from the user and i have to encrypt the password and i have to store it in the database.
Please give me your suggestions because i am new to this concept
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
I'm having difficulty returning a nested object through a WCF service. A nudge in the right direction would be much appreciated! Here's what I'm doing:- I have 2 data contracts (classes
Foo and Bar ) defined thusly:
[DataContract]
[Serializable]
public class Foo
{
[DataMember]
public string FooData;
[DataMember]
public Bar TheBar;
}
[DataContract]
[Serializable]
public class Bar
{
[DataMember]
public string BarStringData;
[DataMember]
public int BarIntData;
} - My service consists of a single operation:
[ServiceContract()]
public interface IMyService
{
[OperationContract]
Foo GetFoo();
} GetFoo() is implemented as:
public Foo GetFoo()
{
Foo f = new Foo();
f.FooData = "foo";
f.TheBar = new Bar();
f.TheBar.BarStringData = "bar";
f.TheBar.BarIntData = 42;
} - When the service is invoked, it returns a
Foo object that contains a Bar object. However, the properties of the Bar instance aren't returned - its BarStringData is null and its BarIntData is zero. Any idea what I'm doing wrong?
/ravi
|
|
|
|