Click here to Skip to main content
15,175,960 members

Comments by jokler.007 (Top 42 by date)

jokler.007 5-Sep-16 9:54am View
   
Thanks that solve my problem
jokler.007 3-Sep-16 7:43am View
   
I Have follow many other link and change in them but nothing work yet
jokler.007 28-Oct-14 5:20am View
   
what you are getting as result when they are no mac address ?
jokler.007 7-Oct-14 9:56am View
   
we are spliting the originale text is
company":"HTC Corporation","addressL1":"No.23 Xinghua Road","addressL2":"Taoyuan City","addressL3":"Taoyuan County 330","country":"TAIWAN, PROVINCE OF CHINA","type":"MA-L"}]


we have split on " mean we have now an array of string the 0 is company
the 1 is : and ....
kindly mark my solution as solved if it solve your problem .
jokler.007 7-Oct-14 9:47am View
   
did this solve your problem ?
jokler.007 7-Oct-14 9:47am View
   
use this textBox7.Text = cell.Trim().Split('\"')[2].ToString();
jokler.007 7-Oct-14 9:40am View
   
what you need from the returned string ? mean company or addressL1 or country or ....
jokler.007 7-Oct-14 9:39am View
   
I hope that this have solved your problem
jokler.007 7-Oct-14 9:38am View
   
you can arrange them split the text if you need or any else method
jokler.007 7-Oct-14 9:26am View
   
this is a test one :
string cell="";
System.IO.StreamReader reader;
WebRequest request = WebRequest.Create("http://www.macvendorlookup.com/api/v2/{00:11:22:33:aa:bb}");
request.Timeout = 120000;
WebResponse response = request.GetResponse();
reader = new System.IO.StreamReader(response.GetResponseStream());
string get = reader.ReadToEnd();
MatchCollection m1 = Regex.Matches(get, @"(company)(.*?)(}])", RegexOptions.Singleline);
foreach (Match m in m1)
{
cell = m.Groups[0].Value;
}
textBox7.Text = cell.Trim();
jokler.007 7-Oct-14 9:26am View
   
you need to use there api
mean check this link :
http://www.macvendorlookup.com/mac-address-api

and call this :
http://www.macvendorlookup.com/api/v2/{MAC_Address}
or
https://www.macvendorlookup.com/api/v2/{MAC_Address}
jokler.007 7-Oct-14 9:18am View
   
it give you the text between what you have put on
MatchCollection m1 = Regex.Matches(get, @"(quick-details)(.*?)(</dl>)", RegexOptions.Singleline);
mean between quick-details and </dl> what you need exactly ?
jokler.007 7-Oct-14 9:12am View
   
string cell="";
System.IO.StreamReader reader;
WebRequest request = WebRequest.Create("http://www.macvendorlookup.com/");
request.Timeout = 120000;
WebResponse response = request.GetResponse();
reader = new System.IO.StreamReader(response.GetResponseStream());
string get = reader.ReadToEnd();
MatchCollection m1 = Regex.Matches(get, @"(quick-details)(.*?)(</dl>)", RegexOptions.Singleline);
foreach (Match m in m1)
{
cell = m.Groups[0].Value;
}
textBox7.Text = cell;
jokler.007 7-Oct-14 9:11am View
   
System.IO.StreamReader reader;
WebRequest request = WebRequest.Create("http://www.macvendorlookup.com/");
request.Timeout = 120000;
WebResponse response = request.GetResponse();
reader = new System.IO.StreamReader(response.GetResponseStream());
string get = reader.ReadToEnd();
MatchCollection m1 = Regex.Matches(get, @"(quick-details)(.*?)(</dl>)", RegexOptions.Singleline);
foreach (Match m in m1)
{
string cell = m.Groups[0].Value;
}
textBox7.Text = cell;
jokler.007 7-Oct-14 9:05am View
   
replace string cell = m.Groups[1].Value; by string cell = m.Groups[0].Value;
and change
MatchCollection m1 = Regex.Matches(get, @"(<dl class=""dl-horizontal"" id=""quick-details"">)(.*?)(</dl>)", RegexOptions.Singleline);
to
MatchCollection m1 = Regex.Matches(get, @"(quick-details)(.*?)(</dl>)", RegexOptions.Singleline);
then in the string cell you will have the text between quick-details and </dl>
jokler.007 7-Oct-14 8:22am View
   
you need all the website text or specific text ?
jokler.007 5-Sep-14 11:21am View
   
what type of help ? the connection string is the same that you use for the select :
con.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["test_update.Properties.Settings.dbupdateConnectionString"].ConnectionString;
jokler.007 5-Sep-14 5:45am View
   
try to check this link maybe it help :
http://lamahashim.blogspot.com/2010/04/c-read-insert-update-delete-from-sql.html

they use something like this :


static void Update()
{
try
{
string connectionString =
"server=.;" +
"initial catalog=employee;" +
"user id=sa;" +
"password=sa123";
using (SqlConnection conn =
new SqlConnection(connectionString))
{
conn.Open();
using (SqlCommand cmd =
new SqlCommand("UPDATE EmployeeDetails SET Name=@NewName, Address=@NewAddress" +
" WHERE Id=@Id", conn))
{
cmd.Parameters.AddWithValue("@Id", 1);
cmd.Parameters.AddWithValue("@Name", "Munna Hussain");
cmd.Parameters.AddWithValue("@Address", "Kerala");

int rows = cmd.ExecuteNonQuery();

//rows number of record got updated
}
}
}
catch (SqlException ex)
{
//Log exception
//Display Error message
}
}
jokler.007 5-Sep-14 4:43am View
   
