|
Hello All,
I am trying to execute Aspnet_regsql.exe by using VS 2005 Command Prompt but ran into a little problem.
The following command is what I wanted to use with a little modification.
aspnet_regsql -E -S localhost -A all
I am trying to replace localhost with machinename\sqlserver instance. The problem I am having is I am uncertain if my machinename and sqlserver instance are supposed to be the same. I went into sql management studio and check registered servers and found that the name of my machine and the name of my sql instance are exactly the same. Is that supposed to be correct or is that wrong. If it is correct and if the name of my machine and the name of sql instance are Server1, can I replace localhost with Server1\Server1? If not what should the command be? Thank you in advance for your help.
|
|
|
|
|
Guys, if I upgrade my local machine do I need to have our servers upgraded?
I didn't get any requirements for the signature
|
|
|
|
|
I installed 3.5 sp1, updated and application, published it to my server and it is still running with no update.
I didn't get any requirements for the signature
|
|
|
|
|
ToddHileHoffer wrote: published it to my server and it is still running with no update.
What it means? Isn't it using the 3.5 assemblies?
|
|
|
|
|
Hi All,
I have an HTML CONTROL <INPUT id="txtName" text="name" ...........
When i go to my code page i cant get this control called Name.
Does it have to be only <asp:textbox ---- to be identified in C sharp ?
Orelse How Can i call HTML controls in a C sharp code page???
Thank you
|
|
|
|
|
add a runat="server" attribute
note that the contents of such a text control will be referenced by .Value and not by .Text
|
|
|
|
|
That's an HTML control. ASP.NET has no idea what you want to do with it. It must be an asp:TextBox control to be visible in C#.
|
|
|
|
|
Thank you.Its Much appreciated.
I am having a javascript thats why i need the control.Can please advice how to use it?
Thank you.
|
|
|
|
|
kibromg wrote: Can please advice how to use it?
Well as you have assigned it an ID of txtName, then you can reference it through JavaScript with document.getElementById("txtName")
Regards,
--Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
Introduction to Object-Oriented JavaScript
|
|
|
|
|
Pete O'Hanlon wrote: It must be an asp:TextBox control to be visible in C#.
Is that so? Being a lowly VB porogrammer I will bow to your experience, but certainly in VB you can reference HTML controls in ASP.NET code-behind by the method I outlined above.... ( You may need to explicitly add a reference to System.Web.UI.HtmlControls.HtmlGenericControl )
modified on Wednesday, September 3, 2008 12:09 PM
|
|
|
|
|
Either method will work. But generally speaking you use asp controls to access on the server. Adding runat=server will give you a generichtmlcontrol in your server code, which still works but it is not as functional.
Just out of curiosity do you prefer VB.Net to C#? I used to be a vb.net guy but I honestly think C# is easier.
I didn't get any requirements for the signature
|
|
|
|
|
ToddHileHoffer wrote: Just out of curiosity do you prefer VB.Net to C#?
Just never had the need to move over - nor, really, the time, being flat out busy enough as it is. And far as I can see, for the sort of work I do, which is SME business applications/websites, there is no performance advantage to be gained, so I cna't see the point in making the effort. I like VB.
|
|
|
|
|
The only advantage is a bigger paycheck. We convinced our boss to let us use C# instead of VB.Net and he agreed. We all went on interviews and got 10K more within a year! There is no real advantage to switching, only that you'll be a better programmer because you'll be fluent in both languages.
I didn't get any requirements for the signature
|
|
|
|
|
Yeah... I work from home, self-employed, and like it like that. If work slows down enough to allow me the luxury of taking more time over a few jobs I might think about codng them in C#, learning along the way - I've found the only way I can learn anything is by doing it "for real"; for the life of me I cannot learn by doing examples out of exercise books!
But also, I'm a bit of anti-social bugger, at least as far as work is concerned; I'm not a "team-player". I want total and sole control (subject to the client's wishes, of course) over any project I work on. Most of these "bigger-paycheck" C# projects aren't one-man jobs.
Actually, having said that, I have been collaborating with my brother on a project - but the work has been clearly demarcated; I'm doing the web-applciation and he's doing an "in-house" desktop application. The two will talk to each other, but are separate entities. And he's my bro - but that's about as far as I'll go in terms of working in a group!
But really, at my level, there's nothing I can't do in VB that could only be done in C#, or could even be better done in it. I don't think I'm lazy - I work enough hours! - but I'm not very good at making work for myself without a real incentive - and pandering to the C#-snobbery that pervades this (and just about all) coder-communities isn't enough of one! On the contrary, being the sort of person who likes to swim agianst the tide, perhaps I get a perverse pleasure out of thumbing my nose at all them hoity-toity aren't-we-oh-so-clever C#-ers! (Nothin' personal, you understand...)
|
|
|
|
|
ToddHileHoffer wrote: Adding runat=server will give you a generichtmlcontrol in your server code
No, in this case it will give you an HtmlInputText control.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I stand corrected.
I didn't get any requirements for the signature
|
|
|
|
|
Pete O'Hanlon wrote: That's an HTML control. ASP.NET has no idea what you want to do with it. It must be an asp:TextBox control to be visible in C#.
Not at all.
All that is needed is the runat="server" attribute in the tag. It becomes a System.Web.UI.HtmlControls.HtmlInputText control when the markup code is parsed.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Well I live and learn. Thanks for that.
|
|
|
|
|
how to update web.config file runtime in ASP.NET
|
|
|
|
|
nalokmishra_14 wrote: how to update web.config file runtime in ASP.NET
It is just an XML file, so the same way as you would modify any other XML file.
However, many IIS servers are set up that the ASP.NET process cannot modify the web.config for security reasons. It is possible that your application could be compromised and an attacker gain access to the web.config file and modify it for their own malicious ends.
|
|
|
|
|
There is a Class WebConfiguarationManager under System.Web.Configuration NameSapce .
Just Try to Learn the Use of that Class , using that class you can Change Web.config Runtime.
This are the same API tha ASP.NET 2.0 Web Administation Tool Used
|
|
|
|
|
Adding to what others said,
Modifying web.config at runtime is not a good idea as it will recycle the asp.net application process which disturbs the people who are online.
|
|
|
|
|
|
Problem,can u run .net app in mobiles or i hav to get j2me, nad how
|
|
|
|
|
Hi,
.Net applications can be run on the mobile devices provided the mobile has Windows Mobile Operating System and a Compact Framework.
J2ME is entirely a different technology and you do not need J2ME to run .Net applications.
I hope this would be helpful.
John Adams
ComponentOne LLC.
www.componentone.com
|
|
|
|