|
Krisha,
If you are looking at the Internet, you're out of luck. TCP/IP is higher in the stack than the MAC (layer 2) and that gets lost in the router once packets are routed out to the internet.
If you are looking at an Intranet, i.e. inside your 4 walls, then you'll need something native on the server that is getting the client request that can bond to and query the network adapter for the machine. That's very low-level however as the public interfaces give you the MACS of your own adapters but you really need to integrate with the router to get the MAC of the routed packets. Somewhere in the system a router maps "MAC x with IP y" and that is where you can make the translations.
What's the background of what/why you need the MAC?
Jeremy
|
|
|
|
|
I need a regular expression validation for the user to enter only numbers from 1 to 4000. It should not be less than 1 or greater than 4000. I used the following expression, but it is accepting 0 and greater than 4000.
ValidationExpression="\d{1,4000}"
any body please help?
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
|
Why do you want regular expression for this??
simply check if number is between 1 and 4000.
|
|
|
|
|
Hi...
you can use "Range Validator" for this
|
|
|
|
|
Search This on Net
|
|
|
|
|
Thank you for your reply. I don't know why you have taken 7 months time to reply for this message, if you really want to answer this question.
This is already resolved.
Anyway, thanks for this very simple but nonsensical reply. Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
i m using access database for my website...........i m a bit confused abt connection string for server....I simply included *.mdb file on my server.....this is what i wrote:-
<connectionStrings >
<add name ="conn" connectionString="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=~App_Data\db1.mdb; " />
</connectionStrings >
is it right....if not then whts right way and if yes then why its not connecting to the database
plz guide me....
|
|
|
|
|
Did you test it and get any Error. First test it and get an Error and google it , if you dont find an answer you come and post here. That is a Good way to learn.
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Does it finds the database.
Check whether SqlConnection.Open gives you any error to this connection.
|
|
|
|
|
Yeah, great idea. Try defining an OleDb provider and then using SqlConnection to open it.
Omg...
If anything you should ask about IDbConnection... but since he stated clearly he wants Access, and the connection string uses OLEDB, i bet the farm it's going to be an OleDbConnection.
the connection string seems fine, by the way.
If you need any more help about OleDb, feel free to ask.
var question = (_2b || !(_2b));
|
|
|
|
|
Yes .. You are right.
|
|
|
|
|
|
Hi,
I am trying to get a response from a URL using the HttpWebRequest
object. this is my code below.
HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create(url);
WebResponse myResp = myReq.GetResponse();
Stream stream = myResp.GetResponseStream();
System.Drawing.Image oImg = System.Drawing.Image.FromStream(stream);
It was working fine in my local machine. But when we hosted in server suddenly we got an error.
This is the details of the error I got.
System.Net.WebException: The remote server returned an error: (404) Not Found. at System.Net.HttpWebRequest.GetResponse()
The url exists and we are able to access it using a regular browser.
Thanks,
S.Thanagvel
|
|
|
|
|
hi
I am facing same problem. Please let me know the solution. My mail id infogopal@yahoo.com
|
|
|
|
|
I want to dispaly the alert window fro gridview command filed button
|
|
|
|
|
Why do you want to do that? Any specific reason?
|
|
|
|
|
I am using command field
when i delete a record i want to display alert window how can i do this?
|
|
|
|
|
add following javascript to command button onclientclick event
function confirmDelete()
{
return confirm('Do you want to delete record?');
}
|
|
|
|
|
I used this but its also firing for updating and deleting
|
|
|
|
|
Are you using same button for updating and deleting?
Use that script only on delete button.
|
|
|
|
|
I want to delete one row from grid view, before deleating i want to dispaly the aler
|
|
|
|
|
Already answered, please check above.
|
|
|
|
|
I have a grid view which can have any number of records.
I have a text box to search for card numbers.
I highlight the rows with matching card numbers in RowDataBound event.
Now i want to bring the Highlighted rows to top. I do not want to remove all other records. I want to show all records and want to bring highlighted records to top.
I urgently need the solution for this query. Any help will be appreciated.
Thanks in Advance!
Inderjeet Kaur
I tried using
Select * from abc where condition = searchcondition
UNION ALL
Select * from abc where condition <> searchcondition
But, it works only if i have to search one fileld. Now i have to run search on two fileds it will return lots on rows
Inderjeet Kaur
Sr. Software Engg
|
|
|
|
|
What you can do , is to order by the Card numbers. do it on your SQL Side and the rows that have the card number you searched for will be on the top part
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|