Advertisement
Advertisement
| 05.11.2008 at 02:03AM PDT, ID: 23392493 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: |
private void ProcessForm(HtmlForm form)
{
foreach (Control control in form.Controls)
{
if (control is TextBox)
{
TextBox mControl = (TextBox)control;
if (mControl.Text.StartsWith("__")) mControl.Text = writeTextFromDB(mControl.Text);
}
else if (control is Label)
{
Label mControl = (Label)control;
if (mControl.Text.StartsWith("__")) mControl.Text = writeTextFromDB(mControl.Text);
}
//and so on.....
}
}
|
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 05.11.2008 at 02:29AM PDT, ID: 21541941 |
1: 2: 3: 4: 5: 6: 7: |
foreach (Control control in form.Controls)
{
if (control is TextBox || control is Label) // Add any extra controls that have the Text property
{
if (ontrol.Text.StartsWith("__")) control.Text = writeTextFromDB(control.Text);
}
}
|
| 05.11.2008 at 02:37AM PDT, ID: 21541954 |
| 05.11.2008 at 02:56AM PDT, ID: 21541976 |
| 05.11.2008 at 05:01AM PDT, ID: 21542188 |
| 05.11.2008 at 05:08AM PDT, ID: 21542208 |
| 05.11.2008 at 06:48AM PDT, ID: 21542453 |
| 05.11.2008 at 07:09AM PDT, ID: 21542487 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: |
private void ProcessForm(HtmlForm form)
{
Int32 controlsCount = form.Controls.Count;
for (Int32 i=0; i<controlsCount; i++)
{
if (typeof(form.Controls[i])==TextBox)
{
// Do stuff here
}
else if (...)
{
...
}
}
}
|
| 05.11.2008 at 07:17AM PDT, ID: 21542501 |
| 05.11.2008 at 08:16AM PDT, ID: 21542640 |