|
Hi Iam new to .net pls help
Want to develop a component to retrieve first 10 records from a oracle table
Any one help
Lion Heart
Software Engineer
Bangalore
|
|
|
|
|
Have you actually tried anything yet? Were you just expecting someone to hand you the code and say "here you go"?
Getting the first 10 records is as simple as:
SELECT TOP 10 * FROM myTable
Beyond this you will find a download at the MS site for the ADO.NET libraries to work with Oracle. The records may be retrieved using a DataReader, or a DataAdapter and DataSet.
When/if you have some specific difficulties come and post the question.
|
|
|
|
|
i KNOW THIS QUERY
I WANT TO KNOW THE STEPS TO DEVELOP A COMPONENT USING THIS QUERY
ANY WAY THANKS FOR THIS
Lion Heart
Software Engineer
Bangalore
|
|
|
|
|
Please stop shouting.
There are plenty of articles (beginners' level, too) on MSDN and CP.
Please try searching and reading them first.
Regards,
mav
|
|
|
|
|
|
just wondering how you create a messagebox like the ones when installing VS.NET 2005
where you have your message then a horizontal line then some icons to left under line and button on right under line
the icons in het .NET setup where (i think) copy to clipboard, help and print.
is it a matter of creating your own model dialog or is this a new thing in 2005 that i cant find? (yet)
regards,
g00fy
|
|
|
|
|
where can i have the namespace Microsoft.PointOfService
the link for this namespace explanation from msdn is
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ccl/html/T_Microsoft_PointOfSer
vice_PosKeyboard.asp
plz help me urgently
regards
Arun Appukuttan
|
|
|
|
|
Hope u will get here...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ccl/html/N_Microsoft_PointOfService.asp
keep smilling.....b'coz smile is the shortest distance between people....
|
|
|
|
|
where can i have the namespace Microsoft.PointOfService
the link for this namespace explanation from msdn is
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ccl/html/T_Microsoft_PointOfSer
vice_PosKeyboard.asp
plz help me urgently
regards
Arun Appukuttan
|
|
|
|
|
Obviously in an embedded or mobile OS from Microsoft, if you read the breadcrumbs.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
Really? This is what I see at the top of the page:
MSDN Home > MSDN Library > Mobile and Embedded Development > Embedded Operating System Development > Microsoft POS for .NET Overview > POS for .NET > Microsoft.PointOfService
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
Hello
I created an application that the Main window is calling another window(let call it Second).
from the Second form I want to call a function from the Main form.
so I tried to use Second's constructor to pass the Main form so I can call a public function from the Main form, but c# returns an error.
thats the code:
in Main form:
//the public method
public void Saving()
{
...
}
..
..
//somewhere else in the code, calling the Second window
Second dlgSec = new Second(this);
in Second form:
...
private Form dlgParent;
...
public Second(Form formParent)
{
this.dlgParent = formParent;
InitializeComponent();
}
...
//somewhere in the code, trying to call the function
dlgParent.Saving();
c# cannot find that method.
it does make sense because, because the compiler does not know that I'm going to pass the Main form from the beginning, but I already have done something familier in another application I wrote and it did work, I guess that now I'm missing something and I don't know what.
Can anyone help me with that???
THANKS!!!
|
|
|
|
|
Green Fuze wrote:
public Second(Form formParent)
{
this.dlgParent = formParent;
InitializeComponent();
}
You're downcasting the object to it's base class, you need tochange Form formParent to NameOfMyDerivedFormClass formParent.
Although personally I think this is ugly, and your classes get too tighly coupled. I'd use a delegate to perform this callback.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
okay, got it
Thx alot!
and sorry its ugly, I'm teaching C# myself, so I'm not so comfortable with everything, like delegates.
to be honest, I don't really understand what are delegates, and what they're good for...
|
|
|
|
|
A delegate is a function pointer. An example would be any event in your form, such as Click or Load. You can create your own and use them to pass messages between classes.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
oh, I see! thats much better than what I've done.
okay, I'll sit on that. thanks!
|
|
|
|
|
Delegates are hard to explain in a short message, but they suit what you want quite well.
lets start by defining a delegate
<br />
public delegate void SavingDelegate()
This basically says that im going to pass around a reference to a method that takes no parameters and returns void. This signiture should match your Saving method.
Now pass this to the second form instead of the reference to the parent
private SavingDelegate savingDelegate;
public Second(SavingDelegate mySavingDelegate)
{
this.savingDelegate = mySaqvingDelegate;
}
So when second closes you used to try something like this:
this.myParentForm.Saving()
now you could simply do this:
this.savingDelegate()
(ie, you can "call" the delegate as if its a method.)
So to set this up, from the main form your code may look like
SavingDelegate sd = new SavingDelegate(this.Saving);
Form secondForm = new MyFormName(sd);<br />
secondForm.ShowDialog();
HTH
|
|
|
|
|
|
hey am tryig to recognise a href and get the value so i can build a Uri object with it,
all is good so far except when i encounter a href with javascript in it
can anyone refine my regex pls
<br />
Regex RegexObj = new Regex("<\\s*a\\s+[^>]*href\\s*=\\s*[\"']{1}.+[\"'].*>");<br />
kind regards,
g00fy
|
|
|
|
|
what about
@"<\s*a\s+href\s*=\s*"(.+)"\s*>.+</a>"
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
that wont work
if i test it with
1. <a href='test.ds'>asdf</a>
2. <a href='javascript:go('test.ds')'>asdf</a>
3. <a href="/test.ds">asdf</a>
it will only get the number 3.
but if i use
<\s*a\s+[^>]*href\s*=\s*[\"']{1}.+[\"']{1}>
it will get all 3 and i only wont it to catch 1. & 3.
so i need a character class to exclude the '(' ')' chars but i cant quite get syntax right
so i want to ignore anything that has the brackets in the href or other chars that would not be 'normal' for a href, like, ':'
kind regards,
g00fy
|
|
|
|
|
Hi,
I have a DataTable with a column that is AutoIncrement.
After I clear the DataTable, I would like to have the columns AutoIncrementSeed reset to it's original value... is this possible?
Thanks,
Ron
|
|
|
|
|
You have to use DataTable.Reset() method to retain your autoincrmentseed to it's original position.
Sreejith Nair
[ My Articles ]
|
|
|
|