|
Brady Kelly wrote: will give you the culture specific name of the current date.
He asked for a given date, not the current date
DateTime dt = DateTime.Parse("03/05/2007");
System.Globalization.DateTimeFormatInfo.CurrentInfo.GetDayName(dt.DayOfWeek)
only two letters away from being an asset
|
|
|
|
|
Yes, but I assumed his requirement was to find the name, not parse a date, and at least gave him credit for being able to apply the example to any date.
|
|
|
|
|
Hey all,
I wanted to get some recommendations for merchant account/gateway/shopping cart solutions for a Canadian based web store.
The store is pretty typical: <100 products, physical merchandise (hats, tshirts, toys, etc.), currently considering both manual and real time transaction processing.
I'd prefer the technology solution to be ASP.NET and C#.
Has anyone implemented a similar solution and would recommend their choice of vendor?
Thx
-- modified at 18:24 Wednesday 6th June, 2007
|
|
|
|
|
Currently I have a piece of code that uses the following method to dump a dataGrid table into an excel file, it basically takes the generated html code (i.e. the table, th, td and tr tags) of a dataGrid and send it to context.response.write, which can then be saved as an Excel readable format. (web format in excel)
Dim tw As New System.IO.StringWriter()
Dim hw As New System.Web.UI.HtmlTextWriter(tw)
dataGrid.RenderControl(hw)
Context.Response.Write(Now)
Context.Response.Write("<center><font size=3 face=Verdana color=#0000FF>" & S2LabelTitle.Text & "</font></center>")
Context.Response.Write(tw.ToString())
Context.Response.Flush()
Context.Response.Close()
Context.Response.End()
however, recently my task is to export a dataGrid with french characters in it. When they are exported to the file and read by excel, the french characters shows up as jubbrish.
Can I have some advice?
|
|
|
|
|
there were some html tags surrounding the stupid " & S2LabelTitle.Text & " .....
|
|
|
|
|
I'm sure i can't be the only person experiencing problems with sending email within a corporate environment but I can't find any reference to my problems anywhere.
I've got an asp.net app running on a machine within our dev department. Because it's not a production server it has a restrictive policy applied to it.
If i log in as me and run CDO code from an exe it's all good I can send email via our company exchange server. If I try to get a service to send the email it won't send. ASP runs in a local machine account which has no exchange access and there is a firewall on the machine that stops port 25 outbound except for outlook and an exe name that i have got IS to permit.
If required i have my own colo server that runs hMailServer and I can set up a new account with username and password etc to send.
Does anyone have a neat solution to this problem? I'm sure i'm not the only person who has run into these issues.
Russell
|
|
|
|
|
I have an app with a socket connection, (tcplistener) than sends data every sec ex "0,34;1,65;2,564;...". I want to connect to it and view the data live over the net.. Will an ASP page work for this application? any ideas on where to get started? THANKS SO MUCH!!!
|
|
|
|
|
ASP isn't great for that kind of application as the browser tends to pull data down from the server rather than the server pushing it out.
I'd be tempted to use winforms and a TCP socket connection. You can then host your client app on a webserver if you need to be able to get at it from anywhere. Alternatively yo might prefer something like java web start although you might find that is something of a dirty word around here.
Russell
|
|
|
|
|
I used to have a javascript snip for this feature but I had lost it some how. Anyway, does anybody have this script to share? I am talking about the similar collapse and expand feature used in the articles in the code project website.
Thanks,
Steve C.
kstv@netzero.net
|
|
|
|
|
|
I need to display some information from a text file. The information being called in is between a lead in and lead out in the log. Here is an example of what the log file looks like.
<++++++++++++++++++++>
<RECEIPT>1234
INFO INFO INFO
INFO INFO INFO
1234</RECEIPT>
<++++++++++++++++++++>
<RECEIPT>4567
INFO INFO INFO
INFO INFO INFO
4567</RECEIPT>
<++++++++++++++++++++>
As an example I want to display just the INFO for receipt 4567 and not the <RECEIPT> lines or the <+++++> lines.
I have been playing with the readfile.asp page and it will read the entire file and display it now I just need to limit that to what is between the receipt lines.
Any help will be appreciated.
|
|
|
|
|
You can use a regular expression (with the RegEx class) to match the tags. Use a pattern like "<receipt>4567([\w\W]*?)" to get the info.
---
single minded; short sighted; long gone;
|
|
|
|
|
Please elaborate...I am unfamiliar with the RegEx class.
|
|
|
|
|
I am trying to upload one asp.net project on some other web server but it is giving me error,Server Error in '/ambertex.in' Application.
--------------------------------------------------------------------------------
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customerrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customerrors> tag should then have its "mode" attribute set to "Off".
<configuration>
<system.web>
<customerrors mode="Off">
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customerrors> configuration tag to point to a custom error page URL.
<configuration>
<system.web>
<customerrors mode="RemoteOnly" defaultredirect="mycustompage.htm">
Pls tell me what is the problem????????
GIRISH B SHUKLA
|
|
|
|
|
Do what it says, and re-upload your new web.config, and see what the error message is.
Fred
|
|
|
|
|
Hi Guyz,
I have a DataTable having 10 rows.
ID, FirstName & LastName are the Columns.
I did filtering using DataView.RowFilter=FirstName
The problem is...., I want to view all the records which comes below the resultant Row after filtering. (If the resultand Row after filtering is 4th in DataView, I want Rows from 4 to 10)
Guyz.., any solutions plz
thanx in advaz
nazeem
Mohamed Nazeem
Software Engineer
Bangalore
|
|
|
|
|
How can i send link as a mail in asp.net.when user clicks in that link i want to allow them to go to that corresponding page?.....
|
|
|
|
|
Hi,
Create and instance of System.Web.Mail.MailMessage class.
Set its BodyFormat = System.Web.Mail.MailFormat.Html.
Put "<a href='locaition'>link</a>" in its body.
and use send method to send it to the destination.
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
hi
i have a page for image upload and text boxes to along the page using the validator to validate the textboxes.
and want to open the my pop window (say successully done - my own page not the ok dialog box). when the image upload successfully.
once the user will click ok we need to redirect the parent page another.
Any help will really appreciate
Regards,
Srinandan
|
|
|
|
|
Hi,
Set window.parent.location.href = "newlocation" before you close the dialog window in javascript..
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
thank for response,
but first problem is that when we click on the button poup window is appear even the textboxes are blank even i am using the required field validator.
once the popup open the then the validator message also appear.
i want validate the textboxes if valid then popup should open
Thanks in advance.
Regards,
Srinandan..
|
|
|
|
|
Hi,
You should do this validation in javascript before opening the popup.
var val1 = document.getElementById("textbox1").value;
var val2 = document.getElementById("textbox2").value;
if(val1 != null && val2 != null)
{
window.Open();
}
Dont copy and paste my code coz it may have spelling mistakes.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
thanks for trouble with me.
but we have need to open the dialog box when the image upload successfully(when server code execeuted successfully)
Please help..
Regards,
Srinandan..
|
|
|
|
|
I have the master page having middle part as content template and on left and right
on master page I am displaying images which are changing on each refreshment.
In IE if I refresh the page it comes to master page pageload event (Postback=false)
and executes the functions (for displaying the images right and left )in condition postback==false
In IE it comes ones on this page(master page) BUT IN MOZZILLA if I refresh the page it comes two times on pageload and execute that functions two times on page load of master page....and changed images that i bind to repeater to display is not diplayed ...
sandeep shirgaonkar
eway software
|
|
|
|
|
I have a Infragisics data grid control in a web page. I want to show its contents alone in a separate page upon clicking a button. Once the new window is shown i want to print the contents of the grid in the deafult printer. How can i do this one.. Anyone please help..
Thanks n Regards,
Umashanker.K
|
|
|
|