|
I have used the CreateUserWizard to create users. Does anyone know how i can let users edit their details such as email....
many thanks
|
|
|
|
|
An ASP.NET web site is supposed to be deployable simply by dropping the aspx and config files on the server, which will invoke the compiler if a page has not yet been compiled etc. Is is possible to define the target Framework, i.e. 2.0 instead of 3.5, without using Visual Studio?
|
|
|
|
|
Brady Kelly wrote: Is is possible to define the target Framework, i.e. 2.0 instead of 3.5, without using Visual Studio?
Definitely possible. All the files that you need to compile an application are text files. You can write everything in Notepad and use the command line compiler if you like.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Thank you, but maybe I should have phrased my question better. I already suspected this, but I wanted to know where to set the target framework in these text files.
|
|
|
|
|
|
Yes, but ASP.NET files are not compiled in VS, they are compiled on the fly, so should there not be a way of telling the compiler used by the ASP.NET pipeline which framework to target?
|
|
|
|
|
Brady Kelly wrote: so should there not be a way of telling the compiler used by the ASP.NET pipeline which framework to target?
I wouldn't think so in the case of IIS since the framework version is an IIS setting you can't expect to set it to something different for compilation. At least it doesn't seem that would work very well.
led mike
|
|
|
|
|
Brady Kelly wrote: but ASP.NET files are not compiled in VS
They can be, as in precompiling.
In the IIS settings you can switch the version of the .NET framework is used for a particular site, provided there are multiple install on the machine of course. I don't know if this effects to on-the-fly compilation though.
only two letters away from being an asset
|
|
|
|
|
I spent the long weekend getting much, much better acquainted with Satan, i.e. data binding and the SqlDataSource. I found some wonderful jewels, like SessionParameter, but also found myself having to use SQL Profiler to, first see if my stored proc was even being called, and second, when it was being called, why it was failing. SqlDataSource raises no exceptions and exposes no error events whatsoever!
Then, my consternation, the ControlParameter. Worked wonderfully for the first page I built, using a hidden field on the form to store a select parameter for a stored procedure. With no change, the ControlParameter refused to work as an insert parameter on any further forms I built, while falling back the ever trusty Parameter and Bind() worked fine, and even the suspect SessionParameter and the even wilder QueryStringParameter all worked fine.
|
|
|
|
|
Brady Kelly wrote: SqlDataSource raises no exceptions and exposes no error events whatsoever!
Another reason I'd never use it What benefit is it offering you ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
No code! Seriously, I found it quite nice for prototyping, when I had only so much time for layout and code, and only focussing on one view, the ascx view, made it quite feasible. The other reasons are that I'm trying to get to know all of ASP.NET better, and that includes these nasties. Rest assured my efforts also include understanding the request pipeline, IIS integration, and even the new MVC stuff.
|
|
|
|
|
Hi All,
I have a custom server control that derives from System.Web.UI.WebControls.TextBox. What id like to do is override the CreateChildControls method and add a hiddenfield control so I can persist some data from client side and have access to it from server side.
The problem is that this control isn't created. I have tried putting EnsureChildControls in both OnLoad and OnInit but it doesn't seem to work either way.
Any help is appreciated.
MoE
|
|
|
|
|
Your approach strikes me as one that should work. When you create the HiddenField , do you also add it to your Controls collection? Have you walked through in the debugger to verify that CreateChildControls is being invoked?
--Jesse "... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi
|
|
|
|
|
Hi Jesse,
I am adding the control to the Controls collection and have verified that the CreateChildControls() is being called and going to my piece of code.
I've created composite controls before where I've used the same method. Do you think its because I'm inheriting from Textbox that I am having problems?
Thanks!
MoE
|
|
|
|
|
It would appear that you're exactly right. When I popped open Reflector and took a look at the Render method for the TextBox , it does not make the standard call to RenderChildren . In order to have the child control render, I had to override the Render method. This worked for me:
public class MyControl : TextBox { protected override void CreateChildControls() { this.Controls.Add(new HiddenField(){ ID = "MyHidden", Value = "TEST TEST TEST" }); base.CreateChildControls(); } protected override void Render(HtmlTextWriter writer) { this.RenderChildren(writer); base.Render(writer); } }
The above will render the Hidden field before the TextBox itself, if that matters to you. You can change the behavior by delegating to the base Render first, then calling RenderChildren .
Hope that helps.
--Jesse "... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi
|
|
|
|
|
Hi Jesse,
It works like a charm!
Thanks so much for your help!
MoE
|
|
|
|
|
My pleasure. I'm glad it worked out for you.
--Jesse "... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi
|
|
|
|
|
Here is my situation: I have a Windows hosting with ASP.NET 2.0 that also features Access database support, and also SQL server but that costs a lot and I cannot afford to pay the price yet. What I want basically to do is to write a web service that stores and retrieves date on the web site, so that people can access it wherever they are. I'm not talking about thousands of transactions per minute. Well actually there might never be more than one user at any give time (but that's not guaranteed).
Is there some way I can use any free SQL server application? Like sqlite or Microsoft SQLCE?
Of course I have absolutely no way I can install additional applications because this is just an average hosting plan at an average hosting company.
Well, if you have any other ideas, I'd be very happy to read about them.
Thank you very much!
|
|
|
|
|
I'd change hosting company, I have one of my sites hosted on a basic plan with SQL server support for €5 per month.
|
|
|
|
|
Is there some reason that you wouldn't use the Access support offered by your provider until your site traffic outgrew it? If you are using a web service as a facade for data access, you should be able to, in theory, change configuration to point to a SQL Server (or other) data source in the future with little to no interruption in service.
Otherwise, you seem to have hit the nail on the head in your post. Because you have limited access to the box, your options are likewise limited. Most database products, SQLCE included, require some sort of installation in order to function. I have no experience with sqlite, but from a quick read of their site, it appears that it also requires some sort of installation.
One option that you may consider is constructing an ADO.NET dataset with your tables, which you can then deserialize, use, and cache, from your webservice. Though, if this were a viable approach for you, my opinion would be that you were still better off using Access.
Hope that helps a bit.
--Jesse "... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi
|
|
|
|
|
I have a problem with inserting data
I want to insert a some data into TABLE1. The insertion code i written in Button_Click event.
For Ex:
<table1>
time NAME
6:15 sam
6:16 jhon
6:18 david
When click on BUTTON its inserting into <TABLE1>.When the time of first Button click Its OK.But when click on button again its adding 2 times, When keep clicking on its continously adding. Like this...
<table1>
time NAME
6:15 sam
6:16 jhon
6:18 david
6:15 sam
6:16 jhon
6:18 david
I want a OUTPUT like when click on BUTTON in 2nd Time it should display same data No repeting data.
when the NEW Recrod came it add Only that.
Please Help me i am very much thanful to you.
s_k_sameer@yahoo.co.in
|
|
|
|
|
|
Since it appears that you're rebuilding the data at each postback, you may wish to consider setting EnableViewState to false on your table. Doing so will prevent the state of the table from being preserved between postbacks, and will also reduce the size of the page that you're rendering.
Hope that helps.
--Jesse "... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi
|
|
|
|
|
|
Hello all,
i'm new to programming,
i want to create a list of class.
i searched in google but i didn't find any thing with this title.
i have a class it's name cartitem,another class it's name shopping and i want to create a list of cartitem object in shopping class.how i can do it with C# language?
please help me,
thank you,
Saba
|
|
|
|