| DDE command with sqlComman object |
|
 |
Index ‹ DotNet ‹ ADO
|
- Previous
- 1
- Visual C#.Net >> Drag and Drop into ListviewI am having problems with drag and drop into a listview. I am able to
drag and drop items from within the listview, as well as drag items
from the listview and drop into a picturebox. However, I am not able
to drag the text or image from the picturebox to the listview. In the
listview_dragenter function, I have e.Effects = DragDropEffects.Copy (I
have also tried e.Effects = DragDropEffects.Move, but it does not help
either), which is the same as what I have for the picturebox_dragenter
function. However, when I try to drag from the picturebox to the
listview, the cursor gives the same effect as DragDropEffects.None, and
the listview.DragDrop function never gets called. Does anyone have any
ideas of anything I am doing wrong? Thanks.
- 2
- Visual C#.Net >> Parsing using RE?Hello all
I have a huge string that I need to parse
Key <Delim1> Value <Delim2> Key <Delim1> Value <Delim2> Key <Delim1>
Value <Delim3>
Key <Delim1> Value <Delim2> Key <Delim1> Value <Delim2> Key <Delim1>
Value <Delim3>
repeat for a couple hundred thousand times
The <Delim1> seprates the Key, Value pair
<Delim2> seprates two different Key,Value pairs
<Delim2> seprates records.
I need to get the Key Value pairs and populate a table with that
information.
Would the .NET regular expressions be worth while and how would I go
about doing it in a clean optimized fashion.
Thanks
-Ravi Singh
- 3
- Winforms >> Acceptbutton does not work in usercontrols.If you have buttons on a form and you tab around when a button gets focus it
automatically gets highlighted. That is the forms AcceptButton changes to
the currently focused button. However when you have a usercontrol with a few
buttons in it and you tab around in there when the button gets focus it does
not automatically get highligthed. You can press Spacebar to activate but
that is not desired behaviour. Dont want to handle leave and enter events on
all buttons just because they are in a usercontrol to get them highlighted.
How can this be achieved?
Best Regards
//P
- 4
- Visual C#.Net >> Class design helpHi
I am looking at implementing a Facade architecture in my system. i.e
MyBusinessFacdeSystem and multiple MyBusinessObjects
I want the MyBusinssObject class to only be created by the
MyBusinessFacdeSystem class.
i.e
using System;
namespace FacadeTest.MyFacade
{
/// <summary>
/// Summary description for MyFacadeSystem.
/// </summary>
public class MyFacadeSystem
{
private MyBusinessObject_MyBusinessObject = null;
public MyFacadeSystem()
{
_MyBusinessObject= new MyBusinessObject();
}
public MyBusinessObjects MyBusinessObjectsBLL
{
get
{
return _MyBusinessObjects;
}
}
}
}
How do I set the accessability if the MyBusinessObject class i.e.:
using System;
namespace FacadeTest.MyFacade
{
/// <summary>
/// Summary description for MyBusinessObject .
/// </summary>
internal class MyBusinessObject
{
public MyBusinessObject ()
{
}
public string SomeMethod(){
return "Hello";
}
}
}
Hope that is clear,
S
- 5
- Visual C#.Net >> Order Text as NumbersHi,
I am currently writing a requirements gathering system which which
have requirement values of 1.1, 1.1.2, 1.1.3, 2.3.4.5 etc etc.
This works fine stored as varchar in SQL Server 2000 until I want to
sort it in a .Net datagrid. As soon as I reach 10, it obviously puts
the record down with the 1's and I am guessing 20 will go with the 2's
etc etc.
Can anyone suggest a way of getting round this - I know it is because
of the details being stored as text but I need some sort of solution.
Thanks
- 6
- Microsoft Project >> Export to Excel weirdnessProject Server 2003...
When I am on the Project Web Access page, and do Resources --> View Resource
Assignments -->Export Grid to Excel, I get different data in the Excel
spreadsheet than what is showing in the grid on the web page.
1) Tasks that have been deleted from projects are showing in Excel
2) Tasks where the rsource assignments have been changed are showing both
the new and the old asssignments (old assignments can't be found anywhere
else and we don't want them)
How can I fix this?
Thanks!
--
Jim
- 7
- Dotnet >> System.Messaging namespace missing in VB.NET?After spending a little time reading the documentation, I attempted to add
some messaging code to my VB.Net project, only to discover that I couldn't
get past my
Imports System.Messaging
statment because the System.Messaging namespace is missing. Did I fat
finger it into oblivion without knowing it, or is this a known issue? Any
suggestions on how to fix this, in any case?
Any help appreciated...
- 8
- Visual C#.Net >> 0.00007m -> 7E-5 ?Hello.
I'd want to see the right value that inserted, but very small value like
0.00007m doesn't displayed exactly(displayed 7E-5).
ex)
decimal b = 0.00007m;
TextBox.Text = b.ToString(); => 7E-5
TextBox.Text = b.ToString("F"); => 0.00
TextBox.Text = b.ToString("0.00000"); => 0.00007 (but 0.00000007 not
supported)
TextBox.Text = b.ToString("0.0000000000"); => 0.0000700000
so, I want to know the string format type that all decimal values show the
values as it is.
decimal b = 0.00007m; ( for all decimal cases like 0.0000007m,
0.0000000000007m )
TextBox.Text = b.ToString(????); => 0.00007
Please, help me~ ^^
ps. maybe understanding this question is harder than solving..^^ sorry and
thanks..
- 9
- Visual C#.Net >> How to draw a rectangle on AxWebBrowser to high light one html element?Hi,
Now I can get the rectangle to draw, but it seems the rectangle is not
visible. The following code is used to draw the rectangle. Hope someone can
help. Thanks very much!
SolidBrush brush = new
System.Drawing.SolidBrush(System.Drawing.Color.Red);
Pen pen = new Pen(brush, 4);
Graphics formGraphics = Graphics.FromHwnd(this.axWebBrowser.Handle);
formGraphics.DrawRectangle(pen, rect);
- 10
- Visual C#.Net >> Getting location in a scrollable pictureboxHi,
I have a scrollable view which contains a picturebox.
I need to get the location of the top let hand corner of the view so I
can draw an icon.
When the picturebox is scrolled vertically I need the icon to remain in
the top left hand corner of the view.
At the moment whenever I scroll the picturebox down, the icon gets
hidden.
Thanks in advance.
private void pictureBox1_Paint(object sender,
System.Windows.Forms.PaintEventArgs e)
{
// Need to get the correct location otherwise the
rectangle will disappear when
// the picture is scrolled up
Rectangle boundingRect = new Rectangle(0, 0, 150, 50);
LinearGradientBrush myLinearGradientBrush = new LinearGradientBrush(
boundingRect,
Color.AliceBlue,
Color.Silver,
LinearGradientMode.ForwardDiagonal);
e.Graphics.FillRectangle(myLinearGradientBrush, boundingRect);
Rectangle rc = boundingRect;
rc.Inflate(-1,-1);
e.Graphics.DrawRectangle(new Pen(SystemColors.Highlight), rc);
}
- 11
- ADO >> I don't understand pooling :-SOK, I understand what it's supposed to do, but I don't understand what it is
actually doing. Actually, I don't understand the .Net CLR Data values
numbers reported by Performance Monitor.
I wrote a very simple app that allows me to specifically open and close a
sql connection. When I open the connection, I see the Current # connection
pools increase by one and the Current # pooled connections increase by 2.
This is consistant with my understanding of what the pooling is supposed to
do. I can open and close the connection as many times as I like and the
numbers don't change.
When I close the app, the numbers in performance monitor remain the same. I
was expecting them to go away.
Then I run the app again. I open the connection and the previously mentioned
values increase again! Basically, it's like a whole new pool is created
again. What is going on? Is Performance Monitor misreporting or is the
pooling not working properly. Reading some of the messages here about this
subject, it appears that the latter would be true.
Even after I close VS, Performace Monitor continues to report the same
values. They don't go away.
--
Willy Esteban
- 12
- 13
- Net Framework >> DataGrid / FlexGrid - Expand/Collapse rowsHi everyone,
Can anyone advice me of a way to emulate the Tree Control by the use of
DataGrid for Web forms?
What I would ideally like to do is to have Summary rows with details rows
hidden until such time that the user clicks a particular Summary row.
Clicking it again will hide the details rows (collapse).
I thought of dynamically adding rows to the DataGrid by querying the
database using the selected row's ID but it seems this option will chew up
lots of resources.
Any suggestions are gladly welcomed.
- 14
- Dotnet >> Parameter replacement wizard using code templates in Visual Studio 2005Hey all , I wanted to create a project or item template in C# such
that when I use that template a parameter wizard comes up asking for
values. I know how to create the template without implementing the
wizard, i.e., work the parameter replacement using the
<CustomParameters> keyword in XML.
So any hints or suggestions towards the procedure to having the
parameter replacement wizard (a GUI of some sort) would be greatly
appreciated,
cheers
- 15
- ADO >> Dataadapter Add vs UpdateI have a generic question regarding ADO.net and how the CommandBuilder works.
I have a datagrid/dataset that is partially populated from pre exisiting records in a database table as well as NEW records/rows which are being added to the same dataset by a user via a simple textbox/form.
My question is, when the user is done adding new records and hits the final UPDATE button, does the dataadapter automatically know which records in my dataset are UPDATE preexisiting records as well as ADD new records (added manually by the user/form) or do I need to somehow programmatically , iterate through each row of the dataset, determine which rows are ADDS and which rows are UPDATES and then assign the appropriate SQL Sub Call (or if then) to each row in order to update the database table.
Thanks
devon
|
| Author |
Message |
SteveU

