15,896,111 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member-2338430 (Top 148 by date)
Member-2338430
13-May-20 14:30pm
View
GetData is Webmethod
[WebMethod]
public static List<chartdata> GetData(string name)
{
string x = name;
DataTable table = GetDataMethod(x);
List<chartdata> dataList = new List<chartdata>();
foreach (DataRow dtrow in table.Rows)
{
ChartData details = new ChartData();
details.yil = dtrow[0].ToString();
details.sayi = float.Parse(dtrow[1].ToString(), CultureInfo.InvariantCulture.NumberFormat);
dataList.Add(details);
}
return dataList;
}
Member-2338430
13-Feb-15 3:39am
View
another question like this
there are two table same as;
pay table has product_id and how many product added so: number
product table same above product_id and stock
for ex X product stock=10 I paid or added 2 so product table stock must be update new value 8.
I tryed like above but I cant
update [products] set Stock=Stock-number
WHERE products_id IN (
SELECT cb.products_id,number FROM [pay] cb
INNER JOIN [products] p ON cb.products_id = p.products_id
WHERE cb.situation=1)
situation=1 means paid
Member-2338430
12-Feb-15 19:53pm
View
thanks I solved problem
Member-2338430
12-Feb-15 17:31pm
View
giving error this =you cant specify target table [customer basket]for update in from clause
Member-2338430
12-Feb-15 8:38am
View
I am trying...
Member-2338430
9-Feb-15 9:51am
View
timer continue down background minus vaues -1 -2 -3 ..... how can complately stop timer
Member-2338430
9-Feb-15 8:38am
View
thanks
Member-2338430
9-Feb-15 8:06am
View
if timer value zero how can stop it always count down????
Member-2338430
9-Feb-15 8:05am
View
thank you very much I want to ask another question please
public static int 60
must be 20 minutes so how can I do set a time value to timer
Member-2338430
9-Feb-15 6:56am
View
I dont want to use javascript and jquery
Member-2338430
4-Feb-15 15:46pm
View
I use for usercontrol_1 buttonclick event some data insert the database
usercontrol_2 use for get these data
but if I click usercontrol_1 button click event some data insert database I want to show same time in usercontrol_2 get thse data but not work I must do page refresh for to see.
Member-2338430
4-Feb-15 15:40pm
View
so I want to do usercontrol_1 buttonclick event if I clicked button usercontrol_2 refresh but usercontrol_2 dynamically load in master page so I cant find it firstly like that
ContentPlaceHolder ph = (ContentPlaceHolder)Page.Master.FindControl("X");
USERCONTROL_2 asd= (USERCONTROL_2)ph.FindControl("USERCONTROL_21");
asd.Refresh();
if I can found call it function
Member-2338430
26-Jan-15 8:29am
View
but I want to load usercontrol listbox4 selectindexchange event not page load I dont understad
Member-2338430
27-Nov-14 7:57am
View
thanks I dont think like this
I am very tried I am not thinking
Member-2338430
27-Nov-14 7:55am
View
ok I will try
Member-2338430
27-Nov-14 7:54am
View
ı tryed to format anything change
Member-2338430
27-Nov-14 7:53am
View
but date comes long like above
Thu Nov 27 2014 00:00:00 GMT+0200 (GTB Standart Saati)
Member-2338430
27-Nov-14 7:52am
View
when click the calender javascript run take date and goes to buttonclick event
Member-2338430
27-Nov-14 7:51am
View
source code
<asp:TextBox ID="txtdate" runat="server" Width="200px" placeholder="Randevu Tarihini Seçiniz">
<asp:ImageButton runat="Server" ID="Image1" ImageUrl="~/icons/calendar.png" />
<asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtdate" PopupButtonID="Image1" OnClientDateSelectionChanged="dateSelectionChanged">
<asp:HiddenField ID="HiddenField1" runat="server" />
<asp:Button ID="dummybtn" runat="server" Text="Click" style="display:none" OnClick="dummybtn_Click" />
Member-2338430
27-Nov-14 7:51am
View
this is code behind
protected void dummybtn_Click(object sender, EventArgs e)
{
string selectedDate = HiddenField1.Value;
Member-2338430
27-Nov-14 7:50am
View
<script type="text/javascript">
function dateSelectionChanged(sender, args) {
var selectedDate = sender.get_selectedDate();
document.getElementById('<%= Page.Master.FindControl("cphIcerik").FindControl("HiddenField1").ClientID %>').value = selectedDate;
(document.getElementById('<%= Page.Master.FindControl("cphIcerik").FindControl("dummybtn").ClientID %>')).click();
}
</script>
this is script
Member-2338430
27-Nov-14 7:50am
View
ok
Member-2338430
27-Nov-14 7:45am
View
same comes
Member-2338430
27-Nov-14 7:23am
View
ok I solve this problem but there is another problem
function dateSelectionChanged(sender, args) {
var selectedDate = sender.get_selectedDate("dd/MM/yyyy");
document.getElementById('<%= Page.Master.FindControl("cp").FindControl("HiddenField1").ClientID %>').value = selectedDate;
(document.getElementById('<%= Page.Master.FindControl("cp").FindControl("dummybtn").ClientID %>')).click();
selected date comes like that this is very bad :
Thu Nov 27 2014 00:00:00 GMT+0200 (GTB Standart Saati)
I wanto to tacke like that 2014-11-27
}
Member-2338430
26-Sep-14 1:50am
View
with a flash player javascript code autoplay=1
Member-2338430
10-Jul-14 2:45am
View
ok thanks
Member-2338430
9-Jul-14 18:02pm
View
I think this is my solution what can you say???
TextBox tb = (TextBox)Master.FindControl("txtMaster");
string val = tb.ClientID;
string script = @"<script>
function PopulateMaster() {
document.getElementById('" + val + @"').value = 'Via Content Page. Love dotnetcurry';
}
PopulateMaster();
</script>";
if (!Page.ClientScript.IsStartupScriptRegistered("Mast"))
{
Page.ClientScript.RegisterStartupScript(this.GetType(),
"Mast", script);
}
I will create from codebehind these js file concent
Member-2338430
9-Jul-14 17:56pm
View
I understood your commends how can update js file inside content???
Member-2338430
9-Jul-14 17:47pm
View
can I do like that
page load
get datas from database titles artists urlss
protected void Page_Load(object sender, EventArgs e)
{
string[] serverSideArray = { "One", "Two", "Three", };
string arrayString = string.Empty;
for (int i = 0; i < serverSideArray.Length; i++)
{
if (arrayString.Length > 0)
arrayString += ",";
arrayString += string.Format("new String('{0}')", serverSideArray[i]);
}
// arrayString = "new String('One'),new String('Two'), ...etc";
this.ClientScript.RegisterArrayDeclaration("g_clientSideArray", arrayString);
}
Member-2338430
9-Jul-14 17:43pm
View
this is Pass C# ASP.NET array to Javascript array topic????? because javascript array
Member-2338430
22-Jun-14 19:16pm
View
thanks alot I solved with script code.
Member-2338430
22-Jun-14 19:16pm
View
thanks alot I solved with script code.
Member-2338430
22-Jun-14 13:51pm
View
ok but for example 5 question I have.all radiobuttonlist same ID rdlAnswer?????
how to get all radiobuttonlist selected value?
Member-2338430
31-May-14 21:31pm
View
it gives Object reference not set to an instance of an object.error
Member-2338430
31-May-14 20:15pm
View
no it is not work
Member-2338430
30-May-14 18:32pm
View
another question I understand this problem how to call page load again??
Member-2338430
30-May-14 18:29pm
View
can ı say like that inside x usercontrol
UserControl uc = (UserControl)this.Parent.FindControl("y usercontrol");
uc.Page.Load(uc, EventArgs.Empty);
Member-2338430
30-May-14 18:27pm
View
I dont understand I select a image and click button first time . y usercontrol image not change
secondly click button. y usercontrol image loading there is a problem like postback????
Member-2338430
30-May-14 18:18pm
View
there is a problem x usercontrol has upload profile image module y usercontrol right top side menü profile image and settings exit vs...
if you upload profile image this menü image not change menu usercontrol postback not run image not change
Member-2338430
8-May-14 8:21am
View
all images same size only pages different height so height droping image
Member-2338430
17-Feb-14 8:47am
View
how can I do repeater
like that ??
<div class="hover-box">
<asp:Repeater ID="Repeater" runat="server">
<itemtemplate>
<img class= "zoom" alt="httpHandler" src='<%# "../EtkinlikResimGetir.ashx?ImID=" + Eval("id")%>'>
<%--
--%>
</div>
Member-2338430
17-Feb-14 8:46am
View
I have 3 images in my page for ex animals trees teachers if you click animals image pop up open so animals slider coming so summary there is categorize these images comes from mysql database blob type so I must use httphandler because these images must convert there is no problem upto here but animals 4 images I have only one images coming
Member-2338430
17-Feb-14 7:35am
View
how can I do loop for ex 30 images I have I will write 30 line?
Member-2338430
17-Feb-14 7:11am
View
a tag I cant write
Member-2338430
17-Feb-14 7:08am
View
<div class="hover-box" id="Etkinlik" runat="server">
</div>
this is my tag
I want to do 4 images I have in database I get with httphandler but div has 1
tag so one images coming
I think codebehind
tag I can duplicate inside the div how can I send 4 times with different id number to httphandler
Member-2338430
14-Feb-14 7:17am
View
images in database type mediumblob
not used imageurl,file
Member-2338430
14-Feb-14 4:21am
View
ok understood thanks a lot
Member-2338430
11-Feb-14 3:30am
View
same problem I have.do you find any solution
Member-2338430
20-Jan-14 7:14am
View
thank you very much
Member-2338430
20-Jan-14 6:41am
View
ok this is work KARTHIK Bangalore but image background repeated how to do no-repeat
Member-2338430
10-Jun-13 7:44am
View
FtpWebRequest ftpRequest = (FtpWebRequest)WebRequest.Create("ftp://xxx.xxx.xxx.xx/image/student/"+DropDownList1.SelectedValue+"/");
ftpRequest.Credentials = new NetworkCredential("xxxxxx", "xxxxxxx");
ftpRequest.Method = WebRequestMethods.Ftp.ListDirectory;
FtpWebResponse response = (FtpWebResponse)ftpRequest.GetResponse();
StreamReader streamReader = new StreamReader(response.GetResponseStream());
string line = streamReader.ReadLine();
while (line!=null)
{
line = streamReader.ReadLine();=>here comes ogrno1.jpg
long filelenght = response.contentlenght;
byte[] imageBytes = new byte[filelenght];
I want to get here image size type:byte because Iwill get this and Iwill store my database…
}
Member-2338430
10-Jun-13 7:26am
View
I dont want to lenght I want to size
Member-2338430
10-Jun-13 6:50am
View
type must bee byte
Member-2338430
5-Jun-13 6:19am
View
why not run?
Member-2338430
5-Jun-13 4:25am
View
after debug everything ok there is no error anywhere but not seeing image only icon
Member-2338430
5-Jun-13 4:24am
View
resim column has 13 byte data so image saved
Member-2338430
5-Jun-13 3:32am
View
I tried to everthing this code idea true?
Member-2338430
5-Jun-13 3:31am
View
Deleted
I tried before not displaying image.
Member-2338430
5-Jun-13 3:30am
View
I tried before not displaying image
Member-2338430
15-May-13 6:56am
View
thanks a lot
Member-2338430
11-Apr-13 7:31am
View
but localhost correctly runn really bad situation for me
Member-2338430
11-Apr-13 7:30am
View
this cell takes 0 -1 or 2 but this cell takes firt cell value 11 digits so range out of error givess
Member-2338430
11-Apr-13 7:29am
View
I found this is the problem fpspread grapecity grid takes value different cell in server side may be not loading procedure correct
Member-2338430
25-Mar-13 18:36pm
View
nested query
Member-2338430
25-Mar-13 18:36pm
View
I want to do like this
select count(id) from x where 01.04.2013 (exists,in I dont know)(select dates from x(same database)from datestart between 01.04.2013 and 7.04.2013)
Member-2338430
25-Mar-13 18:32pm
View
I will send a function 01.04.2013 date thisfunction looks is there this date between interval if there is how many it will count
Member-2338430
21-Mar-13 8:12am
View
code behind or javascript doesnt matter
Member-2338430
15-Mar-13 8:07am
View
there is no person but this if statement jump GridView1.DataBind();
Member-2338430
15-Mar-13 7:58am
View
if (GridView1.DataSource.ToString() == "" || GridView1.DataSource.ToString() == null || GridView1.DataSource.ToString() == "0")
{
this person not registered yed I want to give this message
}
this part not runnnn
Member-2338430
12-Mar-13 9:25am
View
so MATH 103 MATH-103 MATH_103 MATH?103 MATH--103 WİLL BE MATH103 but I must do in c# code behind
Member-2338430
12-Mar-13 9:23am
View
I will take data from mysql database it has a lesson code column I will take database to gridview but these column has diffrent lesson codes but same lessons MATH 103 MATH-103 I will take one lesson like MAHT any character I dont know which character remove 103
from database to gridview
Member-2338430
8-Mar-13 15:25pm
View
ok if lesson code any special character how to delete of them...
MATH-207 MATH_207 ETC.
Member-2338430
8-Mar-13 15:22pm
View
thanks alot run
Member-2338430
25-Jan-13 7:53am
View
ok I solved thanks
Member-2338430
24-Jan-13 2:36am
View
Such approaches not good.they can not behavior as owner this site
they can say like that ok you can do like that,can use this components,can you look this site give some links of course if they know.
if somebody write to here,he searced something and cant found anything or understand, may be codeproject memeber help me, not want to anybody do his/her homework but Such approaches not good.if they answer anything why you are here why you are top list does not matter...good luck your top list.
Member-2338430
23-Jan-13 7:43am
View
there is a condition if condition satisfied still user want drag and drop
this function not run..ok.
Member-2338430
23-Jan-13 4:44am
View
increment after every dropped dropcnt++ but first dropped it says only dropped nothing do anythink
again must be previus version again you will drag and drop so on
how long dropcnt=iterationcnt so break I think every drag and drop it must be previous version (not drag and drop state increment dropcnt)but how to restore previous version without page refresh
Member-2338430
23-Jan-13 4:30am
View
yes page not making any postback
Member-2338430
23-Jan-13 2:49am
View
really this is very important for mee I didnt do
Member-2338430
23-Jan-13 2:48am
View
how to do that each drag and drop I will count how many times I draged and droped
so if 3 times draged and droped alert ok this is 3 times so willnot drag and drop
Member-2338430
22-Jan-13 7:58am
View
I assign iteration-cnt =3
this is not a answer because after first drag second drag and third drag not running may be page must be refresh every drag but if page refresh count again start and drop-ct=0 not goes to iteration count these are anytime equal..
Member-2338430
22-Jan-13 4:57am
View
thank you for this I will try
Member-2338430
22-Jan-13 4:38am
View
there are js libraries
http://code.jquery.com/ui/1.10.0/jquery-ui.js
Member-2338430
22-Jan-13 4:34am
View
<script>
$(function() {
$( "#draggable" ).draggable();
$( "#droppable" ).droppable({
drop: function( event, ui ) {
$( this )
.addClass( "ui-state-highlight" )
.find( "p" )
.html( "Dropped!" );
}
});
});
</script>
</head>
<body>
<div id="draggable" class="ui-widget-content">
<p>Drag me to my target</p>
</div>
<div id="droppable" class="ui-widget-header">
<p>Drop here</p>
</div>
</body>
</html>
for ex here http://jqueryui.com/droppable/
Member-2338430
8-Jan-13 19:58pm
View
ok understood thanks a lot
Member-2338430
8-Jan-13 19:57pm
View
because information will come from database according to Customer Name
Member-2338430
8-Jan-13 19:55pm
View
ok thanks something do it with javascript but Customer Name how can I take and send popup I will use var els=document.getElementsByTagName('a') method?
Member-2338430
3-Jan-13 16:59pm
View
you are at least interested.not say advice.thank you.
Member-2338430
3-Jan-13 16:58pm
View
thank you very much this solution like my problem not same but ok.
Member-2338430
3-Jan-13 16:42pm
View
if you say like that you r idiocy and illiteracy you didnt understant anything or not read so writing to tell you something...there is 3 or 4 member in this site they are writing code in NASA :)heuheuheuheuh you are programmer other member idiot
Member-2338430
2-Jan-13 19:07pm
View
thanks :)
Member-2338430
2-Jan-13 18:58pm
View
I think these links not about my question so ı didnt use green button
how to run modal dialog in button click event my question is net?
Member-2338430
2-Jan-13 18:51pm
View
is this your solution just advise
Member-2338430
2-Jan-13 18:46pm
View
thanks
Member-2338430
21-Nov-12 7:04am
View
ok there is personel card system. we want to web base applicaion and we will load money in this card from web.
there is a card reader connect with serial port.
if you keep your card on to card reader we will take card id..something like this..but we dont want to windows form application we want to web application asp.net (C#) not vb
Member-2338430
21-Nov-12 6:32am
View
is there any document or link
Member-2338430
21-Nov-12 6:31am
View
ok there is personel card system. we want to web base applicaion and we will load money in this card from web.
there is a card reader connect with serial port.
if you keep your card on to card reader we will take card id..something like this..but we dont want to windows form application we want to web application asp.net (C#) not vb
Member-2338430
10-Oct-12 4:12am
View
thanks for this...very useful.vivektiwari I descibe you what is the problem there is list of lessons ing101,ita102,mat205 etc. and I click a lesson so pop up window open and I will select for this lesson which day which hour I will enter this lesson for ex ing101 lesson code I will select monday 8:00-9:00 I want to see this selection in a time table how to create a time table
Will I use a gridview? so how to know gridview days and hours...how can I design gridview for time table?
Member-2338430
10-Oct-12 3:31am
View
I dont want to a modal window or how to do pop up window I want to create a table time table which component I can use how to do
I will select a lesson monday 8:00-9:00 of course I will save my database..so how to see this lesson where to see? gridview or which component I can do it
Member-2338430
10-Oct-12 3:01am
View
is there any one answer the question?
Member-2338430
8-May-12 16:06pm
View
replace work why I didnt think THANK YOU
Member-2338430
29-Apr-12 18:47pm
View
what is your problem you r write like that what you are win....SAKRYUKOV
what is this only I asking
I dont need your vote :)
Member-2338430
29-Apr-12 18:47pm
View
what is your problem you r write like that what you are win....SAKRYUKOV
what is this only I asking
I dont need your vote :)
Member-2338430
29-Apr-12 18:47pm
View
Deleted
No comment
Member-2338430
25-Apr-12 8:27am
View
this is not good answer this is not a good behavior I dont want to any idea for this question vjreddy or Sandeep or anybody
Member-2338430
24-Apr-12 9:03am
View
ı found problem but ı dont understand why run like this
gridview has 2event gridview row command and page index changing
I click page row command running so there is no row null comes back
Member-2338430
18-Apr-12 5:54am
View
yes ı want to do loopp
Member-2338430
8-Apr-12 12:50pm
View
thank you very much this method working
Member-2338430
20-Feb-12 9:48am
View
but I use radiobuttonlist item I didnt use radiobutton
radiobuttonlist not has onclick even
I have radiobuttonlist and radiobuttonlist items
Member-2338430
20-Feb-12 9:24am
View
pleaseee
Member-2338430
20-Feb-12 6:48am
View
for (int i = 1; i <= 5; i++)
{
foreach (ListItem item in rbl[i].Items)
{
if (item.Selected)
{
count = count + 1;
Label1.Text = count.ToString();
}
}
}
howto do thatfirt radiobuttonlist
second radiobuttonlist
I want to navigate to radiobuttonlists
Member-2338430
20-Feb-12 6:37am
View
I didnt use radio button I used radiobuttonlist item
Member-2338430
15-Feb-12 3:54am
View
thank you very much it is good for me
Member-2338430
15-Feb-12 3:47am
View
ok
Member-2338430
12-Feb-12 14:07pm
View
ok ı agree with you thanks your advice but this error coming for this
mysql column type utf8 turkish ci
surname capital for example JOHN father name capital I changed lower case john it is run but why this kind of error gives me ı dont understand exchance upper case to lower case in my mysql column so it is working
Member-2338430
12-Feb-12 13:53pm
View
I will change all data lower case?
Member-2338430
12-Feb-12 13:52pm
View
ok ı found error but still ı dont understand mysql column type utf8 turkish ci
surname capital father name capital I changed lower case it is run but why this kind of error gives me ı dont understand
Member-2338430
10-Feb-12 10:11am
View
thank you very muchhh my frienddd this is runningg
Member-2338430
10-Feb-12 10:10am
View
ok my friend thank you for all this is runninggg thank you very much
Member-2338430
10-Feb-12 10:02am
View
ok ı am trying
Member-2338430
10-Feb-12 9:58am
View
posta.body like this: posta.Body = "<-a href:" + x + ">Onaylayın";
Member-2338430
10-Feb-12 9:57am
View
MailAddress ma = new MailAddress("xxx@hotmail.com", "my name");
System.Net.Mail.MailMessage posta = new System.Net.Mail.MailMessage();
posta.IsBodyHtml = true;
string x="http://localhost:54897/aktivasyon.aspx?userMail=zzz@hotmail.com&id=1";
posta.Body = "
Onaylayın
";
posta.Subject = "AKTİVASYON KODU";
posta.To.Add("xxx@hotmail.com");
posta.From = ma;
posta.Priority = System.Net.Mail.MailPriority.High;
SmtpClient smtp = new SmtpClient();
smtp.Credentials = new System.Net.NetworkCredential("xxx@hotmail.com", "xxxx");
smtp.Host = "xxx.xxx.xxx.xxx";
smtp.Send(posta);
Member-2338430
10-Feb-12 9:52am
View
OK Wait PLEASE
Member-2338430
10-Feb-12 9:48am
View
ok I did like this but click here to view not look like a link this is my problem
Member-2338430
10-Feb-12 9:15am
View
href:http://localhost:52897/aktivasyon.aspx?userMail=xxx@hotmail.com&id=1
this is not like a link like seeing text ı dont understand
Member-2338430
10-Feb-12 9:01am
View
like thisss href:http://localhost:52897/aktivasyon.aspx?userMail=xxx@hotmail.com&id=1
Member-2338430
10-Feb-12 9:00am
View
Deleted
Onaylayın
Member-2338430
10-Feb-12 8:58am
View
ı try to now
Member-2338430
1-Feb-12 6:02am
View
ı put break point IPEndPoint From = new IPEndPoint(IPAddress.Any, HostPort);
this part ıpadress 0.0.0.0:7000
ı want to talk about 0.0.0.0 instead of an any ipadress 123.123.321.31 must be come.
Member-2338430
1-Feb-12 5:57am
View
class UDPAPI
{
public Socket udp_component = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
public byte[] OnReceiveBuffer = new byte[300];
public bool DataReceived = false;
public DataTerminal.Form1 f1;
public bool InitUDPOnReceive(out string msg,int HostPort)
{
msg = "";
IPEndPoint From = new IPEndPoint(IPAddress.Any, HostPort);
try
{
udp_component.Bind(From);
}
catch (SocketException ex)
{
msg = ex.SocketErrorCode.ToString();
return false;
}
udp_component.ReceiveTimeout = 2000;
IPEndPoint ipeSender = new IPEndPoint(IPAddress.Any, 0);
EndPoint epSender = (EndPoint)ipeSender;
try
{
udp_component.BeginReceive(OnReceiveBuffer, 0, OnReceiveBuffer.Length, SocketFlags.None, new AsyncCallback(OnReceive), epSender);
}
catch (SocketException ex)
{
msg = ex.SocketErrorCode.ToString();
return false;
}
return true;
}
public void OnReceive(IAsyncResult ar)
{
IPEndPoint ipeSender = new IPEndPoint(IPAddress.Any, 0);
EndPoint epSender = (EndPoint)ipeSender;
try
{
udp_component.EndReceive(ar);
//Process Incoming Data below->
//Data is now in OnReceiveBuffer
DataReceived = true;
f1.richTextBox1.AppendText(Encoding.ASCII.GetString(OnReceiveBuffer, 0, OnReceiveBuffer.Length));
//<-Process Incoming Data above
OnReceiveBuffer.Initialize();
Array.Clear(OnReceiveBuffer, 0, OnReceiveBuffer.Length);
//Start listening to receive more data from the user
udp_component.BeginReceive(OnReceiveBuffer, 0, OnReceiveBuffer.Length, SocketFlags.None, new AsyncCallback(OnReceive), epSender);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
Member-2338430
1-Feb-12 5:04am
View
you can imagine 5 gatess student coming and has ıd card student keep his/her card on the gates and we will sayy ok this is my student open the gate but we use same port number which one gate will open so we must learn gate's ip adress
Member-2338430
1-Feb-12 5:00am
View
IPEndPoint From = new IPEndPoint(IPAddress.Any, HostPort);
ı want to learn IPAddress.Any not any which one we change this part
Member-2338430
1-Feb-12 4:58am
View
all of them
we can change each gates port number so which one send data we can catch it but we want to use same port and we learn which gate send data and its ip adress we want towork with ip adress not port number
Member-2338430
1-Feb-12 4:32am
View
very important for me how to learn sendergate ip adress?
Member-2338430
25-Jan-12 4:26am
View
do you visit this link?
http://www.dancefm.com.tr/default.asp?L=1
dance fm top 5 part how can ı do like it?
Member-2338430
24-Jan-12 6:50am
View
ok browser crome
this is url http://rss.hurriyet.com.tr/rss.aspx?sectionId=1 ı dont know url returns which content type
content type textxml
Member-2338430
12-Jan-12 6:24am
View
thanks I solved
Member-2338430
12-Jan-12 6:20am
View
ı see same error and ı solved thanks alot sharag
Member-2338430
4-Jan-12 5:03am
View
Deleted
void btnHesapla_Click(object sender, EventArgs e)
{
int deg = Convert.ToInt32(txtSayi);gives me an error here
int yuzler, onlar, birler;
string yuzz, onn, birr;
yuzler = (((deg) / 100) * 100);
yuzz = cevir(yuzler);
onlar = (((deg) / 10) * 10) - yuzler;
onn = cevir(onlar);
birler = ((deg) % 10);
birr = cevir(birler);
lblYazi = yuzz + " " + onn + " " + birr;
}
Member-2338430
4-Jan-12 5:02am
View
Deleted
TextBox txtSayi = new TextBox();
Button btnHesapla = new Button();
Label lblYazi = new Label();
this.Controls.Add(btnHesapla);
this.Controls.Add(txtSayi);
this.Controls.Add(lblYazi);
txtSayi.Location = new Point(100, 150);
lblYazi.Location = new Point(100, 100);
btnHesapla.Text = "HESAPLA";
btnHesapla.Location = new Point(100, 200);
btnHesapla.Size = new Size(20, 20);
btnHesapla.Width = 150;
btnHesapla.Height = 50;
btnHesapla.FlatStyle = FlatStyle.Flat;
btnHesapla.Click += new EventHandler(btnHesapla_Click);
Member-2338430
3-Jan-12 7:38am
View
is there code this about algorithm with c++?
Member-2338430
28-Dec-11 8:00am
View
if smtp host name is not valid how ı send a mail with windows form application?
Member-2338430
28-Dec-11 7:59am
View
valid my smtp host name can be different error what do you think about?
Member-2338430
28-Dec-11 6:22am
View
HOW CAN I WRITE CODE WİTH C# DO YOU HAVE AN EXAMPLE CODE?CAN YOU SHARE ME
Member-2338430
14-Nov-11 10:22am
View
where ı download this trial ı didnt find
Member-2338430
8-Jul-10 2:09am
View
THANKS WILLIAM.
Member-2338430
8-Jul-10 2:08am
View
OK THANKS MY FRIENDS SOMEONE UNDERSTAND ME.I IMPORT CODE IN MY PROJECT IT IS WORKING.
Member-2338430
8-Jul-10 2:05am
View
Reason for my vote of 5
THANKS
Show More