|
|
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
|
|
|
|
|
I would suggest you to google like this: "implementing licensing for trial versions in windows applications"
Be a good professional who shares programming secrets with others.
|
|
|
|
|
First off, this is the ASP.Net forum and not the Windows Application forum. Secondly, you need to implement a license. There are many, many ways to do it. Some are easier but not as resistant to hacking and others are more complex to implement. You may want to research online the various options and then decide what works best for you.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Sorry But can u Suggests me some Ways to do that
|
|
|
|
|
.NET Reactor[^] is a powerful .NET Code Protection & Software Licensing System. Protect, encrypt, obfuscate, merge and license your .NET assemblies.
Maulik Dusara
Sr. Sofware Engineer
|
|
|
|
|
I Have Downloaded . net Reactor.. but it working.. i think it is very difficult to use.. can you suggest me how can i use .Reactor to make a License Project.
|
|
|
|