the query seem correct if the field that you use to join exist in both table kindly check if this query return any field maybe it return null also try this similar to Pheonyx one :
select i.num_int_int as "Numéro interne",
i.nom_log as "Login",
i.psw_web as "Password",
i.lib_int as "Libellé User",
u.cod_usp as "Profil",
i.cod_soc as "Société",
i.flg_out as "OUT"
from tab_inte as i INNER JOIN tab_usty as u on i.num_int_int = u.num_int_int and i.cod_soc = u.cod_soc
where i.nom_log is not null and
i.psw_web is not null and
(i.flg_out <> 'O' or i.flg_out is null or i.flg_out = 'N')
order by i.num_int_int
jokler.007 3-Sep-14 5:45am View
   
where is the error ?
jokler.007 8-Aug-14 9:39am View
   
hello when you add an .DLL to your project after compiling the project it appear in the bin folder with the .EXE download ILMerge and use it to merge the .EXE and the .DLL ,hopping that will help
jokler.007 8-Aug-14 9:24am View
   
check this link please http://myaspsnippets.blogspot.com/2012/10/gridview-dropdownlist-selected-index.html
jokler.007 30-Dec-13 4:07am View
   
The List<double> times that yo use,have a limit size when it pass the limit it throw this exception. try to create 2 double one for sum and the second for count:
double count_=0,sum_=0;
foreach (var i in reds)
{

for (int j = 1; j<index; j++)
="" for="" (int="" j="1;" (!(canmsgidlist[i].msgid="=" canmsgidlist[j].msgid))="" &&="" (j="" <="" i);="" {
=""
="" if="" ((canmsgidlist[j].bus).equals(consoleapplication13.buses.canbusyellow)="" &&(canmsgidlist[j].timestamp=""> CANMsgIdList[i].TimeStamp) )

{
count_++;
sum_=sum_+(CANMsgIdList[j].TimeStamp- CANMsgIdList[i].TimeStamp);

}
}
}
jokler.007 14-Dec-13 3:10am View
   
Thanks for your reply.
I have used epplus it work for me.
jokler.007 3-Dec-13 8:30am View
   
try to use and instead of && and or instead od ||
jokler.007 5-Aug-13 11:37am View
   
try when adding the wsdl to your project:
1.right click on Service References then choose Add Service References
2.choose Advanced and then check Allow generation of asynchronous operations
3.Then Press Add Web Reference then add your link
jokler.007 5-Aug-13 8:58am View
   
how you have calculate it to get (4,047,660,432 bytes) ??
check google calculation it give else number :

https://www.google.com.lb/search?q=bgb+to+byte&oq=bgb+to+byte&aqs=chrome.0.69i57j0l3.10547j0&sourceid=chrome&ie=UTF-8#sclient=psy-ab&q=gb+to+byte&oq=gb+to+byte&gs_l=serp.3..0i7i10i30j0i20j0l2.6028.6117.0.7063.2.2.0.0.0.1.430.606.0j1j4-1.2.0....0...1c.1.23.psy-ab..1.1.427.AUfD9-SNfDM&pbx=1&fp=a696db02711d2fcf&biw=1366&bih=643&bav=on.2,or.r_qf.&cad=b&bvm=pv.xjs.s.en_US.seW1cfrvSKg.O

or

http://www.convertunits.com/from/GB/to/byte
jokler.007 5-Aug-13 8:51am View
   
check this link same error as yours :

http://www.codeproject.com/Questions/631537/Could-not-load-file-or-assembly-file-C-Program-Fil
jokler.007 5-Aug-13 8:20am View
   
You can use Report Viewer or Crystal report to control the design of header and footer and print from it directly
jokler.007 30-Jul-13 10:30am View
   
I have to retrieve my current location using my laptop so no GPS i have search for many address but they don't return my location.
jokler.007 22-Jul-13 4:26am View
   
try this :

http://indoulia.blogspot.com/2010/07/syswebformspagerequestmanagertimeoutexc.html

or

http://skynetr.wordpress.com/2012/10/11/solved-sys-webforms-pagerequestmanagertimeoutexception-the-server-request-timed-out-error/
jokler.007 22-Jul-13 4:18am View
   
Have you check the second link : Link2 ?
http://www.mindstick.com/Articles/9422cfc8-c2ed-4ec1-9fab-589eb850a863/?Insert%20Delete%20Update%20in%20Da
jokler.007 19-Jul-13 15:07pm View
   
I am not getting what you need exactly, if you need on mouse event to change color use this :
private void button1_MouseEnter(object sender, EventArgs e)
{
button1.BackColor = Color.Yellow;//change the button color
}

private void button1_MouseLeave(object sender, EventArgs e)
{
button1.BackColor = SystemColors.Control;//return to normal color before changing
}
jokler.007 18-Jul-13 11:18am View
   
also you can try this website (generate c# classes from json):

http://json2csharp.com/

try on it this for example:
{"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"value": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}
]
}
}}
jokler.007 18-Jul-13 11:15am View
   
check this one :

http://csharpskill.blogspot.com/2012/08/jasontocsharp.html
jokler.007 18-Jul-13 8:42am View
   
Thanks :)
jokler.007 18-Jul-13 8:30am View
   
i have a background image in my form i need to draw a table on it that contain data.
jokler.007 17-Jul-13 14:33pm View
   
I am not working in Asp.net , but in window form application.
jokler.007 16-Jul-13 8:39am View
   
Thanks a lot .
jokler.007 16-Jul-13 8:32am View
   
Yes something similar
jokler.007 13-Jul-13 10:00am View
   
You can get something similar if you are working in WPF application not window application in c#.
when you create a new project lunch it as WpfApplication not WindowsFormsApplication , in wpf you can work more in design then the winform
jokler.007 2-Jul-13 6:11am View
   
More efficient, more Reliable, got better features...