|
Hi There,
I was wondering if someone might have any information as to why when I place a toolstrip in a windows form I get a sort of grey border on the right hand side. Its not that noticeable but it is visible and I'm intrigued why it may be there.
http://i.imgur.com/pBrUByR.png[^]
I have included an image of what I am trying to explain, you may need to zoom in a bit on the image to see it.
|
|
|
|
|
I've noticed it too. Try increasing the R-margin of the Toolstrip and see if that pushes the grey border out of view.
/ravi
|
|
|
|
|
Hello again... today i'm asking about the report how to do report from date to date i'm using asp.net and c# i have tried many tutorials but i failed so any one can help??.. Thanks
|
|
|
|
|
What have you tried?
Where are you stuck?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
i tried many ways but most of the tutorials for vb not asp so i want example or tutorials please help ??
|
|
|
|
|
First work out what you are going to use as a reporting tool!
Then work out how you are going store and return the data (presumably a database)
Then work out how you are going to extract the data for the report (query, collection, stored procedure)
Then write the report in your desired reporting tool to display the data you have extracted.
Then write an app that will display the report for the user.
Simple see.
How can we possibly recommend a tutorial when we know only that you are using asp.net.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
i have make a database and aspx page and i used report viewer tool and i works but now i would like to generate a report from date to date i saw many ways using crystal report so crystal report is the way i should used to get date to date report??
|
|
|
|
|
No crystal reports is the worst choice you could make, use almost any other reporting tool and you will be in front. I recommend SQL server reporting services, comes with the database.
You need to use the database query to get date specific records. The reporting tool does not do that for you.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
thanks for ur replay and i understand u but what i miss is how to do it could u please make an example or to recommend any tutorial for me please??
|
|
|
|
|
Search google for a tutorial as JSchell suggested.
Select FieldList...
From SomeTable
Where datefield between @FromDate and @ToDate
That is a query to get data for a report, assuming you are using SQL Server! You have not even to;d us the database you are using, nor the reporting tool you have chosen.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Following in google gives examples of reports
C# example report
|
|
|
|
|
Incorrect syntax near the keyword 'update'. cmd1.CommandText = "select update"
|
|
|
|
|
"select update" is not a valid SQL-statement. You should look for some SQL-tutorial[^].
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
|
Hi,
I wanted to know how can I encrypt any number to a 6 unique alphanumeric digits using C#?
Thanks
Jassim[^]
Technology News @ www.JassimRahma.com
|
|
|
|
|
ANY number? Down to a UNIQUE 6 digit code?
Think about that. How are you going to represent any number UNIQUELY in a space that, by definition, can only hold 1,000,000 unique values?
By the way, that's not encryption. That's a hash.
You might want to go into what you're really trying to do with this.
|
|
|
|
|
Though Dave overlooked that you were talking about an alphanumeric representation, this doesn't change the fact that you can't represent any number in 6 digits UNIQUE alphanumeric.
1.) 2'175'005'370 would be the highest number you can represent that way ("ZYXWVU").
2.) Because the digits should be unique, not all numbers in that range can be represented. The lowest number that can be represented is 1'776'965 (= "012345") and there will be several "gaps" in between.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
modified 22-May-15 21:25pm.
|
|
|
|
|
Just to add to what the others say: Encryption implies that Decryption is possible - but what you are talking about is Basically Hashing (as Dave mentioned) which cannot be reversed, cannot be "de-hashed". Once you have generated your unique code, you can't get the original input back. Encryption does not have a fixed length output, only hashing does.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
modified 23-May-15 6:23am.
|
|
|
|
|
Getting an error: input string was not in a correct format
asp:
onrowdatabound="highlightrow"
protected void highlightrow(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
int ActualFTE=Convert.ToInt32(e.Row.Cells[5].Text);
if (ActualFTE > 1.25)
{
e.Row.BackColor = Color.Red;
}
}
}
modified 22-May-15 14:31pm.
|
|
|
|
|
The error message says it clearly.
You are trying to covert a decimal to int.
Change your stament like below and try.
decimal ActualFTE=Convert.ToDecimal(e.Row.Cells[5].Text);
if (ActualFTE > 1.25)
|
|
|
|
|
|
Still getting the same error.
|
|
|
|
|
Can you post what value is coming in
e.Row.Cells[5].Text It will give a better idea on what we are dealing with.
|
|
|
|
|
|
decimal ActualFTE=Convert.ToDecimal(e.Row.Cells[5].Text);
if (ActualFTE > 1.25)
In the above code check whether e.Row.Cells[5].Text returns data that can be converted to decimal. Or add ToString() at the end and see if it helps.
decimal ActualFTE=Convert.ToDecimal(e.Row.Cells[5].Text.ToString());
|
|
|
|