|
i have a subtract function like
object subtract(object a , object b)<br />
{<br />
object c = null;<br />
Int32 i = 0, i1 = 0;<br />
if (a.GetType().Name == "Int32")<br />
{<br />
i = (Int32)a;<br />
}<br />
if (b.GetType().Name == "Int32")<br />
{<br />
i1 = (Int32)b;<br />
}<br />
i = i - i1;<br />
c = i;<br />
return c;<br />
} i don;t know , what type of numeric value the user can send.
so am i doing right in the funciton subtract , there in the subtract funciton i can check for other datatypes like int16 , int64 , decimal etc also.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
To be honest it seems like needing this function comes from a strange design decision somewhere else. Why do you need to subtract an object from another object?
|
|
|
|
|
Finally, i m asking to again my probleam. i have two network pc (PC1 and PC2). i installd kesperkey antivirus in both the pc. when i am trying to access PC1 network machine then open popup window and i have to enter username and password then i am access PC2 network machine it's username and password store in control panel (user account) PC1 machine. But i want to create a exe in asp.net i have write user name and password to write in my application when execute this exe automatically enter that username and password. how it is possible. i am trying before four days. plz help me.
|
|
|
|
|
I'm confused, you want to write an asp.net app which automatically enters passwords and usernames into a login scren? is that correct?
We are not a Code Charity
|
|
|
|
|
i don't want to show login screen. when execute my exe then automatically pass username and password the back end process.
|
|
|
|
|
I dont think you can do such a thing in asp.net
We are not a Code Charity
|
|
|
|
|
Rinki Mukheraji wrote: But i want to create a exe in asp.net
|
|
|
|
|
Hi
I have an asp:Button for registering in my site and asp:Login to login in my site. For the both of the buttons, I want to have my images as background, so I put background: url(my image path) but still I am getting the same buttons in the page. Is there other way to get my images as buttons.
Here is my code for asp:login
<asp:Login ID="LoginForm" runat="server" RememberMeText="Remember me" TitleText="" RememberMeSet="True" TextLayout="TextOnTop" VisibleWhenLoggedIn="False" CreateUserText="Create an Account" CreateUserUrl="~/CreateUser.aspx" PasswordRecoveryText="Forgot your Password?" PasswordRecoveryUrl="~/RecoverPassword.aspx" PasswordLabelText="Password" UserNameLabelText="User Name" LoginButtonImageUrl="~/images/Login.png" LoginButtonText="Sign In" CssClass='loginBox'>
<CheckBoxStyle HorizontalAlign="Left" Width="150px" Wrap="True" />
<TextBoxStyle Width="160px" />
<LabelStyle HorizontalAlign="Left" Wrap="False" />
</asp:Login>
thanks
|
|
|
|
|
why dont you put image button before the
</asp:Login>
We are not a Code Charity
modified on Tuesday, July 1, 2008 4:15 AM
<div class="ForumMod">modified on Tuesday, July 1, 2008 4:17 AM</div>
|
|
|
|
|
The 'LoginButtonImageUrl' property contains the URL of the image rendered as the Login control login button when the 'LoginButtonType' property is set to 'Image'.
|
|
|
|
|
sqldr1 is my sqlreader.
After the process in the try catch block, I'm closing the reader in the finally block.
Try...catch
Finally
sqlDr1.Close()
sqlCmd = Nothing
End Try
Here I am getting the following warning msg. What I have to do?
Variable sqldr1 is used before it has been assigned a value.
A null reference exception could result at run time. Tnx in adv.
Balasubramanian K.
|
|
|
|
|
The error message basically means what it says
You are using sqldr1 before you have given it a value and in which case it will be empty when you run it.
Thats my opionion anyway!
We are not a Code Charity
|
|
|
|
|
If you are assigning 'sqlDr1' in the try block, and if the exception occurred when you are assigning 'sqlDr1', it goes to Finally, But 'sqlDr1' is still nothing.
That is the meaning of the warning.
|
|
|
|
|
Hi,
When the SqlDataReader object is null, there is nothing for it to close. So, you will get this warning. What you could do is add this code to your finally block.
finally
{
if (sqlDr1 != null)
{
sqlDr1.Close();
}
}
Thx,
Gayani
|
|
|
|
|
This also happen if you do this:
SqlDataReader rdr;<br />
<br />
try<br />
{<br />
<br />
}<br />
catch(Exception ex)<br />
{<br />
<br />
}<br />
finally<br />
{<br />
if(rdr != null)<br />
{<br />
rdr.Close()<br />
rdr = null;<br />
}<br />
}
Simple fix is do this:
SqlDataReader rdr = null;
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Hi
I have an <asp:button for="" registering="" in="" my="" site="" and="" xmlns:asp="#unknown"><asp:login to="" login="" in="" my="" site.="" for="" the="" both="" of="" i="" want="" have="" images="" as="" so="" put="" image="" but="" still="" am="" getting="" same="" buttons="" page.="" is="" there="" other="" way="" get="" mode="hold">
Here is my code for asp:login
<asp:Login ID="LoginForm" runat="server" RememberMeText="Remember me" TitleText="" RememberMeSet="True" TextLayout="TextOnTop" VisibleWhenLoggedIn="False" CreateUserText="Create an Account" CreateUserUrl="~/CreateUser.aspx" PasswordRecoveryText="Forgot your Password?" PasswordRecoveryUrl="~/RecoverPassword.aspx" PasswordLabelText="Password" UserNameLabelText="User Name" LoginButtonImageUrl="~/images/Login.png" LoginButtonText="Sign In" CssClass='loginBox'>
<CheckBoxStyle HorizontalAlign="Left" Width="150px" Wrap="True" />
<TextBoxStyle Width="160px" />
<LabelStyle HorizontalAlign="Left" Wrap="False" />
</asp:Login>
thanks
|
|
|
|
|
What's the question ? Your message is broken. Please arrange it to fit on the screen.
|
|
|
|
|
Hi,
I have a Update progress bar where i am using one gif image, but while showin the image if some one mouse over that image some saveas, fulscreen icon [ Default image properties in web ] are coming. i want to hide. please give me some sugestion !!!
Thanks in advance !!!
|
|
|
|
|
As it is a normal image, browser will show all the properties for normal image. You can't restrict it effectively.
|
|
|
|
|
Hi navaneeth,
Thanks for reply . is there any work arround ???
please suggest !!!
|
|
|
|
|
I don't know. You might get some nasty JS scripts to block users right click. But it's not reliable as JS can be turned off by the client. BTW, are you worried about some one copying your progress indication image ?
|
|
|
|
|
I am not talking about Right click, Right click is alredy disable on our all pages.
i am talkin about on mouse over . Check the url
Click here[^]
Now mouse over on that image.
Check The Top Diagonal Section
[Save][Print][Email][MyPiccture] icon are coming,
I want to hide that.
Hope now you are clear on that
Thanks !!!
|
|
|
|
|
Whatever I said stands. It's not possible to turn it off.
Abhijit Jana wrote: I am not talking about Right click, Right click is alredy disable on our all pages.
Is it ? how reliable it is ?
|
|
|
|
|
N a v a n e e t h wrote: Is it ?
yes.
N a v a n e e t h wrote: ? how reliable it is ?
completely
|
|
|
|
|
If you have used javascript it is not 100% reliable
If you have used another language I am interested to know what you did
We are not a Code Charity
|
|
|
|