|
Hi all,
I need an suggestion, I am trying to send an mail (client will send mail in this format) from Outlook express in an specified format as,
Client Name : client name
Urgent : Yes
Date_planning[dd/mm/yyyy] : 29/08/2006
Analyses : Any text
In my application i am reading that mail and has to split it into four coloums i.e client name,Yes,29/08/2006,Any text.... seperatly, finally i will store it in the database with field names as cliend_id, status,date_plan,analysis.
I am using asp.net to split this and i am using ":" as starting index "&vbcrlf" as ending index such i am reading the in between string. But when i implement it i am facing an problem, it's the whole body content is coming as string and storing in the first coloum itself i.e as "Client Name.................. Any text"
So i cant able to split it, can any one suggest an way to send the mail such that i can seperate easily, else how to spli the recived mail.
plz guide me.............
Thanks in advance
Regards
Exelio
Known is Drop, Unknown is an Ocean
|
|
|
|
|
hi there,
this
string str = "Client Name : client name\nUrgent : Yes\nDate_planning[dd/mm/yyyy] : 29/08/2006\nAnalyses : Any text";
string[] splitter = str.Split(new char[] { '\n', ':' });
foreach (string s in splitter)
{
Response.Write(s + "<br />");
}
gives this output
Client Name
client name
Urgent
Yes
Date_planning[dd/mm/yyyy]
29/08/2006
Analyses
Any text
does this help ?
regs,
g00fy
|
|
|
|
|
hi,
Thanks for your reply, But the str is not an static one, i will get it from the mail body content as
Client Name : Volf
Urgent : Yes
Date Plan [dd/mm/yyyy] : 12/12/2006
Analyse : This is the test mail from vincetn for reading template mail form server
How to set the \n as you said??
Plz suggest me how to over come this problem..........
by
Exelio
|
|
|
|
|
I hav my own sale-purchase site. I want my payment transactions to be done online. I wana use paypal. How can i do that?
Thanks.
|
|
|
|
|
https://www.paypal.com/IntegrationCenter/ic_pdnHome.html
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
hi
just download the SDK of paypal.
and set the certain variable according to ur need.
or see the paypal support for more info.
the main thing is the variable u will use for transaction.
may this info help u.
bye
|
|
|
|
|
Hi
Is there any way to use a java opensource library in .net.
I want to use
http://www.jpos.org[^]ISO 8583 message format opensource library in .net.
Help me with you valuable suggetions.
|
|
|
|
|
|
Hi,
i want to write a javascript function in .aspx file to
make a button enable property false and i want to take the value from a textbox to a javascript function and also i want to put some values in a textbox using javascript function.i tried a lot .but i didn't get the correct code.Please give me a reply
with regards
anu
|
|
|
|
|
|
Hi
just use
document.form1["TextBox"].value to set or get values
Dinesh Sharma
Team Leader (Software Development)
|
|
|
|
|
Hi Dinesh,
That code did not help me.
I am working with asp.net 1.1
Thanks and Regards,
Anu
|
|
|
|
|
Hi,
How do I change the caption of a checkbox control using javascript when even it is checked and unchecked. Check box is asp.net server control
Thanks and Regards,
Uma
|
|
|
|
|
|
Hi Satips,
That article did not help me.
I am working with asp.net 1.1
I have a checkbox which is used to set another set of radio buttons which should be enabled and disabled on checkbox checked and unchecked.
Now using javbascript I want to do this.
Thanks and Regards,
Uma
|
|
|
|
|
try something like this
<p>
<input id="first_rb" name="checkbox" type="checkbox" value="checkbox" onclick="document.getElementById('second_rb').disabled = this.checked;" />
asdfasdf
</p>
<p>
<input id="second_rb" name="radiobutton" type="radio" value="radiobutton" />
sdfsdfsdf
</p>
hope this helps
g00fy
removed="document.getElementById('second_rb').disabled = this.checked;"
should read
_onclick="document.getElementById('second_rb').disabled = this.checked;"
without the _
-- modified at 7:38 Wednesday 6th September, 2006
|
|
|
|
|
HI,
I created a web service having one method
[WebMethod]
public int sum(int a, int b)
{
int total = 0;
SoapContext t = RequestSoapContext.Current;
}For this web service i want to use WSE3.0.Iam getting this error:NOT ALL CODE PATHS RETURN A VALUE.
Please help me.
Thanks in advance.
-- modified at 10:31 Wednesday 6th September, 2006
|
|
|
|
|
It won't return a value since your method (i.e sum) is void.
Thanks & regards,
Suresh Dayma
Everything Is Possible!
|
|
|
|
|
public int sum(int a, int b)
looks like an int return type to me fella
Problem is NOTHING is being returned....at all...as in NO return statement
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
I need to capture the browser close event( when user clicks the 'X' button on top right) to confirm from the user if he wants to save the data on current page. I am able to capture the event by window.obeforeunload = ConfirmOnClose(this is name of function). Now when the user clicks on "Yes" to save the data, i use the method __doPostBack to call the method to save my information. The problem i am faced with now is that a Default Message Box of window also prompts up to ask the user
"Are you sure you want to navigate away from the page.
Press Ok to continue or Cancel to stay on the current page."
This message box is not needed and i want to supress it.
I have tried to do window.opener='', but that also doesnot help.
I am using Asp.net 2.0 environment.
I need it very urgent. All suggestions will be highly appreciated.
i am pasting the code for reference:
function ConfirmOnClose()
{
if(window.event.clientY < 0 && window.event.clientY < -80)
{
if(Page_ClientValidate())
{
var result = confirm("Do you want to save the data in the form?")
if(result)
{
__doPostBack('ibtn');
}
}
}
}
Rohit
-- modified at 1:32 Wednesday 6th September, 2006
|
|
|
|
|
How do I create a multipage control dynamically?
Microsoft.Web.UI.WebControls.TabStrip tabControl = new Microsoft.Web.UI.WebControls.TabStrip();
tabControl.ID = "tabcontrol1";
Microsoft.Web.UI.WebControls.MultiPage multipage1 = new Microsoft.Web.UI.WebControls.MultiPage();
multipage1.ID = "multipage1";
tabControl.TargetID = multipage1.ID ;
Microsoft.Web.UI.WebControls.Tab tab=new Microsoft.Web.UI.WebControls.Tab();
tabControl.Items.Add(tab);
lbl1 = new Label();
pageview1.Controls.Add(lbl1);
multipage1.Controls.Add(pageview1);
There is nothing coming out for this code. But, am able to create the multipage and tabstrip control at design time and get it working.
But, I need them to be generated dynamically to call from another control.
Please help
rmr
|
|
|
|
|
I actually consider myself to be at least an intermediate developer, and am a little embarrassed to admit that I never put much thought into something that has stared me in the face for years. Can anyone tell me what the portion of the url inside the parenthesis is? It's not part of any url that we redirect to within our application. I had thought it was the address of a cached page, generated within IIS, but I've spent hours trying to find out more about it, in hopes of finding a way for it to not be displayed in my address bar.
Our client accidentally emailed the path similar to the one below to many people as a appropriate place to link to. But, it seems that in doing that, people that normally would have less access to the application, gain administrator rights to the application if they are lucky enough to click the link at exactly the same time an administrator clicks the link and authenticates the site. I thought it might be a matter of assuming some of the same session variables as the admin has when visiting a cached page. But, after much failed research, I assumed that maybe I'm just way off base here. Can anyone tell me more about what I'm dealing with here?
http://dth.tradoc.army.mil/(z42edx554nuvvsimzr2iwj3x)/EnterDTH.aspx
V/r,
Chad Baker.
Chad Baker
Fort Monroe, VA
|
|
|
|
|
http://www.codeproject.com/aspnet/ASPNETSession.asp
I'm not a player, I just code a lot!
Alex Dresko
|
|
|
|
|
Very cool, thank you!
Chad Baker
Fort Monroe, VA
|
|
|
|
|
Would guess from the symptoms that is's a session identifier of some sort - which explains the difference in functionality you're seeing
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|