|
Posted: Thu Sep 07 05:28:02 CDT 2006 |
Top |
ADO >> DDE command with sqlComman object
Hi,
i try to execute a DDE command with an SQlClientSQLCommen object and i
obtain "syntax error near "Then" ":
dim sql as string
sql = "CREATE TRIGGER myTrigger " & _
"ON MyTable " & _
"AFTER(UPDATE) " & _
"AS " & _
"BEGIN " & _
"SET NOCOUNT ON; " & _
"If UPDATE(Myfield) Then " & _
"BEGIN " & _
"UPDATE MyTable SET MyOtherField=1 WHERE myID IN (SELECT myID from INSERTED)
" & _
"END " & _
"END"
dim oCmd as new sqlClient.SqlCommand(sql,MyConnection)
oCmd.CommandText = sql
oCmd.ExecuteNonQuery()
So, is my syntax incorrect ? (this request works well in a query analyzer)
Best regards,
--
Sebho
DotNet124
|
| |
|
| |
 |
Sebho

|
Posted: Thu Sep 07 05:28:02 CDT 2006 |
Top |
ADO >> DDE command with sqlComman object
Read SqlClient.SqlCommand of course
|
| |
|
| |
 |
Sebho

|
Posted: Thu Sep 07 11:54:01 CDT 2006 |
Top |
ADO >> DDE command with sqlComman object
oups,
when i copy / paste the request from a query analyzer to visual studio,
VS add the keyword "then" automatically and change UPDATE to (UPDATE)
forgot my question ;o)
--
Sebho
"Sebho" wrote:
> Hi,
>
> i try to execute a DDE command with an SQlClientSQLCommen object and i
> obtain "syntax error near "Then" ":
>
> dim sql as string
>
> sql = "CREATE TRIGGER myTrigger " & _
> "ON MyTable " & _
> "AFTER(UPDATE) " & _
> "AS " & _
> "BEGIN " & _
> "SET NOCOUNT ON; " & _
> "If UPDATE(Myfield) Then " & _
> "BEGIN " & _
> "UPDATE MyTable SET MyOtherField=1 WHERE myID IN (SELECT myID from INSERTED)
> " & _
> "END " & _
> "END"
>
> dim oCmd as new sqlClient.SqlCommand(sql,MyConnection)
> oCmd.CommandText = sql
> oCmd.ExecuteNonQuery()
>
> So, is my syntax incorrect ? (this request works well in a query analyzer)
>
> Best regards,
> --
> Sebho
|
| |
|
| |
 |
