|
Very strange to see that. But how does it work on client side is still a question. Or does it work only on localhost? I think it will work only on localhost. Have you tested this?
Also you can see the same discussion at http://p2p.wrox.com/topic.asp?TOPIC_ID=11595[^]
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
Just checked it. MessageBox is always populated on server desktop. It will create hell when thousands of user will access the site and there is message box for frequently occuring errors or events. This is same like showing message box from a console application. I dont see any use unless and until somebody is continously sitting in front of server and tracking the errors. I found this link.
http://www.developerfusion.co.uk/show/4700/[^]
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
jdkulkarni wrote: I dont see any use unless and until somebody is continously sitting in front of server and tracking the errors.
I agree, it only seems useful for development purposes.
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
Here is one good example[^]
"My advice to you is to get married. If you find a good wife, you will be happy; if not, you will become a philosopher." Socrates
|
|
|
|
|
Hi,
How can we set the width of a column of a dataset that is binded to a dropdownlist?
Thank you!
Regards,
Deepa!
Be the Change You Want to See!
|
|
|
|
|
Are you talking about a datagrid or datagridview?
If so, is the dropdownlist a column within the dataset?
I'm going to need a little more information about the control you're trying to resize, what controls it is in, and where the data is coming from.
|
|
|
|
|
Hi,
I'm binding the value of a dataset to a dropdownlist.I need to change the column width.
Here is the code:
StringBuilder stbSQLStatement = new StringBuilder();
stbSQLStatement.Append("SELECT [RiskCatID] ");
stbSQLStatement.Append(" ,[Description] ");
stbSQLStatement.Append("FROM [MARTblRiskCat] WITH (NOLOCK) ");
DataSet dtsResult = new DataSet();
dtsResult = QueryData(stbSQLStatement.ToString());
ucbRiskCat.DataSource = dtsResult;
ucbRiskCat.DataBind();
I need to reduce the column width of the columns displayed in the dropdownlist.
Thank you,
Regards,
Deepa!
Be the Change You Want to See!
|
|
|
|
|
I want use the metod public T Find (Predicate<t> match) to find an string in myList.
But I have no idea how can I find a string as a parameter.
I know only this way:
List<string> mylist = myList.FindAll(demo);
Is this way possible:
List<string> mylist = myList.FindAll(demo(object x));
Edit/Delete Message
-- modified at 3:51 Thursday 7th December, 2006
|
|
|
|
|
From the documentation, it doesn't look like it would work, but I would try it to see if it did. Maybe the error message will give you insight.
As a (bad) workaround, create a search criteria member variable of your class.
for example:
private string FindAllSearchCriteria;
Set that before the findAll
this.FindAllSearchCriteria = "whatever";
then call
List mylist = myList.FindAll(demo);
Inside your demo method, use the this.FindAllSearchCriteria as your criteria for the search.
|
|
|
|
|
Hi,
Currently I use the following method in the presentation layer to capture the changes in a gridview control on a windows form:
DataSet data;
//Added records...
data = gridViewDataSet.GetChanges(DataRowState.Added);
//Modified records...
data = dsEmployeesList.GetChanges(DataRowState.Modified);
//Deleted records...
data = dsEmployeesList.GetChanges(DataRowState.Deleted);
So basically I loop through each record in the grid (In the presentatioin layer) and call the necessary stored procedures (in the datalayer) according to the state of the row.
This works fine.
My question is, there is no transaction.
So, should I stop using this method and use .update of DataAdapter or is there another method please?
I was thinking about transaction of connection but do not think I can use this in the presentation layer.
Hope you follow what I am asking.
Thanks
|
|
|
|
|
Hi, I'm having problem with hwo to get date.
I want to get a date of each end of the month in the current year.
so, if now is 2006 I want to get:
31 januari 2006, 28 Pebruari 2006 ....... 31 December 2006.
Then I want each date to be inserted into MySQL Table Field (with DATE type).
Thanks a lot for any helps.
Virtual Memory too low... thinkin' impossible
|
|
|
|
|
Hi,
You can try using DateTime.DaysInMonth(2006, 10);
Where first parameter is an year and second one is month. You can put int i and run the same function for 12 times.
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
Wow, that was fast response. And I tried that.
Thanx a lot !
Enjoy It!
|
|
|
|
|
just i want the code for reversing a string through an array.
|
|
|
|
|
Try doing this.
Array.Sort<string>(new string[] {"j", "a", "y", "a", "n", "t"});
Array.Reverse();
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
hi
you can do this:
<br />
String s = "the string to convert";<br />
char [] array = s.ToCharArray();<br />
char[] newArray;<br />
int count = 0;<br />
for (int i = array.Length - 1; i >= 0; i--)<br />
{<br />
newArray[count] = array[i];<br />
count++;<br />
}<br />
String newString = new String(newArray);<br />
there should be more flexibale methods.
but this came to my minde right now knowing that you have some conditions that it should be done using an array.
hope it helps best regards
|
|
|
|
|
quiteSmart wrote: array[i] = newArray[count];
Or perhaps the other direction...
---
b { font-weight: normal; }
|
|
|
|
|
Yea your right,
a small mistake.
i corrected it now
thanks
|
|
|
|
|
Try this...
string string1 = "String To Reverse";
string string2 = string.Empty;
StringBuilder sb = new StringBuilder();
char[] sArr = string1.ToCharArray();
for (int j = sArr.Length - 1; j >= 0; j--)
sb.Append(sArr[j].ToString());
string2 = sb.ToString();
|
|
|
|
|
string message = "!dlrow olleH";<br />
char[] temp = message.ToCharArray();<br />
Array.Reverse(temp);<br />
message = new string(temp);
---
b { font-weight: normal; }
|
|
|
|
|
nice and short
good work
|
|
|
|
|
If you want extra credit in the class, use recursion.
|
|
|
|
|
hi all,
this is my first mail to the forum...Plz let me know the answer for this ASAP.
here is my Problem:
public class R01Struct {
/// <remarks>
public AnImpositionType Annee;
/// <remarks>
public string NoReleve;
/// <remarks>
public R01StructIdentification Identification;
/// <remarks>
public Adresse2Struct Adresse;
/// <remarks>
public R01MntStruct Montants;
}
public class R01StructIdentification {
/// <remarks>
[System.Xml.Serialization.XmlElementAttribute("RaisonSociale", typeof(R01StructIdentificationRaisonSociale))]
[System.Xml.Serialization.XmlElementAttribute("Employe", typeof(R01StructIdentificationEmploye))]
public object Item;
}
public class R01StructIdentificationEmploye {
/// <remarks>
public string NAS;
/// <remarks>
public string No;
/// <remarks>
public string NomFamille;
/// <remarks>
public string Prenom;
/// <remarks>
public string Initiale;
}
there are two classes in one of my code files in my c#window application.my problem is i am trying to acces the content of the "R01StructIdentificationEmploye" by taking a varible of type R01Struct.
here is my old code when the identification class was not there.
((R01Struct)REL1.Items[i]).Employe.NAS = row["NAS"].ToString()"" ? "000000000" : row["NAS"].ToString();
pls give me the solution as soon as possible
vamsee krishna
|
|
|
|
|
Are you creating an instance of that class in your R01Struct contructor?
|
|
|
|
|
hi
I'm working a windows application project in C# and I was wondering how can we make or use icons for our application u know. It requires .ICO file and many softwares dont sopport making these so what should I do.
do u know of any site where some good icons are available or somethin like that
thanks in advance
Rocky
|
|
|
|