|
not sure that Silverlight falls under ASP.NET. Why do you need WPF ? What does it offer you ? Is it worth your clients needing to install it ? Is it worth the work ? A business website, I'd guess no.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi Graus,
Currently our application was running in production environment. Now we need to do some new enhancements to that application. Now we are thinking to do new website using WPF but our client didn't ask for WPF we only planning to do this in WPF. Can you suggest me is it possible to do in WPF, is it suggestable?
If it was not suggestable then what is the advantage of WPFBrowserApplication Template?
If you know answers to my query Please let me know.
Thankyou very much in advance.
Regards,
Avinash.
|
|
|
|
|
avi_dadi2002 wrote: Can you suggest me is it possible to do in WPF, is it suggestable?
It's utterly retarded. You want to rewrite in WPF, but the client didn't ask you to ? Sounds like every Indian outsourcing firm I ever worked with. A nightmare.
avi_dadi2002 wrote: If it was not suggestable then what is the advantage of WPFBrowserApplication Template?
Well, WPF allows for a much richer UI, but you should decide that when you start, not when you want to do an update. And, I don't see how a richer UI is vital to a business app.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
avi_dadi2002 wrote: . Now we are thinking to do new website using WPF but our client didn't ask for WPF we only planning to do this in WPF.
I'd suggest not to do that if your application is purely business centric. AS Christian said, WPF will give a nice UI but all your visitors have to install "Silverlight" browser plugin to see that. That is annoying and most of them won't do it.
Also it is not advisable to do something which was not at all requested. You can explain your client about the possibilities and proceed with his permission.
|
|
|
|
|
Hi friends,
I did one small application in that having one dropdownlist ,
let say EX: c,c#,asp.net
if i select any of them and enter some course details atlast press insert button it will go for database
if i select same course again it will show an error
Thank 'U' advance
madhu
|
|
|
|
|
What part are you stuck on ? Make them unique in the DB with a key, and do a call to see if they exist before storing them to give you clean UI.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
can any one please guide me that i want to run specific javascript function at the end of button execution in code behind.
is there any posibility or not....????
umerumerumer
|
|
|
|
|
mr_muskurahat wrote: run specific javascript function at the end of button execution in code behind.
It seems you are utterly ignorant of what ASP.NET is and does. Do some reading.
When you get back, and you know that javascript does not run in code behind, you can run js on the client by calling it in OnClientClick, which will not call OnClick if the method returns false.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
mr_muskurahat wrote: is there any posibility or not....????
Yes , you can run from code behind
Try to Learn About
Page.RegisterClientScriptBlock
There are lots of sample on Google.
if your are using AJAX on page, then use ScriptManager instated of Page.
cheers,
Abhijit
|
|
|
|
|
I think,You don't have good idea about server side and client side.
but I think you reaquirement is to execute one javascript on the page render after the button click event.You can do it by registering javascript function in the codebehind.
Register the function as
Page.ClientScript.RegisterStartupScript(this.GetType(), this.ClientID, "JSfun();", true);
Here JSfun() is a javascript function which is defined on aspax and will be executed when page will render.
Cheers!!
Brij
|
|
|
|
|
my boss asked me to do that i said twice it is not possible but still he is insisting..
for that i need any post event of button to run that javascript function and pass some parametors which does not make any sense.
umerumerumer
|
|
|
|
|
It's better you tell the flow of an ASP.NET page and make him understtod.and advise him another solution.
Cheers!!
Brij
|
|
|
|
|
After several searches, I have not been able to come up with a viable solution to this problem.
I have an application that I am working on in ASP.NET 1.1. Within the same website, there is an ASP.NET 2.0 application, but they need to access the same session variables for seamless operation.
I need a solution that is two fold, 1) to handle ASP 1.1 and ASP 2.0 session variables, and 2) Allow these session variables to act modularly as we upgrade our application to newer framework, ultimately 3.5.
Thanks in advance for any help!
Michael
|
|
|
|
|
I wrote a service that stored and retrieved session variables to do this.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: I wrote a service that stored and retrieved session variables to do this.
The direction I am heading is to write a web service to handle the session variables. Is that what you are referring to? Or are you referring to a Windows service?
Thanks again in advance!
|
|
|
|
|
|
Even when using this configuration, when the ASP.NET 2.0 Application is accessed, a new Session begins, it doesn't use the same Session.
|
|
|
|
|
Well that's quite obvious. You will of course need to do some work, it isn't just point and click.
only two letters away from being an asset
|
|
|
|
|
I have an ASP.NET web service deployed on //service/webservice and I want my ASP.NET web application (app1) on the //web1 to access the web service with certificate authentication. I keep getting System.Net.WebException: The request failed with HTTP status 403: Forbidden exception. The following is my setup:
On certificate export;
I exported a server certificate issued to //service from LocalMachine store and saved it as service.cer.
I also exported a client certificate issued to //web1 from LocalMachine store and saved it as web1.cer
Setup on //service/webservice:
- On Directory Security, unchecked Anonymous Access and all Authentication Access (Integrated Windows Access, Digest Authentication and Basic Authentication).
- On Secure communications, checked Required secure channel(SSL), Require 128-bit encyption, Require client certificate, and Enable client certificate mapping. I then mapped web1.cer to an AD account MyDomain/user which has access right to //service/webservice
- For //service/webservice/WebService.asmx, set <authentication mode="Windows" /> on web.config
Setup on //web1/app1:
- Set <authentication mode="Windows" /> and <identity impersonate="true" /> on web.config
- In VS2008, I added the web reference to //service/webservice/WebService.asmx and named it WService
- In //web1/app1/default.aspx.cs, I had this:
using System.Net;
using System.Security.Cryptography.X509Certificates;
WService.WebService ws = new WService.WebService();
ServicePointManager.ServerCertificateValidationCallback = delegate(Object sender1, X509Certificate cert, X509Chain chain, System.Net.Security.SslPolicyErrors errors) { return true; };
X509Certificate x509 = X509Certificate.CreateFromCertFile(@"C:\Certificates\web1.cer");
ws.ClientCertificates.Add(x509);
ws.DoSomething();
- I ran WinHttpCertCfg.exe to grant access to both certificates in LocalMachine for ASPNET account
I went to https://service/webservice/WebService.asmx and was prompted to provide a client certificate and after that I was through. But if I went to https://web1/app1/default.aspx (which would call the web service) and I would get the HTTP status 403 exception.
If I change //web1/app1/default.aspx.cs to use login credential (MyDomain/user) and change setting on //service/webservice to these: unchecked Require client certificate, checked Digested Authentication, it works.
What did I miss? I would assume the problem is because //web1/app1/default.aspx.cs failed to transmit the certificate across. If that's the problem, how do I do that? I built both the asmx and aspx on VS 2008 and ASP.NET 3.5. Thanks in advance for any assistance.
|
|
|
|
|
Hi,
I have a guestbook made, using asp.net membership, so when a user posts a new comment, it shows their username etc.
But i would like to know how i could add that onto users profiles.
So for example, as profile comments, or profile guestbook.
I already have all the db, and tables set up.
All i would like to know is how to make it so each users profile has a guestbook section, and if i should make the db columns relative to Membership, or Profiles, if you get what i mean.
Hep would be appreciated
-Thanks
|
|
|
|
|
Hi, im new to code project, and was looking at a few interesting articles, so im sure to find help here =D
Ok so, my simple question is...
How do i go about adding profile avatars to my site?
I currently use asp providers, and would like to have an upload avatar section on my profiles.
So for example, in the edit profile page, i would add a file upload and when they upload an img, it would be saved in either a db, or file and it will be shown on their profile.
Could anyone tell me, or link me to an article that explains this?
Thanks
|
|
|
|
|
Hi
I have certain images stored in sql DB. Now, i wanted to show these images under matrix view on my web page.
EX: I have 15 images which i wanted to display them under matrix (4 X 4)to the user.
Each image in each cell. User, when clicks on this image should then
have this
"image" and
"corresponding text information" displayed in a box on the page.
There is a separate column for image text information available under the same table.
Any pointers on this is highly appreciated.
ThanksQ
Santhosh
|
|
|
|
|
Member 3186379 wrote: Each image in each cell. User, when clicks on this image should then
have this
"image" and
"corresponding text information" displayed in a box on the page.
I didn't get this point.If you just want ot show the images in the 4X4 matrix.Then use the same size table,and put the images in each cell.
Whetheryou want to click event on image itself?
Cheers!!
Brij
|
|
|
|
|
i need to create a dll file contains inherited gridview with one column created,
i have written code like
============================================
public class CustomGridView
Inherits GridView
Protected Overrides Sub CreateChildControls()
Dim gc As System.Web.UI.WebControls.DataControlField
Me.Columns.Add(c)
gc.ShowHeader = False
Me.Columns.Add(gc)
End sub
End Class
============================================
but in design time i can't see the column
how i create the designer for this class.
wth me regards
Aloways go ahead
|
|
|
|
|
Hello All,
I’ve got a question in regards to downloading a file from a secured website (https and it also requires you to be logged into the third party’s system before you can click the link which will then prompt you to download the file).
I’ve looked up a few things online such as System.Net.WebClient.DownloadFile method that takes the URL and the file name…but when I tried to test this using a console app, nothing happens. I was assuming the implementation of the DownloadFile will take care of creating a request and all that. But unfortunately it just sit there and the destination folder that I provided as one of the parameters remains empty. Well I think I understand that the URL I provided for instance which is http://toolbar.google.com/T5/intl/en/install.html does not starts the download right away, so something’s gotta happen that will trigger the download. Do I have to write custom even or something?
See in my case we are trying to automate a manual process that requires someone log in to the site and physically download the file.
Now chances are we would like to download the file to the same server where the .Net code (console app will be deployed).
On the third party’s website where we are downloading the file from, there’s no option to store your credentials so that we can avoid being prompted for login again. So I guess I’m trying to figure out whats the best approach here to encounter this scenario?
Thanks
Tina
|
|
|
|