|
Sir,
Can u please tell me what is View State of TextBox.
Thanks
|
|
|
|
|
Please explain ur question so that any one can answer
Lets work it Out.........!
|
|
|
|
|
I was asked in the interview that what's the view state of textbox.
|
|
|
|
|
Sounds like you need to work through a book or two before your next interview
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
After postback when the textbox retains its property or state :- this is call viewstate
|
|
|
|
|
|
I just download the Express Editions and found myself loving the new framework. There are somethings that I am still a little foggy about and hopefully someone can help.
1. When you are setting up users/roles.... is there a way to import that kind of information into another DB. The reason I am asking is because I already have a Members tables set up with most of the same data. I would like to take some of the fields from my Members table and some of fields from the default table and combine them. Anyone run into this issue. I know my connetion string in the web.config is set to the DB with my Members tables in it. My biggest reason why I have to do this is because my host company only allows one sql Db per accounts (stupid).
2. WHen you are using the createnewsuerWizard. Is it possible to change it so you don't have to have special characters as a password. I know this is great for security but like I said early I already have a ton of records in my Members tables and don't want to make everyone reregister.
|
|
|
|
|
1. As you know that the built-in providers like Membership ... use their own schemas, and you can install these tables into your current DB. However, the better option is that you can develop your custom provider to target your own table schema. The link[^] can get you started.
2. With the CreateUserWizard control, you can use the PasswordRegularExpression property to set a regular expression for validating the password. In addition, you may also use the
passwordStrengthRegularExpression<br /> attribute when you config the membership settings in the web.config file.
|
|
|
|
|
Hello guys,
I have a particular scenario to display hierarchial information in grid. Consider the following table structure and the sample data.
Table structure
----------------
ObjectId - Primarykey
Parentid
description
Sample data
objectid parentid description
-------- -------- -----------
1 null Parent 1
2 1 child for p1
3 1 child for p1
4 null Parent 2
5 4 child for p4
6 5 child for c5
7 6 child for c6
So, from the above data, objects 1 and 4 have parentid as null. So, they are the base parent objects to be displayed in the grid. Objects 2,3 are child for parent object 1. So object 2 and 3 should be nested within object 2. Similarly object 5 should be nested within parent object 4. Object 6 has the parentid as 5. So it should be nested within the child object 5. Also object 7 should be within object 6. So the nesting can be n levels and all this nesting should be visible inside the grid. The grid row holding the parent object should have a + sign and on click of that + sign, the immediate child objects should be visible, using javascript.
The grid should appear like this
objectid description
+ 1 parent 1
objectid description
2 child for p1
3 child for p1
+ 4 parent 2
+ objectid description
5 child for p4
+ objectid description
6 child for c5
+ objectid description
7 child for c6
Please provide a solution. I am working with asp.net 2005,c# and oracle 10g.
Please help me ... its very urgent...
|
|
|
|
|
You can do it in TreeView control with the same look and with proper js.
You can also do it in datagrid but will have some limitations.
Let me know so accordingly I can give you the code.
"Walking on water and developing Software on a specification is easy, if
both are frozen..."
|
|
|
|
|
Asp.net code using vb for retrieving data from a textbox in form1 to a label in form2
|
|
|
|
|
Try this.This may help u.
Response.redirect("destinationpagename.aspx?data=" & txtbox1.text)
Now on the form load of second page
label1.text=Request.querystring("data")
-- modified at 12:56 Monday 18th September, 2006
|
|
|
|
|
You have to be more specific in your question.
What are form1 and form2? Are they forms? Are they forms in the same page or forms in separate pages?
---
b { font-weight: normal; }
|
|
|
|
|
Hi , i learned some stuffs at membership , but it just alow you to allow or deny users depend on their roles from seeing or not a page i repeat a PAGE , but what i actually want is deny or alow them to do something ,
i will explain , i wantto allow the same page to Users that have "Basic" role & also to Users have the "Admin" one , but the admin can see more things , for example the basic user can ust see wires that the machine he work in cut . ut the admin can see the list of all the wires cut in all the factory .
can you tell me how can i do that ? i mean deny the basic user from seeing all wires & alow the admin to do that stuff
there is a radobutton named "All" here i have the problem i don't want te basic user to see that button or whatever the necessary is denying him from seeing all wires
thank you
try to be good if you can't be the best
|
|
|
|
|
Check IsInRole then enable/disable the control as appropriate
only two letters away from being an asset
|
|
|
|
|
please try this (event name) -= (event); see if this can help you
|
|
|
|
|
Salam ,
everybody know that a website is always viewed by a lot of people . each one can do all what he wants in .
assuming i and you and you and .... we want to update someting in our blog or change something or anything that will need a connection to a database , this mean that we will need thousands of connections to access in the same time isn't it ? but it would be a stupide idea to use tousand of conections cuz even if it is reasonable , the database has a limite of connections isn't it ?
but what i can't understand is how all these people can access in the same time
i have this problem in my application , i don't know how have i to declare my connections to let everybody access the data in the same time ?
i hope you undertood my question , can you tell me how please ?
-- modified at 10:51 Monday 18th September, 2006
try to be good if you can't be the best
|
|
|
|
|
By using the same connection string to open your connection you can take advantage to connection pooling, whereby the framework handles allocating the necessary number of connections. By opening and closing the connection only when necessary, and only as long as necessary, you should be able to avoid must problems. Consider also that it is highly unlikely that all users will be updating data at the same exact second.
only two letters away from being an asset
|
|
|
|
|
You use a separate database connection for each request. That's the only reasonable way to handle multiple users. Any attempt to share connections or keep them alive from one request to another will only result in using more resources.
It's true that there is a limit on the number of simultaneous connections, but that is rarely a problem unless you have written bad code. The database driver for Access has a limit of 64 simultaneous connections, and that is sufficient in most cases. If you have so many users that the number of connections is a problem, you have outgrown an Access database anyway.
Well written code minimizes the time each connection is open, so that the server can handle more requests with fewer connections open at the same time. Open the connection as late as possible, get your data, and close the connection as soon as possible.
---
b { font-weight: normal; }
|
|
|
|
|
thnx goffa, but what do you mean by using a separate connection for each reuest ? how can i do that ? i don't know may be you mean using a connection for UPDATE & 1 for select ... ?
can you clearify your idea please ? thank you
try to be good if you can't be the best
|
|
|
|
|
A request is when the browser ask the server for a specific page, so what I mean is that you should create and open (and of course close) a connection object for each single page (that uses the database) that is created on the server.
---
b { font-weight: normal; }
|
|
|
|
|
I think this kind of design pattern can help you:-
using System;
using System.Collections;
using System.Threading;
// "Singleton"
class LoadBalancer
{
// Fields
private static LoadBalancer balancer;
private ArrayList servers = new ArrayList();
private Random random = new Random();
// Constructors (protected)
protected LoadBalancer()
{
// List of available servers
servers.Add( "ServerI" );
servers.Add( "ServerII" );
servers.Add( "ServerIII" );
servers.Add( "ServerIV" );
servers.Add( "ServerV" );
}
// Methods
public static LoadBalancer GetLoadBalancer()
{
// Support multithreaded applications through
// "Double checked locking" pattern which avoids
// locking every time the method is invoked
if( balancer == null )
{
// Only one thread can obtain a mutex
Mutex mutex = new Mutex();
mutex.WaitOne();
if( balancer == null )
balancer = new LoadBalancer();
mutex.Close();
}
return balancer;
}
// Properties
public string Server
{
get
{
// Simple, but effective random load balancer
int r = random.Next( servers.Count );
return servers[ r ].ToString();
}
}
}
///
/// SingletonApp test
///
///
public class SingletonApp
{
public static void Main( string[] args )
{
LoadBalancer b1 = LoadBalancer.GetLoadBalancer();
LoadBalancer b2 = LoadBalancer.GetLoadBalancer();
LoadBalancer b3 = LoadBalancer.GetLoadBalancer();
LoadBalancer b4 = LoadBalancer.GetLoadBalancer();
// Same instance?
if( (b1 == b2) && (b2 == b3) && (b3 == b4) )
Console.WriteLine( "Same instance" );
// Do the load balancing
Console.WriteLine( b1.Server );
Console.WriteLine( b2.Server );
Console.WriteLine( b3.Server );
Console.WriteLine( b4.Server );
}
}
|
|
|
|
|
Hi,
I have a user control which is placed as a left navigation bar. In that column I simply have a table. This table contains many rows and few columns. Those contain links.
What I hope to achieve is toggling the visibility of each row/column on and off when any of the links in them are clicked. Each link ofcourse loads a separate page. Those pages are tied to the same user control.
Thank you for any help.
EDIT [ P.S. Is the solution to toggle the rows/columns from each webform separately? Are we able to control user controls from Webforms? ]
|
|
|
|
|
hi,
yes we can control user controls from webforms,Use properties in user controls,
and you can set the value of these properties from the web form dynamically..
in Usercontrol...
public bool PROP
{
set{_onoroff = value;}
get{return _onoroff;}
}
you can set this value from the webform like.. <UCL:UserCtrl PROP="True" .../>
Luck is Opportunity with hardwork
|
|
|
|
|
How can I run a ASP.NET 2.0 project from localhost, but not to enter tne VS.NET and presws F5 (ctrl + F5) like I can do in ASP.NET 1.x?
Thanks.
|
|
|
|