|
|
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
|
|
|
|
|
i'd like to program a wep Application i can record a sound from mic by it ??
how ??
what namespaces i should use ??
what controls ??
|
|
|
|
|
You can't do that with a regular web application. You need to create (or find) a component (like an ActiveX component or Java applet) that runs in the browser and does the recording.
---
single minded; short sighted; long gone;
|
|
|
|
|
Many of your messages are titled 'Help.' Please read the forum guidelines and name your questions more appropriately.
______________________
stuff + cats = awesome
|
|
|
|
|
Hi,
I designed a two-column layout website, looks fine in IE6. But if I try to open the same in Mozilla Firefox, the center column overlaps with Left column...
Meanwhile, I tried to change it to 3-column layout, it worked in IE & FF too.. could anyone please help me why my 2-col layout isn't working in FF? Do I need to do any changes in my code?..
Thanks in advance.
|
|
|
|
|
Do check your table and its column's width should be in only (%) not (px) got it.
Pavan Pareta
|
|
|
|
|
Thanks for the response.. My problem solved.
|
|
|
|
|
Hi All,
I just want to know how to get the total number of records in the database, i.e from the perticular table, total number of records stored in the table.
Please can any one help me.
chandu
|
|
|
|
|
HI,
SELECT COUNT(*) FROM TABLENAME;
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
hi chandu,
To get a total number of records fire this query
select count(*) from tableName
hope it helps
-koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|