|
Thanks Swati for your time.
Yesterday i tried following which worked. after getting the dataset from my original sql script, I tried to check in the returned dataset and manupulated it to have the result I wanted for thorfare names and townlands
here it is..
Dim rowcoll As DataRow() = dsTemp.Tables(0).Select()
If rowcoll.Length > 0 Then
For Each rw As DataRow In rowcoll
If rw.RowState = DataRowState.Unchanged Then
Dim rowcoll1 As DataRow() = dsTemp.Tables(0).Select("UNIQUEID=" + rw(0).ToString() + " and DETAILS <> '" + rw(1) + "'")
If rowcoll1.Length > 0 Then
Dim str1 As String = rw(1)
Dim origStreet, origTown As String
origStreet = rw(1)
origStreet = origStreet.Remove(origStreet.IndexOf("<BR><b>Leased</b><BR>"))
origStreet = origStreet.Substring(origStreet.IndexOf("<BR><b>Street</b><BR>") + "<BR><b>Street</b><BR>".Length())
origTown = rw(1)
origTown = origTown.Remove(origTown.IndexOf("<BR><b>Street</b><BR>"))
origTown = origTown.Substring(origTown.IndexOf("<BR><b>Townland</b><BR>") + "<BR><b>Townland</b><BR>".Length())
For Each rw1 As DataRow In rowcoll1
Dim str As String = rw1(1)
Dim st As String = str
str = str.Remove(str.IndexOf("<BR><b>Leased</b><BR>"))
str = str.Substring(str.IndexOf("<BR><b>Street</b><BR>") + "<BR><b>Street</b><BR>".Length())
If String.IsNullOrEmpty(str) = False Then
If str.Length > 0 Then
If IsNothing(origStreet) = True Or (origStreet.Contains(str) = False) Then
str1 = str1.Insert(str1.IndexOf("<BR><b>Leased</b><BR>"), "<br>" + str)
origStreet = origStreet + "<br>" + str
End If
End If
End If
str = st
str = str.Remove(str.IndexOf("<BR><b>Street</b><BR>"))
str = str.Substring(str.IndexOf("<BR><b>Townland</b><BR>") + "<BR><b>Townland</b><BR>".Length())
If String.IsNullOrEmpty(str) = False Then
If str.Length > 0 Then
If IsNothing(origTown) = True Or (origTown.Contains(str) = False) Then
str1 = str1.Insert(str1.IndexOf("<BR><b>Street</b><BR>"), "<br>" + str)
origTown = origTown + "<br>" + str
End If
End If
End If
dsTemp.Tables(0).Rows.Remove(rw1)
Next
rw(1) = str1
rw.AcceptChanges()
End If
End If
Next
End If
dsTemp.AcceptChanges()
|
|
|
|
|
I have created a virtual directory in IIS for my application. The problem is that it completely disregards the authorization settings in the web.config:
<location path="Admin">
<system.web>
<authorization>
<allow users="domain\Administrator" />
<deny users="*" />
</authorization>
</system.web>
</location>
If i run the application as a web site, it works perfectly.. Any ideas of why this can be? As far as I can see, the settings are the same
betonglasermur.FeedDwarf(pur_is, 17);
ProcessStartupInfo.AintNotCreateNoWindow = (false && !true) != (true || false) ? false == true ? true : false : (true != false && false);
Morgonen är tröttmans mecka
|
|
|
|
|
Check you have only one version of the web.config file and that it is in the root directory
|
|
|
|
|
There is only one, and it is in the root directory
betonglasermur.FeedDwarf(pur_is, 17);
ProcessStartupInfo.AintNotCreateNoWindow = (false && !true) != (true || false) ? false == true ? true : false : (true != false && false);
Morgonen är tröttmans mecka
|
|
|
|
|
anyone over there please help
I was trying sending Email in C#
the code goes this way...
string smtp = "localhost";
System.Net.Mail.SmtpClient smtpClient = new System.Net.Mail.SmtpClient(smtp);
System.Net.Mail.MailMessage objEmail = new System.Net.Mail.MailMessage();
objEmail.To.Add(txtEmail.Text); //to@domain.com
objEmail.From = new System.Net.Mail.MailAddress(txtFrom.Text, "kv"); //from@domain.com
objEmail.Subject = "Test Email For DOT NET";
objEmail.Body = txtMessage.Text; //some body
objEmail.Priority = System.Net.Mail.MailPriority.High;
//SmtpMail.SmtpServer = "localhost";
try
{
smtpClient.Send(objEmail);
Response.Write("Your Email has been sent sucessfully -Thank You");
}
catch (Exception exc)
{
Response.Write("Send failure: " + exc.ToString());
}
----but my doubt is When the code is run I am getting a message
"Your Email has been sent sucessfully -Thank You"
but when checked the mail I don't find the mail sent in inbox. I am using localhost as SMTP server .
May please help me in this .
Also I have configured the SMTP server to 127.0.0.1 (AdminTools->IIS->Default SMTP Virtual Server->properties->access->relay->127.0.0.1). I found the SMTP working in my system.But the mail can't be found in the Inbox of the recepient(it's my own mail)
Thanking in advance
Kovuru Sreedhar
|
|
|
|
|
Have you checked in the spam/bulk ?
|
|
|
|
|
yes I did checked in spam/bulk also.
bye the bye please tell me what does this mean and why
"All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems"
in the beginning means where to write the code ,is it load event?
Kovuru Sreedhar
|
|
|
|
|
kvsreedhar wrote: All C# applications should call Application.Quit();
I dont think he like c#
|
|
|
|
|
literally I don't understand ur words .
if u have ans to Application.Quit()
pl. tell me.
Kovuru Sreedhar
|
|
|
|
|
Its a joke.
Calling Application.Quit() means the app will never run.
|
|
|
|
|
really I laughed on My Ignorance of the subject(App.Quit()).
Any how please help me with email .
Kovuru Sreedhar
|
|
|
|
|
|
kvsreedhar wrote: bye the bye please tell me what does this mean
By the way...
kvsreedhar wrote: All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems
I really do not know what adjective to use for you. In between, that was a joke.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I would be more happy with your answer for Application.quit()
Kovuru Sreedhar
|
|
|
|
|
Looks like I have to put a joke smiley next to my sig
|
|
|
|
|
N a v a n e e t h wrote: Looks like I have to put a joke smiley next to my sig
Well, actually not. You rarely get to see these type of icons
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
you are Too Smart MB
Kovuru Sreedhar
|
|
|
|
|
Try sending the e-mail to a different account, it could be that your current account is blocking the e-mail.
Also try hardcoding your e-mail address in the to box to test
|
|
|
|
|
tried it but the same result . i even hard coded the mail address
Kovuru Sreedhar
|
|
|
|
|
Hi all, i have got two forms, frmmain and frmpopup. frmpopup is a popup of frmmain. I want to reload frmmain when i click a save button on frmPopup. my problem is i want save buton on popup to do something first and then reload frmmain, but right now its the other way.(its starting by reloading frmmain and then process the save_click event on frmpopup.
my java function to reload is function Refresh()
{
if (window.opener && !window.opener.closed)
{
window.opener.location.reload();
self.opener = this;
self.close();
}
}
does anyone know whats wrong.
modified on Wednesday, August 27, 2008 4:52 AM
|
|
|
|
|
After doing the server side functionalities, just register the client script using ClientScriptManager.RegisterStartupScript . This will send the client script to the response and will get executed.
|
|
|
|
|
Thank you for your response, i have registred the client script already.
My problem is i want it to run Save_Onclick event before running OnclientClick Event. in other words i want it to run the event under button(ie Onclick---on frmpopup) and then reload the main page.
i hope i managed to make my self clear.
Thank you
|
|
|
|
|
hi all,
I want to use Indian regionallanguages in my web site. In that I am using unicode Open Type font. But I don't know how to get the ".EOT" file of that font.
Thank U all,
Kiran
|
|
|
|
|
First search for "EOT Font" on the Google produced this[^] result.
It explains whats and how tos...
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I've inherited a web application that's causing me problems... Part of the application needs to import and process a large amount of data and at the moment this process is all managed within code in the webpage. I wasn't particularly happy about doing it this way (the process can run in excess of 12 hours) but as always a lack of time and impending deadlines meant I didn't have the choice to change it.
The process is run from a callback thread in the webpage as
ThreadPool.QueueUserWorkItem(new WaitCallback(ImportDatabase), (object)importParams);
In development and UAT environments everything worked fine but on migrating to a production environment I've been running into a problem where the State disappears every so often and the process hangs and I assume that this is because the application pool is being recycled.
Does anyone have any advice (that isn't 'rewrite' which I'm probably going to have to do anyway) that could help me get around this problem?
It definitely isn't definatley
|
|
|
|