Data Exchange Between Table In Sql?
Aug 5, 2010i have railway waiting list table and confirm table... i wanna query for waiting list passenger status if confirm.. passenger detail move from waiting list table to confirm table...
View 1 Repliesi have railway waiting list table and confirm table... i wanna query for waiting list passenger status if confirm.. passenger detail move from waiting list table to confirm table...
View 1 RepliesI have a dynamic table in my view. The table is used to enter data about items, the number for which is not known. The the user can add any number of rows to the table. The script is plain javascript.
Questions:
1. Right now a normal textbox and dropdown is added to each row using the javascript. How can I add a html helper control instead so that I can get the viewdata values.
2. The model contains a List<T> as a property. So, the dropdown control id is named as an array. Eg: item[0].type, item[1].typeThe problem is this dropdown is populated by data from viewdata. How can I add the data for an array thru viewdata. Remember the number of items is not known
I have defined two endpoints in my App.Config file as
[code]....
I received the following error when i try to launch the host
The HttpGetEnabled property of ServiceMetadataBehavior is set to true and the HttpGetUrl property is a relative address, but there is no http base address. Either supply an http base address or set HttpGetUrl to an absolute address.
How to fix it?
I'm beginner at C#, asp.net and I took a course about databases (fundamentals of Databases) I wouldn't ask such question because:
The thing I am required to do is an e-commerce project (small one) and I am stuck after connecting the database from SQL Server to Visual Studio using server explorer?
How in a simple manner can I send SQL queries and retrieve data and display it?
The problem is I have asked this while they know we didn't take web programming courses and I have to deliver the project next week (e-shopping cart + registration + signing in) !!!!
The end goal is to be able to reference our address book, and give the user the ability to select a Manager, which then in turn would return all the results for all the users under that manager. This information is stored in our Exchange servers address book. ie when you select on a person's name in Outlook, then Organization, you get their manager, so when you select the Manager on this site, I want it to return the results for all of his/her members.
I have a site that has a dropdown list of users who've entered data into a DB. This list is populated with a User's alias when they enter data.This DB of data (including Users' aliases) contains data from users in multiple groups, and I am trying to figure out how I can access our Outlook exchange.
Inside my ASP.NET application, I would like to add an iframe where I can display the emails from our exchange server for the logged in user. The web application uses forms authentication with custom authentication (passwords are hashed and stored in db).
Is there a way to show OWA within my web app without prompting the user for password (OWA uses windows authentication)? Can I use impersonation in some fashion or establish a trust between my IIS server and the server running OWA?
I've created an ascx control for use in Sharepoint that accesses Exchange 2010 via it's web services. When run in it's own ASP.NET test site (wrapped in a simple aspx page) all works fine. As soon as the control is used within Sharepoint a "The Autodiscover service couldn't be located" error is encountered.
The code behind dll for the ascx control has been dropped in to the GAC and also Microsoft.Exchange.WebServices.dll
Microsoft.Exchange.WebServices.dll has also been added to the safe control list in web.config for the sharepoint site:
<SafeControl Assembly="Microsoft.Exchange.WebServices, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="Microsoft.Exchange.WebServices" TypeName="*" Safe="True" />
I can ping the autodiscovery service and access the Exchange web service url https://mydomain.com/EWS/Services.wsdl from the Sharepoint server.
A username and password is being sent to the service in the ascx's code behind:
Dim service As ExchangeService = New ExchangeService()
service.Credentials = New WebCredentials(usrExchange, pwdExchange)
service.ImpersonatedUserId = New ImpersonatedUserId(ConnectingIdType.SmtpAddress, email)
Interestingly, if I specify the url [URL] to the service I get a 405 Method not allowed error.
I am using this code to connect to my exchange server using POP3.I am trying to retrieve an inbox of basically emails that have not been read however, i am just getting a bunch of gibberish and its reading an email. modify my code to just read the most recent messages.
Try
tcpClient.Connect(hostName, 110)
Dim networkStream As NetworkStream = tcpClient.GetStream()[code]...
when i use top instead of retr i get this
+OK X-MimeOLE: Produced By Microsoft Exchange V6.5 Received: by xch0p.com id <01CB58CE.A6A4EA@p.com>; Mon, 20 Sep 2010 09:17:07 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CB58CE.81A6A4EA" Content-class: urn:content-classes:message Subject: What we need to do?? Date: Mon, 20 Sep 2010 09:17:07 -0500 Message-ID:
We have a series of sites that run in on an outside server but currently to send email everything is routing through our local inhouse exchange server. We are looking to move our exchange to a ofsite exchange service, but don't want the emails from our apps to route to it for sending. I have seen some third party add ons that will allow you to send email with the smtp but not route through exchange. Does anyone have any experience with doing this? If so what would you suggest. Just looking for a way that we can send mail with out routing back through our servers.
View 1 RepliesI have a requirement to develop an application that read's email' from a "drop zone" and then populate a database.I can currently read from a default inbox on Exchange, and for now this is fine.But the long term goal is to have all email's sent to a drop zone to read from.Is it possible to have email's sent to a dropzone, getting rid of the need for Exchange?How can I choose a different inbox to read from on Exchange?
View 1 RepliesI have a service account SvcAcc to manage contacts (add/update/delete contacts) for all the exchange users. I Impersonate using the below cmdlet to manage contacts but it also allows SvcAcc to perform other functions (such as send email etc) on behalf of the user.
cmdlet
New-ManagementRoleAssignment -Name:impersonationAssignmentName -Role:ApplicationImpersonation -User:serviceAccount
//impersonation code
service.Credentials = new NetworkCredential(ServiceAccountUserName, ServiceAccountPassword, domain);
service.ImpersonatedUserId = new ImpersonatedUserId(ConnectingIdType.SmtpAddress, userEmail);
I have a situation where we are splitting dynamic content from static content and each is getting its own web server. The people maintaining the site want to be able to make navigation changes once and have it show on both servers without any major extra work (for them). I'm putting the navigation structure in an XML file which also has information on things specific to each content page. This brings me to the question of how to share that file. If I want the change to be instantaneous I can't rely on a scheduled task to copy the file from one server to another.Access to one of the servers is very limited due to security policy.
I am thinking about maybe a web service running on one server to get the data from it to pages on the other server. Does this sound viable or do any of you have other ideas that may work better? I considered having the navigation in a database but this introduces the need for a tool for the navigation updaters to have for them to do that. It is easy for them to update XML and just publish to the server with a lower security level. To get them database access requires terrible paperwork and meeting with security people.
I have been given a task to write a program to automatically create a 2010 exchange mailbox. My research tells me to use powershell but I can't seem to find the namespace to reference and would like some sample code. I found some code on the web but I don't know what the namespace is for PowerShell. I think it might be System.Management.Automation but when I try to reference the namespace it does not exist in the list of dotnet. All I have is System.Management and System.Management.Instrumentation.
View 2 RepliesI have the following code to store session variable in one webmethod and retrieve it in other webmethod but the value displays null when i try to retrieve it.
[WebMethod(EnableSession = true)]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public bool SubmitList1(string businessname )
{
Session["Company_Name"] = businessname;
SqlConnection con = new SqlConnection();
.......
.........
.........
}
This will be my second webmethod where i am trying to retrieve the session variable
[WebMethod(EnableSession = true)]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public bool addresslisting()
{
string companyname = (string)Session["Company_Name"];// this particular value is displaying null
......
........
}
i am building an intranet for the company and i when a ticket is raised i want to select a person and send them that ticket. I have the gridview in place and the users email address. All i need is some simplle send mail code in c# to get it going. I am not sure on what i have to do weather i have to authenticate it and if the fact that exchange is on a sbs 2008 server called server01 and the intranet is on server02 they are both on the same domain.
View 18 RepliesI do not want to set up a smtp server for mail sending.
I want to use existing exchange server.
How can i send an e-mail over exchange server?
Is there sample c# code?
I want to extract emails that are currently being sent to an exchange Server. I want to extract the emails and then take some actions based on their content.
View 7 RepliesI am trying to use System.Net.Mail SMTPClient to send emails. I have the sample code from MSDN:
[Code]....
What is the host name? I want to send emails using Exchange Online which I think the host is "red001.mail.microsoftonline.com"?
I want to read emails from exchange server 2007 using C# in my webform.
View 1 RepliesI am trying to send an email using an exchange smtp authentication. I have set the username, password, and domain and converted them to base 64 but I get an error message:-
Mailbox unavailable. The server response was: 5.7.1 Unable to relay
I have been trying to get this to work for months now and just can't seem to find the answer.
I have a few friends that I swap videos with and I am to design a meeting request form. The form should allow me to enter the contact details, the details of these friends I am swapping with and a suggested date and time to meet for the exchange. How do I go about this code.
View 5 RepliesI am building an stock exchange sort of application. I would like to know Is it possible to create graphs using crystal reports or is there any other technology in .NET for building a graph which we usually see in stock exchange application.
View 1 Replieshow to Read mails for a mailbox in Exchange server 2003 enviorment. For Eg, if a user send an email to a mailbox, the values in the subject line and the body of the message should be updated to a database (SQL 2005). I am using .NET framework 2 and C# laungage.
View 3 RepliesI have mailboxes in the exchange server and i need to copy the mailboxes data from the exchange server and place it to the other exchange server using c#.Is it possible to access the exchange server using c#.
View 1 Replies.NET 4.0 - C# Application needs to pull messages out of Exchange Server 2007. We are using EWS Managed API 1.0. Also the app needs to push messages to the Exchange Server 2007.
View 1 Replies