I have a web form where a user enters some fields via textboxes and dropdownlists. Let's assume one of the textboxes is asking for NAME and there is a dropdownlist named IssuedTo where there are 2 options only: same person from the NAME textbox or some other generic place like MyCompany.
If I...
I would like to avoid extracting certain types of files from my report that end in .cab, .dll, .pl, and so on. I have the following:
[COLOR=red]
REGEX[*\.(cab|bin|pl|dll)$]
[/red]
Will this do the job or am I missing something.
Thank you in advance.
I recently downloaded ActivePerl and the latest AWStats and I must say it is amazing!
I have setup AWStats on my localhost PC and everything works beautifully! I then attempted to install it on a production server which has the Log Files in C:/ and Perl and AWStats installed on the F:/. When I...
I have SQL Server 2000 and ASP.NET applications running. It was brought to my attention that some of my applications hitting one of my databases was Timing Out. After a little bit of troubleshooting, I found out it was due to some Locks that existed on my database. I have since then 'Killed...
I have a bound dropdownlist in which I would like the 'ALL' displayed on page_load. Right now, I have the code setup as a blank and it works like bringing ALL combinations. To make it easier to read for users of my application, I would like to use ALL without coding this functionality in my SQL...
I have a huge [COLOR=red]SELECT[/red] statement where many tables are being referenced. Without going into details, my [COLOR=red]SELECT[/red] statement utilizes [COLOR=red]TOP 100[/red] for efficiency.
What I have noticed is, probably due to my usage of many types of joins (FULL, INNER...
I recently acquired DWMX 2004 and was taken back by how neat those page designs (css) templates are designed. Can anyone direct me to a good source (preferably book or web) that can help me code these sites.
I would very much like to use the 'Halo Left Nav' design, but I don't know how...
I have a web form that allows emailing of a predefined HTML body. I have tried different formatting and deleting of certain text, but when the Email is received, there is always a '!' (exclamation mark) or two within the text.
How do I get around this annoying feature! What am I doing wrong...
I have a web form with a dropdown list bounded to a data source. This page is a search page that displays the results in a datagrid. I would like the dropdown list defaulted to one of the values of the database, but also in the list, I would like the value of 'ALL' to be in there. I seem to have...
I am trying to change the following code from VB.NET to C# but can't seem to get the right syntax:
[COLOR=blue]
Protected Function GetIndex() As String
ItemIndex += 1
Return (dgrid.CurrentPageIndex * dgrid.PageSize) + ItemIndex
End Function
[/blue]
Your help will be greatly appreciated it.
Hello:
I have a web email application that sends out emails located in SQL Server 2k. I have a reader as follows in my code:
[COLOR=blue]
conn.Open();
dr = comm.ExecuteReader(CommandBehavior.CloseConnection);
while(dr.Read())
{
mailer.To = dr[0].ToString();
SmtpMail.SmtpServer =...
I have a Web Form that searches and displays records via a datagrid. On Page_Load I have two buttons: Search and Reset. Upon returning the results, I would like another button to be displayed, i.e. Export. I created a SUB btnExport_OnClick, but I am having trouble calling AFTER it searches...
I wanted to know what is the syntax in inserting servervariables into a table. I tried something like setting the default value = Request.ServerVariales("AUTH_USER"), very similar to Now() for Dates, but that didn't work. I know how to do this in C# ASP.NET pages, and I thought it...
I have a web form in which I would like to create that hover effect of in/out. Currently I have the following (simple button):
[COLOR=red]
<asp:button id="btnSearch"
onclick="btnSearch_Click"
runat="server"
Text="Search"></asp:button>...
On Page_Load, I would like my web form to populate 1 textbox with a predefined date of today's date minus 14 days, i.e. 2 weeks ago.
I have the following so far:
[COLOR=blue]
Sub Page_Load(Src As Object, E As EventArgs)
If Not Page.IsPostBack Then
...
Dim dtmDate As DateTime =...
I wanted to know what is good practice in implementing zip codes in a .aspx web form and SQL Server 2k. For example, most zip codes that will be entered have 5 digits, but there are also those cases that have that 4 digit extension at the end. Should I create 2 fields in the database, such as...
I have a btnSearch_Click event in which it searches a DB with all the data that is between the entered date and today's date. Here is my logic:
[COLOR=blue]
Dim TodayDT As DateTime
TodayDT = DateTime.Now
...
"AND Convert(char(10),dbo.Table1.ThisDate,101) BETWEEN '" & txtThisDate.Text...
I have a search form in which one can search per many fields (textboxes). I have noticed that if I include a field that has a bunch of NULLs in its values of the table, then the query fails, i.e. doesn't return those values.
The where clause of my SQL statement is as follows:
[COLOR=blue]...
I've seen some applications that open up MS Outlook with the Subject and From fields already filled. How can I open MS Outlook via a button on an .aspx page?
Thank you for your assistance.
I have a web form in which on Page_Load 4 DropDownLists are populated with data from a database. on ButtonClick, a datagrid is displayed with results from the search page. The web form also has other text boxes to search by aside form the dropdown lists as well.
When the first display of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.