|
Store for what use? in db? in memory? in file? What are you doing with it?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
To me the best way to store a list of strings a List<String> .
Simples really!
Cheers!
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
|
|
|
|
|
use String builder . it's best one store to string and then compare to string is very fast..
Another one
- List<string> slist = new List<string>();
|
|
|
|
|
I have a view for import batches (headers, not details), which a link to start a new import. When the user clicks that link, I want to invoke my Import action method. Inside that standard, synchronous action method, I want to start an asynchronous task, and then redirect back to another view. That view will monitor the progress of the async task with ajax calls and update the view so the user can follow the progress.
Everything I can find goes into too much complexity with async action methods etc. which is overkill for me in the prototyping phase.
Suggestions and critique of what I want to do will be most welcome.
|
|
|
|
|
anyone plz tell me which is free version of iTextSharp library for pdf file exporting?
|
|
|
|
|
|
Comparison of MVC & n-Tier Architecture
Give comparison regarding their
->Advantages
->Disadvantages
->Purpose of use
etc etc
|
|
|
|
|
|
|
hi experts,
i am trying to install vsn server 2.5.9 from the link http://www.visualsvn.com/visualsvn/download/[^]
while installing vsn server i was asked to choose port no(2 port nos are displayed 443 & 8443).i have chosen 443 port no for https.so what i did is i removed https & selected 443 for visual vsn.now vsn is working fine.the issue i am facing is i am unable to run my application on iis using http.when i run my application i am getting "the address is incorrect,type the correct address".but the address is correct in the address bar.how to overcome this problem?if i want to run my application using https what port n do i have to choose?could anyone help me pls...
|
|
|
|
|
Okay so very easy to validate an email in ASP and also very easy to validate that someone enters between 6 and 30 characters but can someone help me in making sure that BOTH are checked in a Custom Validation perhaps. What I have for example:
<asp:CustomValidator ID="CustomValidator1" ClientValidationFunction="/^([_a-zA-Z0-9-]+)(\.[_a-zA-Z0-9-]+)*@([a-zA-Z0-9-]+\.)+([a-zA-Z]{2,3})$/" runat="server"
ControlToValidate="txtUserName" ErrorMessage="CustomValidator"
SetFocusOnError="True"></asp:CustomValidator>
I am sure it is something simple but just need to know. Right now all it is doing is just checking that the email is valid, but if nothing is on the field it checks nothing.
|
|
|
|
|
|
Hi Buddies,
I wanna to combine two columns with same heading using asp.net with c#.values i'm getting from database.
For example:
database retruning rows as
empid empname empdept empbranch
1 Suresh dev Bangalore
2 kavitha tester bangalore
3 Siva dev chennai
Required Result in UI is:
emp_personal emp_official
empid empname empdept branch
1 suresh dev bangalore
2 kavitha tester bangalore
3 siva dev chennai
|
|
|
|
|
Try concatenating the two columns in your select statement.
Example:
select empid empname + ' ' + empdept + ' ' + empbranch
|
|
|
|
|
Hi David,
i don't want to merge values,need to show them in separate table under same heading
|
|
|
|
|
SELECT ISNULL(empid, '') + ' ' + ISNULL(empname, '') AS emp_personal, ISNULL(empdept, '') + ' ' + ISNULL(empbranch, '') AS emp_official
FROM emp
check this query and please confirm me is this working for you or not?
|
|
|
|
|
I am using a CascadingDropdown for three dropdownlists for country,state and district.when the country is selected state will automatically get values,i have a tab index issue if the state value doesnt come on tabpress the control will on the fourth control that is after district dropdown.I had made tab index correctly any way to make it work nicely.If state comes up with value then no problem.if it doesn't then irritating
lk
modified 16-Apr-14 0:58am.
|
|
|
|
|
Hi all. I am writing a program using Microsoft Visual Web Developer. I have 3 textboxes (TextBox1, TextBox2 and TextBox3) and a button. I want to use a foreach loop to clear textboxes.
For some reason this code doesnt work on a Webform. While debugging it, the debugger skips the line: "if (c is TextBox)" and so the textboxes dont get cleared. Here control = {ASP.default_aspx}
When I use the below code in Microsoft Visual C# with a windows form it works. What could be wrong?
Here is the code:
protected void Button1_Click(object sender, EventArgs e)
{
ClearTextBoxes(this);
}
public void ClearTextBoxes(Control control)
{
foreach (Control c in control.Controls)
{
if (c is TextBox)
{
((TextBox)c).Text = " ";
}
}
|
|
|
|
|
Are your TextBoxes immediate descendants of the page? It's unlikely; you've probably got several layers of controls between them.
Try this:
public void ClearTextBoxes(Control control)
{
foreach (Control c in control.Controls)
{
var textBox = c as TextBox;
if (textBox != null)
{
textBox.Text = " ";
}
else if (c.HasControls)
{
ClearTextBoxes(c);
}
}
}
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
|
try this code
protected void Button1_Click(object sender, EventArgs e)
{
ClearTextBoxes(Page.Controls);
}
void ClearTextBoxes(ControlCollection control)
{
foreach (Control ctrl in control)
{
if (ctrl is TextBox)
((TextBox)ctrl).Text = string.Empty;
ClearInputs(ctrl.Controls);
}
}
|
|
|
|
|
|
|
#region Clear all text boxes page value (for server-side controls)
///
/// ex:FindTextBox(this);
///
/// <param name="c" />
public void FindTextBox(Control c)
{
if (c.Controls != null)
{
foreach (Control x in c.Controls)
{
if (x is System.Web.UI.WebControls.TextBox)
{
((System.Web.UI.WebControls.TextBox)x).Text = string.Empty;
}
FindTextBox(x);
}
}
}
#endregion
#region Clear all text boxes page value (for client side controls)
///
/// ex:FindHtmlInputText(this);
///
/// <param name="c" />
public void FindHtmlInputText(Control c)
{
if (c.Controls != null)
{
foreach (Control x in c.Controls)
{
if (x is System.Web.UI.HtmlControls.HtmlInputText)
{
((System.Web.UI.HtmlControls.HtmlInputText) x).Value = string.Empty;
}
if (x is System.Web.UI.HtmlControls.HtmlTextArea)
{
((System.Web.UI.HtmlControls.HtmlTextArea)x).Value = string.Empty;
}
FindHtmlInputText(x);
}
}
}
#endregion
ex:FindHtmlInputText(this);
Hope you can help!!!
|
|
|
|
|
I Want To Validate my Windows Project while User can not Share this project to another or in One year Project will be Expired
Like An Antivirus Program Expired after One or two months
|
|
|
|