|
Thanks for the links. I haven't had time to look at them yet, but they look exactly like what I need. BTW, I'm using VS2010.
|
|
|
|
|
For the record, I took a look at your first two links and they are for instructions if you're running VS2005, and one of them was for running a beta version of it! The menu system completely changed with VS2008, so maybe your third reference will be easier to follow. But even the first two links describe a brute force way of converting, basically starting over from scratch.
Well, I looked at the VS2008 link and it also is a brute force method. There apparently is no auto-conversion software to do this. I'm going to start over from scratch and completely rebuild my application from the ground up.
|
|
|
|
|
i want to make a CMS for a website of mine : how can i make the html formatting on it ?
and some smiles that formate the text in any web site
|
|
|
|
|
|
Yes TinyMCE is excellent. Otherwise CKeditor is quite good too.
|
|
|
|
|
Hi everyone,
I'm currently working on a web project which supports roles. This is the first time I'm working with roles so I took some help (reading a few books and articles) and it's working fine (locally). I uploaded the project to the remote server today. And, even though I don't have the aspnet_CheckSchemaVersion procedure on my local db, it does on remote server and throws this exception. I really don't know why, I made some googling and found out that I'm not the only one. But I couldn't find a solution.
By the way, in web.config, roleManager is set to enabled="false". I'm really lost here and I would really appreciate if anyone could at least give me a clue about why this happens.
Thanks.
|
|
|
|
|
You'll need to run aspnet_regsql to ensure the stored proc has been installed
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi all!
i have a html table with data.i convert the data into the csv format and save in an string strCSV on client side.Now i want user can download this strCSV value as .csv file on client side.
thanks
|
|
|
|
|
zeeShan anSari wrote: want user can download this strCSV value
The data is already downloaded, its on the client-side!
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
yes all data save in string strCSV
|
|
|
|
|
You obviously missed the point. You can't download it because it is already downloaded. Where do you think client-side code and data is stored?
Must AV software and browsers will not allow you to create a file on the clients system without a specific action and permission. Your best bet would be to create a link that when clicked will download this file from the server. Which, since it has to be spelled out for you, means it is unnecessary to create the data on the client.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi All,
I have a gridview with 26 rows and four columns dynamically build. Each row there have two columns with dropdownlist and a textbox. I need to capture all the rows and column that have data selected when user click submit button to send to sql database. Being newbie to asp.net not sure how to accomplish this. Any help is greatly appreciated.
col1 col2 col3 col4
firstname ddl1 ddl2 textbox
lastname ddl1 ddl2 textbox
dob ddl1 ddl2 textbox
addrs ddl1 ddl2 textbox
Thanks,
DocHoliday
|
|
|
|
|
|
I have (and use) an ASMX web service in my solution.
Obviously, the web service will live somewhere else once it's deployed. How do I make my app work both locally (using the web service in the solution), but at the same time work with the same web service in its deployed location?
EDIT ====================
It looks like I can create the connection programatically, but I'm not sure of the process. I'm still googling and checking back here periodically to see if anyone can provide asome example code.
EDIT ====================
Okay, I did this, and it doesn't choke on it, but I get no response when I try to hit the methods in the remotely deployed service:
private const string ProductionUrl = "http://server1/folder1/MyService/MyService1.asmx";
private const string DevelopmentUrl = "http://server2/folder1/MyService/MyService1.asmx";
private const string LocalHostUrl = "http://localhost:55179/MyService1.asmx";
switch (Application.Current.Host.Source.Host.ToLower())
{
case "server1" : CurrentUrl = ProductionUrl; break;
case "server2" : CurrentUrl = DevelopmentUrl; break;
default : CurrentUrl = LocalHostUrl; break;
}
CurrentUrl = DevelopmentUrl;
service = new ProjNamespace.Service1Reference.Service1SoapClient("Service1Soap", CurrentUrl);
service.GetServiceVersionCompleted += new EventHandler<ProjNamespace.Service1Reference.GetServiceVersionCompletedEventArgs>
(service_GetServiceVersionCompleted);
service.GetServiceVersionAsync();
.45 ACP - because shooting twice is just silly----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
modified on Monday, May 10, 2010 3:12 PM
|
|
|
|
|
|
Abhishek Sur wrote: Does it help u..
Don't text-speak - even a little bit. It's rude.
No, it didn't help. First it was in VB, and secode it was formatted poorly, and third, it seemed to be all about ajax, but since I was gettng a headache for the piss-poor colors on the page, I didn't really stick around long enough to read it thoroughly.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Well, I didnt meant to be rude.
If you add your web service you will find an appsettings key in your config file. The reference files like disco, reference etc may point anywhere, might be your local web service, because they are totally used to update the Class that it creates automatically to fetch SOAP requests and responses.
When you deploy and want to use the Webservice in the server, just open your configuration file and change the link in appsettings.
The key might differ if you use VS 2008, as in VS 2008 and above, everything will be treated as an Endpoint, but you will definitely find one link there too.
I hope this helps you.
Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution. Visit My Website-->www.abhisheksur.com
|
|
|
|
|
If this is WCF client for an asmx webservice the url will be stored in the 'system.serviceModel' configuration section. Despite what MSDN/documentation says the child elements support 'configSource' so you can specify an environment specific external configuration file for each environment.
You shouldn't need to hardcode any url's into your application.
|
|
|
|
|
This isn't a WCF client.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Ok, you can use the same general approach but store the service location in a config file and dynamically assign it at runtime, an example is here (it's in VB but you'll get the gist):
Example[^]
|
|
|
|
|
I am using ASP.Net with C#, framework 3.5.
I am working on a page that uses a "Next" button on a master page to inititate a server side click event to do some processing using a session object, and then a Server.Transfer to the next page. The same Master page "Next" button handles all the pages in the app. At some point I am sure that I will need to inroduce a client side click event to do client side validation on one of the pages. What is the best way to do the client side validation and still utilize the server side click event code I already wrote? Or should I abandon my server side click event code and just do everything on the client side?
|
|
|
|
|
Better if you use ASP.NET validators.Have different validation for different page and have a javascript function,pass it with and the validation group and validate the it using page_clientvalidate('groupname') and return false if it fails then your server side event would not fire else return true.It'll continue to postback.
For more info about asp.net validators have a look to one of my article Exploring ASP.NET Validators
|
|
|
|
|
I agree with Brji...
But there may be another way.
I try to stay away from client side JavaScript. It's too hard to debug and test. But you could always have the "Next" button postback and make a decision to continue (Response.Redirect(whatever.aspx) or to not continue based on the entered information. I do it quite frequently, but I come from a WinForms background where I'm used to having fine control over the actions of the user. I think anytime you rely on JavaScript, you will get burned in the long run with compatibility issues anyway.
Ryan
|
|
|
|
|
hey,
I got a problem related with mail server. i tried to send email from asp.net. my code is
MailMessage message = new MailMessage("sm@hotmail.com", "sm@hotmail.com");
message.Subject = "Project Request";
message.Body = "Project named " + txtProjectTitle.Text + "has arrived";
message.Priority = MailPriority.High;
SmtpClient client = new SmtpClient("localhost");
client.Send(message);
But i doubt in the smptclient part. I gave localhost but it is giving error like
<pre lang="msil">System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:25 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at ProjectRequestTest._Default.btnSubmit_Click(Object sender, EventArgs e) in C:\Documents and Settings\sm\My Documents\Visual Studio 2008\Projects\ProjectRequestTest\ProjectRequestTest\Default.aspx.cs:line 50</pre>
How to solve it ? or what client name do I have to give and how do I know that name ?
Thanks in advance,
suchi
suchitamanandhar@hotmail.com
|
|
|
|
|
Are you running a smtp service on your pc? Probably not.
In most cases you should use the smtp relay host that your ISP has assigned to you. If you are in a corporate environment, ask you mail administrator which servers to use, and what the the restrictions are.
And last, don't put your email address in your post, if you don't want to get spammed to death with male erectile enhancers, cheap diplomas, and Nigerian dictators who need someone to cart their fortune out of the country.
|
|
|
|