|
Sure - if you want to read the COM port on your server. You need to buy a basic book on ASP.NET and read it. The canned version: C# code runs on the server, javascript runs on the client. Any C# class that relates to hardware, therefore, will examine the hardware on the server, not the client.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
All, I have a sitemap source and the web.config has Security Trimming Enabled.
"<sitemapnode title="User Administration" roles="Admin"></sitemapnode>"
My question is how would I get to allow 2 different roles on the same node? Say Admin, and AccountAdmin?
Revolutionary: Disk drives go round and round.
|
|
|
|
|
The attribute name roles suggests that the value can contain more than one role. I haven't checked the documentation for this attribute, but I know that the users attribute takes a comma separated list of users, have you tried a comma separated list of roles?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I have not tried that and didn't know. Just really starting.
I will give that a shot first thing in the morning.
Revolutionary: Disk drives go round and round.
|
|
|
|
|
Hello all,
I have a page that has a number of items on it (ImageButtons, to be exact). When an image button is clicked, it posts back and I use the ModalPopupExtender to bring up a modal dialog that can contain a user control that is loaded dynamically, depending on what was clicked. After a button on the modal popup is clicked, I need to save changes into a hidden field on the form. However, after postback, the control is totally gone. How do I need to recover the data that was in the form?
|
|
|
|
|
Your control needs to be created every time, and it won't have viewstate unless it's created before page load. I'd use a hidden control to track data from the control, and what controls exist.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Another option would be to use the viewstate to track data from the control. You just have to manually set the data in the viewstate.
I prefer this method because you can store any serializable object in the viewstate, so it gives you more control over how the data is stored. Plus, you can use viewstate encryption to encrypt the data and prevent users from seeing the contents.
|
|
|
|
|
Dear Sir,
How to set password to my database.mdf in App_Data folder?
Thank You.
|
|
|
|
|
With a database connection and SQL.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
With a database connection and SQL.
What do the SQL you mean?
SQL Server or SQL Language?
Please give examples.
Thank you very mcuh.
|
|
|
|
|
Why are you trying to do this ? Is it for work ? For school ? You're obviously out of your depth.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
How can I disable a page when a user has javascript turned off(or have the same effect), similiar to the AJAX ModalPopupExtender? I have user that use javascript and non-javascript browsers(or have javascript turned-off). Any tips on where to find this on the web would also help.
Thanks,
Playout
|
|
|
|
|
If they don't have javascript on, you need to serve a page with disabled controls on it, you can't change them on the client side without js.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Can anyone give me suggestions on the following
I need to put in place an architecture which has the following prime features
Assume Company X's IT Team A
1) Team A has many .NET projects lined up, Web, Windows, Services, WPF etc..
2) For Web based projects... Team A requires the same look and feel for all projects.
3) Requirement : UI elements such as Master pages, js , css etc should not be copied over to every new project(No duplicate copies in each project)
4) Requirement : There should be a central repository kind of project/files/ etc.. which will serve as UI framework for all projects
5) Requirement : Data Access for all projects should also be driven by the same concept. One project drives data to all other projects
For Data I can think of a Service. I am just not sure of how to get the architecture for the UI as mentioned above,
Can someone recommend me what is the best approach.
Thank You
|
|
|
|
|
Go for a Service/Factory architecture and use a Agile Methodology.
The service should drive the data(eg web app and windows app connect to the service)... Agile methodology to keep everything(code, documentation, team) together, etc.
|
|
|
|
|
I would think any source control would serve for this. We use SourceSafe but ut is a dog, many use SVN here. We have exactly that type of environment. A segregation of duties and a set of procedures and roles within the team works resonably well.
Not really an architecture question, this is setting up a standard development environment. You can then get into the style of development you want to follow, Agile, waterfall etc.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I use the follwing code in ASP.NET 2008
its working well
but not working in 2005
String server = "smtp.gmail.com";
SmtpClient SmtpServer = new SmtpClient();
SmtpServer.Credentials = new System.Net.NetworkCredential(TextBox2.Text, TextBox3.Text);
SmtpServer.Port = 587;
SmtpServer.Host = server;
SmtpServer.EnableSsl = true;
MailMessage mail;
mail = new MailMessage();
mail.From = new MailAddress(TextBox2.Text, TextBox1.Text, System.Text.Encoding.UTF8);
mail.To.Add("skbataan@gmail.com");
mail.Subject = "FeedBack";
mail.Body = TextBox4.Text;
mail.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure;
SmtpServer.Send(mail);
Any Solution
Amit Battan Ror
battan20@gmail.com
|
|
|
|
|
Amit Battan Ror wrote: but not working in 2005
What does "not working" mean? Read the first message in the forum "How to get an answer to your question", pay attention to item #2.
Also here are some handy forum guidelines[^]
led mike
|
|
|
|
|
Amit Battan Ror wrote: but not working in 2005
As led mike said, what do you mean by "not working"? Be more clear and someone may help you out.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Why on earth does your code have Textbox1 and Textbox2 ? How is that readable ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Is there any converter for Coverting ASP to ASP.net???
Thanks in advance
|
|
|
|
|
Yes, pay me £50 p/h and I will do it..
Seriously though, if your converting to a particular technology then you are going to want to make use of the features that make it worth using the particular technology, therefore converting an application between the two is going to require a rewrite.
James
James Simpson
Web Developer
imebgo@hotmail.com
P S - This is what part of the alphabet would look like if Q and R were eliminated Mitch Hedberg
|
|
|
|
|
I totally agree with James' comments above (*), however, if you must.. the follwoing links may help:
On MSDN[^]
On asp.net[^]
(*) apart from doing it for you for £50 p/h - I wouldn't do it for twice that much! Deciphering legacy code is bad enough - when it's classic ASP I back off with long barge-pole!
|
|
|
|
|
I think the entire idea behind the software on those links are evil.. but good find
James
James Simpson
Web Developer
imebgo@hotmail.com
P S - This is what part of the alphabet would look like if Q and R were eliminated Mitch Hedberg
|
|
|
|
|
Phil Uribe wrote: when it's classic ASP I back off with long barge-pole!
How long of a barge pole? Longer the better
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|