|
|
thanks that looks helpful
Rocky
|
|
|
|
|
i have already created the tables in access.
i want to see the create query of the tables.
is it possible to get the create table query for existing tables in access?
Plz reply me
|
|
|
|
|
If you have access to SQL Server Management studio it is very easy, assuming you have SQL Server 2005.
Just rightclick and select Tasks > script to > CREATE.
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
Hi, i need to disply the ouptput text of Label in the form of Hungarian Notation..
i have a label i need to desplay the label.text values as TitleCase...
eg. if the output to label is im in love, i need to desplay as Im In Love.
Hope u got me.
please tell me the formatting solution.
prashanth,
s/w Engineer,
Syfnosys.
|
|
|
|
|
Look for the options of a regular string. I would do the following algo:
- split on every space into an array
- for every element in array, the most left character is made upper, and add it to another string
static string CamelCase(string input)<br />
{<br />
string[] words = input.Split(' ');<br />
string output = "";<br />
foreach (string word in words)<br />
{<br />
output += word.Substring(0, 1).ToUpper() + word.Substring(1) + ' '; <br />
}<br />
<br />
return output;<br />
}
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
Thnx for ur reply,
but i wannt to clarify onething,
here i am taking the lbltemp.Text(label) values in runtime and assigning to lbltemp, how can i do that? i don't need to split coz i'm gonna take the same format, All I Need To Do Is, just wanna make everyFirstLetter to Capitol.
And Also, Do u know how to print Degree(celcious) value through keyboard do u know ASCI Value?
Thnx
pashi
prashanth,
s/w Engineer,
Syfnosys.
|
|
|
|
|
pashitech wrote:
And Also, Do u know how to print Degree(celcious) value through keyboard do u know ASCI Value?
Try this
pashitech wrote: here i am taking the lbltemp.Text(label) values in runtime and assigning to lbltemp, how can i do that? i don't need to split coz i'm gonna take the same format, All I Need To Do Is, just wanna make everyFirstLetter to Capitol.
Well the solution that joon told you will also work at runtime. You can just do something like:
<br />
string tempString = lblTemp.Text;<br />
lblTemp.Text = tempString;<br />
Do your best to be the best
|
|
|
|
|
1. I provided you with the complete solution as a function, because I was bored, usually people write their own code. All you have to do is copy the function into your code somewhere, and make it public/private as appropriate so you can access it. Then just use lblTemp.Text = CamelCase(lblTemp.Text).
2. google "ASCII Table". Not many people know these tables by heart and googling it will be faster
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
press F1 in the IDE
select index
type ASCII
|
|
|
|
|
How do I enable column sort in a ListView?
_____________________________
...and justice for all
APe
|
|
|
|
|
ListView.Sorting can be set to None, Ascending, or Descending, repective to how the items will be sorted.
Hope this helps.
|
|
|
|
|
But I want to click on the columns and make a sort "ala Windows Expolorer"
_____________________________
...and justice for all
APe
|
|
|
|
|
|
hi,
i am using datagridview and i am having 4 columns
now i want to validate the entry like
e.g i should enter numbers in 2'nd column ,text in thied column
pls help me.
with regards
prasad
|
|
|
|
|
I think you mean that make sure that what was entered in each column is in the correct format, which you can do with regular expressions. There are a lot of articles about it, try RegexTester.asp[^] to get you started.
Hope this helps.
|
|
|
|
|
well u can handle this situation without using regular expressions as well. You need to handle the cellValidating event of the DGV and in that u'd code somthin like this.
int i;<br />
if(e.ColumnIndex == myDGVCol1.DisplayIndex)<br />
{<br />
if(!Int32.TryParse(e.FormattedValue,out i))<br />
{<br />
e.Cancel = true;<br />
MessageBox.Show("It is not an integer");<br />
myDGV[e.ColumnIndex, e.RowIndex].ErrorText ="Whatever";<br />
}<br />
<br />
<br />
}
and in order to go without taking special charaters u can use string manuipulation but I dont have the sample right now...
hope it helps
Rocky
|
|
|
|
|
Thank u
it is working
with regards
prasad
|
|
|
|
|
do we need to know much about javascript to understand AJAX and i want to know about AJAX in detail please guide me where do i start my preparation and how?
|
|
|
|
|
upadesh wrote: do we need to know much about javascript to understand AJAX
There are many AJAX frameworks and controls available now that mean you don't have to know much, if any, javascript.
upadesh wrote: want to know about AJAX in detail
Then you will need to understand javascript.
upadesh wrote: please guide me where do i start my preparation and how?
If you are in Scotland, you may be interested in an upcoming event by Scottish Developers held at Glasgow Caledonian University. See signature below for link.
|
|
|
|
|
Asynchronous Javascript and Xml
Actually finding out what the acronym AJAX means would have answered your question.
|
|
|
|
|
Try this link
You can find there a lot of useful stuff
Do your best to be the best
|
|
|
|
|
i want to create .csv files to the tables in oracle database and can anyone please tell me the namespaces required if any and the method to create .csv files
thanks®ards
upadesh
|
|
|
|
|
upadesh wrote: can anyone please tell me the namespaces required if any and the method to create .csv files
System.IO
You can then get a FileStream and write the data out.
|
|
|
|
|
CSV stands for Comma Seperated values, so teh layout of a CSV file is
field1,field2,field3,field4\r\n
field1,field2,field3,field4\r\n
field1,field2,field3,field4\r\n
...
so as Colin said, use regular TextWriter or other streamwriting thingies
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|