| |
 |
Index ‹ DotNet ‹ ADO |
- Next
- 1
- Visual C#.Net >> Select Users or Groups FormHi,
I have one Listbox and Two buttons one is Add and Other is Remove.
When i click the add button i want to show the Select Users or Groups
Form(i.e, When you right click any file or folder and click Properties
and then Go to Seurity Tab and Click Add Button. Now it will show the
Select Users or Groups Form.After selecting the user when you click ok.
The user will be added to the Listbox).
Now my requirment is i have custom listbox and Add and Remove
Buttons and i need when user click the Add button i want to show the
Select Users or Groups Form(system form). Then when they select any
user that user have to be added in my Custom list box.
How can i do this? If anybody knows the solution please let me know to
solve it?
Thanks,
Vinoth
- 2
- Net Framework >> .NET 2.0 vs .NET 1.1 - comparsionI been asjed to provide comparsion between 2.0 and 1.1 and realized I do not
know too much about subject.
I know there is generics, faster runtime and better tools... but can
somebody point me to better comaprsion guide? Why should we move to .NET 2.0 ?
thanks.
- 3
- 4
- ADO >> Regenerate datasetsHow do other "regenerate a dataset" and when that term is used, what does it
mean? Telling the designer to "generate" a dataset results in a NEW file,
which you then have to jerk around to fit into the old structure. An easier
way seems to be just to go into the designer and make changes. Example, I'm
making changes to the underlying database. So I go into the .xsd and delete
the old table structure and add the new table structure (and relations). Is
there any other way?
- 5
- Microsoft Project >> mail mergeAlthough I am quite fluent in using Ms word I cant get my head around mail merge,
crewating an address list and print envelopes etc from that list. Please can anyone help thanks.
- 6
- Visual C#.Net >> Keyboard Hook, HotkeysSo I have a keyboard hook that I have implemeted into my c# app. I need to
not allow any hotkey actions to be performed when my app is opened. I can
capture the key events and handle them if I want to. The only problem is
that I have fields that require input. Do I have to programmatically add the
characters to the input fields when I am handling the event. I don't want
these keys sent to the system. But only to my program.
Or does someone else have an idea on how to get all the hotkeys, unregister
them, then re-register them when the application exits?
I would think there would be some low level call that would allow this.
- 7
- Visual C#.Net >> The Muslim's CreedThe Muslim's Creed
Sorry for not sending anything related to this group but it might be
something new to you.
Question No.1
Why has Allaah created us?
Answer
To worship Him alone and to worship no other besides Him.
Evidence from the Noble Qur.aan
{And I have not created Jinn and human beings except they should
worship Me}, {Soorah adh-Dhaariyaat, Aayah 56]
Evidence from the authentic Sunnah
((The right of Allaah upon slaves is to worship Him and not to
associate partners with Him)), Transmitted by al-Bukhaaree and
Muslim]
--------------------------------------------------------------------------------
Question No.2
How should we worship Allaah?
Answer
As Allaah and His Messenger commanded us.
Evidence from the Noble Qur.aan
{And they were commanded not, but that they should worship Allaah, and
worship none but Him alone}, {Soorah al-Bayyinah, Aayah 5]
Evidence from the authentic Sunnah
((Whoever does any deed (in religion) which our matter in not in
accordance with, it will not be accepted)), [Transmitted by Muslim]
--------------------------------------------------------------------------------
Question No.3
Should we worship Allaah with fear and hope?
Answer
Yes, we worship Him with fear and hope.
Evidence from the Noble Qur.aan
{And invoke Him with fear and hope}, {Soorah al-A'raaf, Aayah 56]
Evidence from the authentic Sunnah
((I beseech Allaah to grant me Paradise and I seek refuge in Him from
Hellfire)), [Transmitted by Abu Daawood]
--------------------------------------------------------------------------------
Question No.4
What is Ihsaan (perfection in worship)?
Answer
Ihsaan is to be conscious that Allaah sees us during worship.
Evidence from the Noble Qur.aan
{Who sees you (O Muhammad) when you stand up (alone at night for
Tahajjud prayer)}, {Soorah ash-Shu'araa, Aayah's 218]
Evidence from the authentic Sunnah
((Ihsaan is to worship Allaah as if you are seeing Him, yet truly He
is seeing you)), [Transmitted by Muslim]
--------------------------------------------------------------------------------
Question No.5
Why did Allaah send the Messengers?
Answer
To call mankind to His worship and to reject the worship of anything
besides Allaah.
Evidence from the Noble Qur.aan
{And verily We have sent among every nation a Messenger (proclaiming)
worship Allaah alone and avoid Taaghoot (false deities)}, {Soorah an-
Nahl, Aayah 36]
Evidence from the authentic Sunnah
((The prophets are brothers and their faith is one)), [Transmitted by
al-Bukhaaree and Muslim]
--------------------------------------------------------------------------------
Question No.6
What is meant by (Tawheed) oneness of Allaah?
Answer
It means devoting worship to him alone like supplication, vow,
judgment.
Evidence from the Noble Qur.aan
{So know (O Muhammad) that there is no God except Allaah}, {Soorah
Muhammad, Aayah 19]
Evidence from the authentic Sunnah
((Let the first thing you invite them to do is to testify that none
has the right to be worshipped but Allaah)), [Transmitted by al-
Bukhaaree and Muslim]
--------------------------------------------------------------------------------
Question No.7
What is the meaning of there is no God but Allaah?
Answer
It means there is no deity that truly deserves to be worshipped except
Allaah.
Evidence from the Noble Qur.aan
{That is because Allaah, He is the truth and that is which they invoke
besides Him is al-Baatil (falsehood, Satan, and all other deities)},
{Soorah al-Hajj, Aayah 62]
Evidence from the authentic Sunnah
((Whoever says there is no God except Allaah and rejects whatever is
worshipped besides Allaah, his property and blood become sacrosanct
and his reckoning with Allaah , the Mighty and Exalted)), [Transmitted
by Muslim]
--------------------------------------------------------------------------------
Question No.8
What is meant by oneness of names and attributes of Allaah?
Answer
To confirm the names and attributes as Allaah described them in His
Book and as His Messenger described them in authentic Sunnah.
Evidence from the Noble Qur.aan
{There is nothing like unto Him and His the All-Hearer, the All-Seer},
{Soorah ash-Shooraa, Aayah 11]
Evidence from the authentic Sunnah
((Allaah descends each night to the first heaven)), [Transmitted by
Ahmad]
--------------------------------------------------------------------------------
Question No.9
What is the benefit of monotheism (oneness of Allaah) to the Muslim?
Answer
Right guidance in this world and salvation from eternal punishment in
the Hereafter.
Evidence from the Noble Qur.aan
{It is those who believe (in oneness of Allaah) and confuse not their
belief with Thulm (wrong) by worshipping others besides Allaah) for
them (only) there is security and they are guided}, {Soorah al-An'aam,
Aayah 82]
Evidence from the authentic Sunnah
((The right of worshippers upon Allaah is that He will not punish
those who worship none beside Him)), [Transmitted by al-Bukhaaree and
Muslim]
--------------------------------------------------------------------------------
Question No.10
Where is Allaah?
Answer
Allaah is over the Throne which is above the seven heavens.
Evidence from the Noble Qur.aan
{ar-Rahmaan (The Merciful) Istawaa (rose over) the Throne}, {Soorah
Taa Haa, Aayah 5]
Evidence from the authentic Sunnah
((Allaah wrote out in a book with Him over the throne that His Mercy
preceded His Wrath)), [Transmitted by al-Bukhaaree]
--------------------------------------------------------------------------------
Question No.11
Is Allaah with us by His entity or knowledge?
Answer
Allaah with us by His knowledge, He hears and sees us.
Evidence from the Noble Qur.aan
{He (Allaah) said: Fear not, verily I am with you both, Hearing and
Seeing}, {Soorah Taa Haa, Aayah 46]
Evidence from the authentic Sunnah
((You call upon the one Who hears, Who is near and is with you)),
[Transmitted by Muslim]
--------------------------------------------------------------------------------
Question No.12
What is the greatest sin with Allaah?
Answer
It is the major Shirk (polytheism).
Evidence from the Noble Qur.aan
{Verily whoever sets partners with Allaah, then Allaah has forbidden
paradise for him and the Fire will be his abode}, {Soorah al-Maa.idah,
Aayah 72]
Evidence from the authentic Sunnah
((The Prophet was asked : what is the greater sin , he said: To
ascribe partners to Allaah even though he created you)), [Transmitted
by al-Bukhaaree]
--------------------------------------------------------------------------------
Question No.13
What is the major shirk (polytheism)?
Answer
It is to devote any forms of worship to one other than Allaah.
Evidence from the Noble Qur.aan
{Verily Allaah forgives not that partners should be set up with Him in
worship, but He forgives except that to whom He pleases}, {Soorah an-
Nisaa., Aayah 48]
Evidence from the authentic Sunnah
((The greatest sins are polytheism etc.)), [Transmitted by Muslim]
--------------------------------------------------------------------------------
Question No.14
What is the harm of major shirk?
Answer
The reason for eternity in Hellfire.
Evidence from the Noble Qur.aan
{Verily whoever assigns partners (commits Shirk) to Allaah, Allaah
makes it impermissible for him to enter al-Jannah}, {Soorah al-
Maa.idah, Aayah 72]
Evidence from the authentic Sunnah
((Whoever died while joining partners with Allaah (commits Shirk)
enters Hellfire)), [Transmitted by Muslim]
--------------------------------------------------------------------------------
Question No.15
Are good deeds of any benefit to one who worships others besides
Allaah?
Answer
No, good deeds are of no benefit to those who worship others besides
Allaah.
Evidence from the Noble Qur.aan
{But if they had joined in worship others with Allaah, all that they
used to do would have been of no benefit to them}, {Soorah al-An'aam,
Aayah 88]
Evidence from the authentic Sunnah
((Who ever does any deed in which he associates partners with Me, I
reject him and his Shirk)), [Transmitted by Muslim]
--------------------------------------------------------------------------------
Question No.16
Does Shirk exist among Muslims today?
Answer
Yes, it does exist.
Evidence from the Noble Qur.aan
{And most of them believe not in Allaah except that they attribute
partners (unto Him)}, {Soorah Yoosuf, Aayah 106]
Evidence from the authentic Sunnah
((The doom Day will not occur until some tribes of my Ummah (Islaamic
nation) have joined the idolaters and they will even worship idols)),
[Transmitted by at-Tirmidhee]
--------------------------------------------------------------------------------
Question No.17
What is ruling concerning praying (supplicating) to other than Allaah
like the dead?
Answer
Praying to them is a major Shirk.
Evidence from the Noble Qur.aan
{Invoke not with Allaah another ilaah (God) Lest you be among those
who receive punishment}, {Soorah ash-Shu'araa, Aayah 213]
Evidence from the authentic Sunnah
((Whoever dies having called upon partners besides Allaah shall enter
Hellfire)), [Transmitted by al-Bukhaaree]
--------------------------------------------------------------------------------
Question No.18
Is supplication a form of worship?
Answer
Yes, supplication is worship.
Evidence from the Noble Qur.aan
{And your Lord said: Invoke Me, I will respond to your invocation},
{Soorah Ghaafir, Aayah 60]
Evidence from the authentic Sunnah
((Supplication is worship)), [Transmitted by at-Tirmidhee]
--------------------------------------------------------------------------------
Question No.19
Do dead hear our supplication?
Answer
No, they do not hear.
Evidence from the Noble Qur.aan
{But you can not make hear those who are in graves}, {Soorah Faatir,
Aayah 22]
Evidence from the authentic Sunnah
((Allaah Has assigned angels to inform me of my nation salutation)),
[Transmitted by Ahmad]
--------------------------------------------------------------------------------
Question No.20
Do we seek help from those who are dead, or from those who are not
present?
Answer
No we do not seek help from, we rather seek help from Allaah.
Evidence from the Noble Qur.aan
{Remember when you sought help of your Lord, and He answered you},
{Soorah al-Anfaal, Aayah 9]
Evidence from the authentic Sunnah
((O Ever-Living, Self-Subsistent, upon Him all subsist, I seek help
through Your Mercy)), [Transmitted by at-Tirmidhee]
--------------------------------------------------------------------------------
Question No.21
Is it permitted to seek help from any other besides Allaah?
Answer
No, it is not permitted.
Evidence from the Noble Qur.aan
{You (alone) we worship and you (alone) we ask for help}, {Soorah al-
Faatihah, Aayah 5]
Evidence from the authentic Sunnah
((If you ask, ask of Allaah, if you seek help seek help of Allaah)),
[Transmitted by at-Tirmidhee]
--------------------------------------------------------------------------------
Question No.22
May seek help from the living?
Answer
Yes, in the matters in which they are able to help.
Evidence from the Noble Qur.aan
{Help one another in al-Birr and at-Taqwa (virtue, righteousness)},
{Soorah al-Maa.idah, Aayah 2]
Evidence from the authentic Sunnah
((Allaah helps the worshipper as long as the worshipper helps his
brother)), [Transmitted by Muslim]
--------------------------------------------------------------------------------
Question No.23
Is it allowed to make vows to other than Allaah?
Answer
No, it is not allowed to swear oaths except in Allaah's Name.
Evidence from the Noble Qur.aan
{O my Lord I have vowed to You what is in my womb to be dedicated for
Your services}, {Soorah Aal-'Imraan, Aayah 35]
Evidence from the authentic Sunnah
((Whoever vows to obey Allaah should obey Him, and whoever vows to
disobey Him should not disobey Him)), [Transmitted by al-Bukhaaree]
--------------------------------------------------------------------------------
Question No.24
Is it allowed to sacrifice in any name besides Allaah?
Answer
No, it is not allowed.
Evidence from the Noble Qur.aan
{Therefore turn in prayer to your Lord and sacrifice (to Him only)},
{Soorah al-Kowthar, Aayah 2]
Evidence from the authentic Sunnah
((Allaah curses whoever sacrifices and slaughters in any name other
than Allaah)), [Transmitted by Muslim]
--------------------------------------------------------------------------------
Question No.25
Is it permitted to circumambulate the graves of pious men?
Answer
No, it is not allowed.
Evidence from the Noble Qur.aan
{And circumambulate the Ancient House (the Ka'bah in Makkah)}, {Soorah
al-Hajj, Aayah 29]
Evidence from the authentic Sunnah
((Whoever circumambulate the House (Ka'bah) seven times and prays two
rak'ah)), [Transmitted by Ibn Maajah]
--------------------------------------------------------------------------------
Question No.26
Is it allowed to pray while the grave is in front of you?
Answer
No, it is not allowed.
Evidence from the Noble Qur.aan
{So turn your face in the direction of al-Masjid al-Haraam}, {Soorah
al-Baqarah, Aayah 144]
Evidence from the authentic Sunnah
((Don`t sit on the graves and do not pray towards them)), [Transmitted
by Muslim]
--------------------------------------------------------------------------------
Question No.27
What is the ruling in Islaam concerning the practice of sihr (black
magic/sorcery)?
Answer
The practice of sihr is considered an act of disbelief.
Evidence from the Noble Qur.aan
{But the Devils disbelieved, teaching men sihr (magic and such
things)}, {Soorah al-Baqarah, Aayah 102]
Evidence from the authentic Sunnah
((Avoid seven destroyers: Shirk, sihr...)), [Transmitted by Muslim]
--------------------------------------------------------------------------------
Question No.28
Should we believe the claims of fortunetellers and soothsayers?
Answer
No, we should not believe them.
Evidence from the Noble Qur.aan
{Say: None in the heavens and the earth knows the Ghayb (unseen)},
{Soorah an-Naml, Aayah 65]
Evidence from the authentic Sunnah
((Whoever goes to a fortuneteller or soothsayer, and believe what they
say, has disbelieved in what has been revealed to Muhammad)),
[Transmitted by Ahmad]
--------------------------------------------------------------------------------
Question No.29
Does any one have the knowledge of the (unseen)?
Answer
No one but Allaah alone has the knowledge of the unseen.
Evidence from the Noble Qur.aan
{And with Him are the keys of Ghayb (unseen), none knows them but He},
{Soorah al-An'aam, Aayah 59]
Evidence from the authentic Sunnah
((No one has the knowledge of the unseen except Allaah)), [Transmitted
by at-Tabaraanee]
--------------------------------------------------------------------------------
Question No.30
By what sources do the Muslims govern?
Answer
Muslims govern by laws laid down in the Qur.aan and authentic
Ahadeeth.
Evidence from the Noble Qur.aan
{And so judge (you O Muhammad) between them by what Allaah has
revealed}, {Soorah al-Maa.idah, Aayah 49]
Evidence from the authentic Sunnah
((Allaah is the judge and to whom is the return)), [Transmitted by al-
Bukhaaree and Muslim]
--------------------------------------------------------------------------------
Question No.31
What is the ruling in Islaam concerning applying non - Islaamic laws?
Answer
It is an act of disbelief.
Evidence from the Noble Qur.aan
{And whosoever does not judge by what Allaah has revealed, such are
the disbelievers}, {Soorah al-Maa.idah, Aayah 44]
Evidence from the authentic Sunnah
((When the leaders do not rule by Allaah's Book (Qur.aan) and choose
the good from that which Allaah has revealed, Allaah will cause
conflict among them)), [Transmitted by Ibn Maajah]
--------------------------------------------------------------------------------
Question No.32
Is it permitted to swear by other than Allaah's Name?
Answer
No, it is not permitted.
Evidence from the Noble Qur.aan
{Say: Yes! By my Lord you will certainly be resurrected}, {Soorah at-
Taghaabun, Aayah 7]
Evidence from the authentic Sunnah
((Whoever swears by anyone other than Allaah, has associated partners
with Allaah)), [Transmitted by Ahmad]
--------------------------------------------------------------------------------
Question No.33
Should we wear good luck charms (like amulets or talismans)?
Answer
No, we should not wear them.
Evidence from the Noble Qur.aan
{And if Allaah touches you with harm none can remove it but He},
{Soorah al-An'aam, Aayah 17]
Evidence from the authentic Sunnah
((Whoever wears an amulet has committed Shirk)), [Transmitted by
Ahmad]
--------------------------------------------------------------------------------
Question No.34
Through what may we seek intercession with Allaah?
Answer
By His Names and Attributes.
Evidence from the Noble Qur.aan
{And (all ) the most beautiful Names belong to Allaah, so call on Him
by them}, {Soorah al-A'raaf, Aayah 180]
Evidence from the authentic Sunnah
((I ask you by all your names, with which you wave named your self)),
[Transmitted by Ahmad]
--------------------------------------------------------------------------------
Question No.35
Does any supplication to Allaah require a human intermediary?
Answer
No, prayer does not require a human intermediary.
Evidence from the Noble Qur.aan
{And when my slaves ask you (O Muhammad) concerning Me, then I am
indeed near (to them by My knowledge)}, {Soorah al-Baqarah, Aayah
186]
Evidence from the authentic Sunnah
((You pray to the one who hears all and He is near and He is with
you)), [Transmitted by Muslim]
--------------------------------------------------------------------------------
Question No.36
What is the mediation (waasitah) of the Messenger?
Answer
The mediation of the Messenger is the transmission of Allaah's
Message.
Evidence from the Noble Qur.aan
{O Messenger (Muhammad) proclaim what has been sent down to you from
your Lord}, {Soorah al-Maa.idah, Aayah 67]
Evidence from the authentic Sunnah
((Oh Allaah, have I proclaimed your message? Oh Allaah bear witness.
(In response to the statement of the Sahaabah, "Indeed, we bear
witness that you have proclaimed the message."))), [Transmitted by
Muslim]
--------------------------------------------------------------------------------
Question No.37
From whom may we seek the Messenger's intercession?
Answer
From Allaah alone.
Evidence from the Noble Qur.aan
{Say: To Allaah belongs all intercession}, {Soorah az-Zumar, Aayah
44]
Evidence from the authentic Sunnah
((Oh Allaah grant to him (the Prophet) intercession for me)),
[Transmitted by at-Tirmidhee]
--------------------------------------------------------------------------------
Question No.38
How do we demonstrate our love for Allaah and his Messenger?
Answer
By obeying and following their commands.
Evidence from the Noble Qur.aan
{Say (O Muhammad to mankind) if you really love Allaah then follow me,
Allaah will love you}, {Soorah Aal-'Imraan, Aayah 31]
Evidence from the authentic Sunnah
((None of you have perfect faith until you love me more than your
parents, children, and all mankind)), [Transmitted by al-Bukhaaree and
Muslim]
--------------------------------------------------------------------------------
Question No.39
Should we be excessive in our praise for the Messenger?
Answer
No, we should not be excessive in our praise to him.
Evidence from the Noble Qur.aan
{Say I am only a man like you. It has been inspired to me that your
god is one ilaah (Allaah)}, {Soorah al-Kahf, Aayah 110]
Evidence from the authentic Sunnah
((Do not exaggerate in praising me, I am only a slave. So say Allaah's
slave and Messenger)), [Transmitted by al-Bukhaaree]
--------------------------------------------------------------------------------
Question No.40
Who were the first creation?
Answer
From human being was Adam and from things was the pen.
Evidence from the Noble Qur.aan
{Remember when your Lord said to the angels truly I am going to create
man from clay}, {Soorah Sa'd, Aayah 71]
Evidence from the authentic Sunnah
((The first thing created by Allaah was the pen)), [Transmitted by at-
Tirmidhee and Abu Daawood]
--------------------------------------------------------------------------------
Question No.41
From what was Prophet Muhammad created?
Answer
He was created from Nutfah (drops of semen - male and female
discharges).
Evidence from the Noble Qur.aan
{It is He Who created you (Adam) from dust, then from a Nutfah},
{Soorah Ghaafir, Aayah 67]
Evidence from the authentic Sunnah
((In every one of you, all components are created together in your
mother's womb by 40 days)), [Transmitted by al-Bukhaaree and Muslim]
--------------------------------------------------------------------------------
Question No.42
What is the status of jihad for the sake of Allaah in Islaam?
Answer
It is obligatory with lives, wealth and speech.
Evidence from the Noble Qur.aan
{March forth , whether you are light (being healthy, young and
wealthy) or heavy (being ill, old and poor) strive hard with your
wealth and your lives in the cause of Allaah}, {Soorah at-Towbah,
Aayah 41]
Evidence from the authentic Sunnah
((Fight against the polytheisms with your wealth, lives and speech)),
[Transmitted by Abu Daawood]
--------------------------------------------------------------------------------
Question No.43
What is Walaa (friendship and loyalty)?
Answer
Walaa (friendship and loyalty) is love and help of the faithful
believers.
Evidence from the Noble Qur.aan
{The believers men and women are Awliyaa (helpers, supporters friends
and protectors) of one another}, {Soorah at-Towbah, Aayah 71]
Evidence from the authentic Sunnah
((The faithful believers are as a brick structure, each supporting the
other)), [Transmitted by Muslim]
--------------------------------------------------------------------------------
Question No.44
Is seeking the friendship and help of disbelievers permitted?
Answer
No, it s not permitted.
Evidence from the Noble Qur.aan
{And if any amongst you take them as Auliyaa then surely he is one of
them}, {Soorah al-Maa.idah, Aayah 51]
Evidence from the authentic Sunnah
((The people of such and such clan are not my supporters (Awliyaa))),
[Transmitted by al-Bukhaaree and Muslim]
--------------------------------------------------------------------------------
Question No.45
Who is Walee (friend)?
Answer
A Walee is a true believer, who fears Allaah very much.
Evidence from the Noble Qur.aan
{Verily, Awliyaa of Allaah no fear shall come upon them nor shall they
grieve}, {Soorah Yoonus, Aayah's 62-63]
Evidence from the authentic Sunnah
((My only Walee is Allaah then the most pious among the true
believers)), [Transmitted by al-Bukhaaree and Muslim]
--------------------------------------------------------------------------------
Question No.46
Why did Allaah reveal the Qur.aan?
Answer
So as to apply it to our daily life.
Evidence from the Noble Qur.aan
{Follow what has been sent down to you from your Lord}, {Soorah al-
A'raaf, Aayah 3]
Evidence from the authentic Sunnah
((Read Qur.aan and apply it, do not make your living from it)),
[Transmitted by Ahmad]
--------------------------------------------------------------------------------
Question No.47
Is the Qur.aan alone sufficient for us without the Hadeeth
(statements, actions, tacit approvals of the Prophet)?
Answer
No, it is not sufficient.
Evidence from the Noble Qur.aan
{And We have sent down unto you (O Muhammad ) the reminder and the
advice (the Qur.aan) that you may explain clearly to men what is sent
down to them, and that they may give thought}, {Soorah an-Nahl, Aayah
44]
Evidence from the authentic Sunnah
((Indeed I have been given Qur.aan and along with it that which is
like it)), [Transmitted by Abu Daawood]
--------------------------------------------------------------------------------
Question No.48
Should we give priority to other opinions over the Word of Allaah and
His Messengers?
Answer
No, we should not.
Evidence from the Noble Qur.aan
{Oh you who believe, do not be forward (hasten not to decide) in the
presence of Allaah and His Messenger}, {Soorah al-Hujuraat, Aayah 1]
Evidence from the authentic Sunnah
((There is no obedience to the creatures if it means disobeying the
Creator)), [Transmitted by Ahmad]
--------------------------------------------------------------------------------
Question No.49
What should we do if we differ in the religious matters?
Answer
We should refer to holy Qur.aan and authentic Sunnah.
Evidence from the Noble Qur.aan
{And if you differ in any thing amongst yourselves, refer back to
Allaah and His Messenger}, {Soorah an-Nisaa., Aayah 59]
(Message over 64k, truncated.)
For more information about Islam
http://www.imanway1.com/files/ExploreIslam.htm
http://www.freewebtown.com/oways/1.html
- 8
- Visual C#.Net >> Which controls can wrap lineI am using VS2005 to develp Win form program.
I add lines to a ListBox.
But when the line width larger than the width of the ListBox, the ListBox
can't wrap the word.
What conrols is suittable for me to add lines and can wrap words?
- 9
- Microsoft Project >> Working with values in Customized fieldsIn a custom text field, I have specified values. The field has worked fine
for 6 months or longer. This week, I have modified the values in the field.
And, when I save the project file and return later, the changes have not been
saved. Does anyone have any information that will help me understand why
this custom field data is not recording. Also, I have set the check-box so
the values are not limited to the value list. I left several cells blank (on
purpose) and after I returned to the file later, those "blank" cells had data
posted. This is very frustrating. At this point, I am ready to create a new
custom text field and start all over, but I have 25 plans that are affected
by the new field values. If you have any suggestions, please write!
- 10
- Visual C#.Net >> Garbage CollectionHello:
We are considering developing a time critical system in C#. Our tool used in
Semiconductor production and we need to be able to take meaurements at
precise 10.0 ms intervals( 1000 measurement exactly 10 ms apart. In the
future this may decrease to 5ms ). I am concerned that if garbage
collection invokes during this time it may interfere with our measurement
results. I have looked over the garbage collection mechanism and see no way
to control when garbage collection occurs. Is there a way to pause and
start garbage collection? or some other technique that I can use to prevent
garbage collection while I am taking measurements?
Thanks
Bob
- 11
- ADO >> Create DataTable From Existing DataTablei created a SataSet that contain several DataTables,
i need to create some more DataTables and DataVies,
the problem is that each of them should contain another
DataColumns, i eant to select the columns from the
existing tables not only the rows.
sample:
one of the datatables in the dataset contain those
DataColumns: firstName, lastName, address,phone,fax and
mobile,
i want to create DataView that carry all the rows that the
last name begin with 'A' , but the columns needed are only
the last name and first name.
- 12
- 13
- Microsoft Project >> Task, resource calendarsHi all,
I am very new to MSP 2007 and still learning it day by day.
A have a very first question about the calendars when I plan some pilot
projects.
I have created a new calendar called "Non-Friday" where we work only from
Sunday to Thursday (Friday and Saturday are non-working). I have set the
project calendar to "Non-Friday". The timescale non-working calendar also has
been set to "Non-Friday". The task calendar is also "Non-Friday".
However, when I increase a task duration (scheduled for one day on Thursday)
to 2 days, the Gantt chart shows this task also works on Friday (from
Thursday to Friday). The task type I set is Fixed Units.
Where is the step I am missing? How to schedule the task so that it will not
work on non-working days?
Thanks for any help.
I will probably have more questions when I go along the learning process and
I appreciate all your answers.
Best regards,
Sondin
- 14
- Dotnet >> How Do I INsert Numbers Into a Raffle Ticket TemplateI have downloaded a template to create raffle tickets and I want to avoid
having to manually type in the ticket numbers. Can I input the numbers into
an Excel spreadsheet and then merge with the Word document? Or can I
actually input a formula in Word to assign ticket numbers?
- 15
- ADO >> Data View Thread Safety ProblemI have a multi-threaded application with a static constructor and static
DataSet and DataView variables, populated in the constructor.
i then create many threads to access the static DataView but some of the
threads generate errors while others work. Here is the code for the sample
console app
using System;
using System.Data;
using System.Threading;
namespace DataViewTest
{
class DataViewTest
{
static DataSet _ds;
static DataView _dv;
private volatile Thread _thread;
private string _name;
static DataViewTest()
{
_ds = new DataSet();
DataTable tableOne = new DataTable("TableOne");
tableOne.Columns.Add(new DataColumn("Force", typeof (int)));
tableOne.Columns.Add(new DataColumn("Section", typeof (string)));
tableOne.Columns.Add(new DataColumn("ApplicationID", typeof (string)));
tableOne.Columns.Add(new DataColumn("GroupID", typeof (int)));
tableOne.Columns.Add(new DataColumn("Name", typeof (string)));
DataRow newRow = tableOne.NewRow();
newRow["Force"] = 13;
newRow["Section"] = "0";
newRow["ApplicationID"] = "FA";
newRow["GroupID"] = 1;
newRow["Name"] = "ZZ";
tableOne.Rows.Add(newRow);
_dv = new DataView(tableOne, null, "GroupID", DataViewRowState.CurrentRows);
_ds.Tables.Add(tableOne);
_ds.AcceptChanges();
}
public DataViewTest(string threadName)
{
_name = threadName;
}
internal void Run()
{
if(_dv[0]==null)
{
System.Diagnostics.Trace.WriteLine(string.Format("{0} FAILED", _name));
}
else
System.Diagnostics.Trace.WriteLine(string.Format("{0} worked", _name));
}
internal void Start()
{
_thread = new Thread(new ThreadStart(Run));
_thread.Name = _name;
_thread.IsBackground = true;
_thread.Start();
}
}
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
{
private static DataViewTest[] _workers;
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
_workers = new DataViewTest[100];
for (int ct=0; ct<_workers.Length; ct++)
{
_workers[ct] = new DataViewTest(string.Format("Thread '{0}'", ct));
}
for (int ct=0; ct<_workers.Length; ct++)
{
_workers[ct].Start();
}
while(true)
Thread.Sleep(1000);
}
}
}
here is some sample output
Thread '0' worked
The thread 'Thread '0'' (0x1dd4) has exited with code 0 (0x0).
Thread '27' worked
The thread 'Thread '27'' (0x1f18) has exited with code 0 (0x0).
Thread '63' worked
Thread '6' worked
Thread '1' FAILED
The thread 'Thread '6'' (0x1e70) has exited with code 0 (0x0).
The thread 'Thread '1'' (0x1b08) has exited with code 0 (0x0).
Thread '3' FAILED
The thread 'Thread '3'' (0x14d8) has exited with code 0 (0x0).
Thread '11' worked
Thread '2' FAILED
The thread 'Thread '11'' (0x1d90) has exited with code 0 (0x0).
The thread 'Thread '2'' (0x1bd8) has exited with code 0 (0x0).
Thread '5' worked
The documentation says that DataViews are threadsafe, so why is this
happening? Sometimes, everything is OK, but more often than not, at least one
thread fails.
|
|
|