I have a MessageBox display when submitting a stream read file. However the box keeps coming up even after clicking okay. When I hold down the Enter key to fly through the boxes, only one field gets added from the file.
Heres my codebehind
if (FileTypeDDL.SelectedValue == "Calendar Dates" && fileName == "calendar_dates.txt")
{
//Ch...
I have a DateTime saved in dtmNextPayment. I want that to showed in the label in mm/dd/yyyy way. I have tried using
lbltakeeffectdate.Text = dtmNextPayment.ToString("mm/dd/yyyy");
But month is always shown as 00. I have no idea why? Please let me know what should be the problem..
And also, please tell me what is the best solution.. Th...
Hello Experts,
I am developing a website in which i am using forms authentication.
We have 2 log in pages.one for user another for admin.
I added this code into webconfig file for user.
<forms loginUrl="Login.aspx" defaultUrl="Home.aspx" >
I am using this code for user side when user successfully logged in.
FormsAuthentication.Red...
in my classic asp website, there is an objCMD variable being set to the value of Server.CreateObject("ADODB.Command"). i think that objCMD should be turned into a SqlCommand .NET object, but i need confirmation first. i'm still not sure what Server.CreateObject("ADODB.Command") is doing.
can someone explain Server.CreateObject() to me?
...
I'm struggling with System.DirectoryServices.Protocols (S.DS.P) in an ASP.NET Helpdesk application to manage users and security groups.
I want to implement connection pooling for my LDAP connections and I can´t really find any good articles or information about successful patterns for solving the problem with too many TIME_WAIT TCP co...
I am working on a Tag system for a news page designed in ASP.NET. For the system I require a TagExists method to check for tags within the database. The stored procedure I have written is below.
ALTER PROCEDURE [dbo].[Tags_TagExists](
@Tag varchar(50))
AS
BEGIN
If (EXISTS(SELECT * FROM dbo.Tags WHERE LOWER(@Tag) = LOWER(Tag)))
...
I have to give textbox control id like below
<asp:TextBox ID="7_1" runat="server">
It is not allowing me. If I give
<asp:TextBox ID="Test7_1" runat="server">
Then it works fine. Why? Why can not give start with numbers?
...
I have a FormView that I user for updating a record. There is a link button that when fires should perforom the updating via BLL and DAL. I am not using built-in ODS and I will not condsider using it.
I have all my grids and formviews populated manuualy by calling methods that fetch the data from the database.
For instance my details v...
I am programatically adding a control to an aspx page and binding a server side event to an index changed event inside the control. (It's a RadListBox from Telerik's ASP.NET controls)
The problem is that on the postback triggered from the control, the event doesn't hit its eventhandler because on the postback the control isn't defined.
...
Hey guys,
So I have an .aspx page loading up and populating drop downs based on a lookup table in the database. What we want is for the user to be able to configure which of these values comes defaulted by specifying that value in a drop down somewhere else in the app.
Now, it's easy to default the "first" value, or something like that...
Hi geeks,
I am trying to create user by registration form which contains dropdown for profession in ASP.NET MVC
Eg. Individual, professional, manager etc.
some fields are common like name & Last Name...
some fields are unique by profession...
how do i program it with ajax.
Thanks
...
I want show two lines in TD
<td bgcolor="White" >
First Name
(on external website)
</td>
And it is showing, next to each other. I want to be like below. 1st line bold and 2nd line will be small letters.
...
Please forgive the newb question. I am very new to .NET so don't assume I've done something basic.
In ASP.NET I have a form that has a Textbox named txtOutput and a button. In the main file.aspx.vb I can call a function from the button handler and in that function I can have
txtOutput.Text = "Some Message"
with no problem. I have ...
Recently I've started using <%= more often in my Web Controls. Typically I'll set String properties in the Code Behind and then spit them out onto the form.
Is this a bad idea?
eg.
Code Behind:
Properties:
public string TheTitle { get; set; }
public string TheBody { get; set; }
public ContentItem TheContent { get; set; }
public st...
I have a user control (form) inside a user control (grid) with a Validator in the form. A snippet from the code is below
<asp:tablerow>
<asp:tablecell HorizontalAlign="center" columnspan="2" >
<asp:ValidationSummary runat="server" id="ValidationSummary1" />
</asp:tablecell>
</asp:tablerow>
<asp:tablerow>
<asp:tablec...
I am encountering a COM Error
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1;
.NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.21022; .NET CLR 3.5.30729; InfoPath.3; .NET4.0C; .NET4.0E)
Timestamp: Fri, 3 Sep 2010 17:55:21 UTC
Message: Sys.WebForms.PageRequestManagerServerErrorException:
R...
What is the best method or best practice for associating state information with an ASP.NET control?
The context is that I'm dynamically generating a user poll. I may have several polls to choose from that the user could answer. I will dynamically generate the label prompt, radio selections, validation, and submit button. Currently I am ...
We've got old ASP.NET Forms pages and new MVC views and partials views in the same solution. Some pages on the site are MVC, and legacy pages are Forms.
One of these legacy Forms pages is an .ascx control. Is there any way for me to insert an MVC partial view (.ascx) into this Forms .ascx control?
...
Hey,
I am a complete ASP .NET newbie. I've written a set of web services using the WCF 4 Rest Starter Kit. I call everything from within a Flash application but I want to write a quick and dirty admin panel for myself to use which has no need to be written in Flash.
I figure it will be faster to get this up and running in ASP. So the q...
Hi all
Just to be forward, my .net and c# expierence is very limited, that one could say I'm a complete noob :) However I do have some grasp on OOP as I usually work in PHP (FWIW).
My problem seems to be with this line:
Session["total"] = dt.Compute("SUM(price)", "").ToString();
which will output a total of say "9.2" where as the pr...