|
thanks. but why we use constructor?
|
|
|
|
|
ptvce wrote: but why we use constructor?
Like I said, to instanciate a class;
Or, do you mean, why we use parameterized constructors?
All the best,
Martin
|
|
|
|
|
I think you might want to buy a book on OOP, as this is a very fundamental question to understanding it.
Standards are great! Everybody should have one!
|
|
|
|
|
hi all
i am doing a chatting a softeware and my Qn is how can i blink the form when it receives a message ...i mean if the form is minimized, the form should blink on receiving a message..
Regards
Joemon Varghese
|
|
|
|
|
Hi,
i can't help you with a blinking form, but what do you think of a blinking notifyIcon? You would just need a timer to change the notifyIcon each second or so.
Regards
|
|
|
|
|
i need to know What is SSL Encryption means ? how to get ssl encryption in page?
sathimailin
|
|
|
|
|
sathimailin1 wrote: What is SSL Encryption means
SSL is Secure Socket Layer, an encryption mechanism used to send information securely on internet. Basically it holds a public key and a private key.
sathimailin1 wrote: how to get ssl encryption in page?
You have to install SSL on IIS. And browse your site through HTTPS protocol. If your web applications really needs to send sensitive information like Credit card numbers, you could use SSL. But it always requires more processing overhead and financial overhead.
|
|
|
|
|
Thanks a lot for ur reply and from where i ll get the SSL to install and how to install it on IIS. can u please make me clear.
sathimailin1
|
|
|
|
|
|
Really good one u linked me and thanks
i voted you 4
sathimailin1
|
|
|
|
|
|
Thanks a lot for ur reply and from where i ll get the SSL to install and how to install it on IIS. can u please make me clear.
sathimailin1
|
|
|
|
|
hi friends,
how does a select statement in stored procedure makes difference from a select statement in class.
what are the gain in doing it..
ganesh
|
|
|
|
|
Stored procedure is pre-compiled but the class query coding needs to get compiled in run time
sathimailin1
|
|
|
|
|
For each SQL Command the DBMS will do syntax check and execution plan generation.
For class queries DBMS will do it for each time the query executed, for stored procedures, at the first execution DBMS will do the syntax check and will store the execution plan. So it executing a Stored Procedure is efficient than usual queries.
Regards!
|
|
|
|
|
Hi,
I am going to develop a Windows Service in C#. It will be triggering for every 24hours and I want to invoke it On Demand As well.
Can I invoke a windows service on demand????
Thanks & Regards !!!
jayasshc
|
|
|
|
|
|
Thanks a lot
|
|
|
|
|
Hi,
Can't I invoke its method without stoping and starting?
jayasshc
|
|
|
|
|
Hi
This is Murthy. Anybody has a C# Code
to generate 12 digit Unique Promotion Codes/Coupon Numbers.
Those numbers should not be generated in sequence like 10234, 10235, 10236 etc...
All the numbers should be generated in random and should not be duplicated.
Example:
1. Promotion Codes for Product Discounts.
2. Prepaid Recharge Coupons for Mobile Phones etc.
Thanks
Murthy.
|
|
|
|
|
Most likely what you want is for the last digit to be a checksum, so you can verify the codes are genuine. If you need to generate a random sequence, your best bet is to create an int list, and use a random generator to pull numbers out of it at random positions.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have this code in file default.aspx below :
<asp:DataList id="DstAlbum" RepeatColumns="3" RepeatDirection = "Horizontal" BackColor="#FFFFFF" OnItemDataBound="Album_DataList_ItemDataBound"> <ItemTemplate> <tr>
<td><table width="100%" style="WIDTH:100%"> <tr>
<td align="center"><asp:HyperLink id=Album_name NavigateUrl='<%# "AlbumDetail.aspx"+"?"+"id+Album="+Server.UrlEncode(DataBinder.Eval(Container.DataItem, "id_Album").ToString()) +"&" +""%>' style="font-size: 10pt; color: #000000" runat="server"> <%#Convert.ToString(DataBinder.Eval(Container.DataItem, "TenAlbum")) %> </asp:HyperLink> </td></tr>
<tr><td><input type=hidden id=Album_image runat="server" value=<%#Convert.ToString(DataBinder.Eval(Container.DataItem, "AnhBia")) %> NAME="Album_image"></td></tr>
</table></td></tr> </ItemTemplate>
</asp:DataList>
And file default.aspx.cs below :
private void Page_Load(object sender, System.EventArgs e)
{
string strConn = "Integrated Security = SSPI;" + "InitialCatalog=HopNhac_Database;" +
"Data Source=localhost;";
string strSQL = "Select id_Album,TenAlbum,AnhBia From tblAlbum";
SqlDataAdapter dad = new SqlDataAdapter(strSQL,strConn);
DataSet dst = new DataSet();
dad.Fill(dst,"tblAlbum");
DataView Source;
Source = new DataView(dst.Tables[0]);
DstAlbum.DataSource = Source;
DstAlbum.DataBind();
}
public void Album_DataList_ItemDataBound(Object Sender, DataListItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{ ((HyperLink)e.Item.FindControl("Album_name")).Text ="<img border=\"0\" src=\"" + ((DataRowView)e.Item.DataItem )["AnhBia"].ToString() + "\"></td><td valign=\"top\"><table width=\"100%\" style=\"width:100%\"><tr><td style=\"background-color: #FFFFFF; border-style: inset; border-width: 0\"><font style=\"font-size: 10pt; color: #CE7E00; font-weight: bold\"><b>" + ((DataRowView)e.Item.DataItem )["TenAlbum"].ToString() + "</b>";
}
}
When I compiled , it take an error : 'System.Web.UI.Control' does not contain a definition for 'DataItem'.
And that error is Hyperlink at default.aspx file.
somewhere is paradise.
|
|
|
|
|
noone help me..hix..
nothing
|
|
|
|
|
Hai,
On RichTextBox Control, there's a property "DetectUrls". When the property value is "true" then any word begin with "www." on that richTextBox will be treated as Hyperlink.
my Question :
How do we treat the text on richTextBox as hyperlink manually?
Or, maybe there's any class that we could edit so there will be more word pattern to be treated as hyperlink?
thankz for the information
Mail me at erwin@holyknight.us
|
|
|
|
|
wienzzz wrote: How do we treat the text on richTextBox as hyperlink manually?
Probably by using regex on the string.
wienzzz wrote: Mail me at erwin@holyknight.us
No-one is going to mail you, except spam bots. The site mails you when people reply to your messages, if you gave the site your address. I hope you d id, seeing as you're giving it to the world at large.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|