|
Can u please giv me the code related to validations of a control in ASP.Net 2.0
Priya
|
|
|
|
|
hey baby r u new in .net there are already validators in asp.net dont write any query. go to validation controls or data validator n drag n drop it will work of
byeeeeeeee
lucky
|
|
|
|
|
Man, I have a GOOD question for the brilliant minds out here on CodeProject.
I have been tasked with cleaning up a single ASP.NET web application that has been broken out into 5 different and smaller web apps.
One of the projects, a "Class Library" project if you will, has a set of common DLLs that are used by all 4 of the other new smaller web applications. These "Class Libraries" are frequently updated as they contain the business logic for EACH of the 4 smaller web applications and they contain the data logic for the same.
NOW, for the hard part....
1) I need to keep the DLLs in the "Class Library" in sync ( 1 version shared by all web apps)
2) I CANNOT load them into the GAC (changed too frequently and company policy prohibits hit (NOT MY POLICY ))
3) I am attempting to make this easier to maintain these DLLs instead of having to deploy them to all 4 web apps' bin directories when something in changed.
4) I cannot break up the "Class Library" and move the business/data logic to the application that uses it. As much as that would be the RIGHT thing to do, you know how it is with big companies.
Can ANYONE tell me an intelligent way to accomplish this seemingly impossible task? I am pulling out all of the grey hair that this industry has caused me trying to come up with a viable solution to this problem!!
Thanks in advance!
JamminJimE
Microsoft Certified Application Developer
Why are we still calling it Common Sense when it's just not that common?
|
|
|
|
|
I think I'd add a post build task that copies the dll to all four directories after a build.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Unfortunately, I don't have that luxury either. The code is compiled on my local machine. It is then deployed to the DEV server. I have ZERO control over the DEV server and they will NOT grant any permissions other than for me to copy files out there.
I contemplated a small "FileWatcher" service that, once the files changed in the BIN of the "Class Library" folder, to copy them out to the bins. I can't even put a service on the DEV box!
JamminJimE
Microsoft Certified Application Developer
Why are we still calling it Common Sense when it's just not that common?
|
|
|
|
|
OK, but for testing, you can do that, then it becomes an issue of deployment.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hye problem,
dll is use for reusability of code and program u can execute class library many more times in a different way first of all u have to knowledge abt dll,s read the dll deeply then ask the question to anyone
ok don,t waste ur time with such type of question ok
byeeeee
lucky
|
|
|
|
|
Ummm...what?
If you are trying to suggest that I use class libraries vs. using a dll, that is even more confusing. If that's not what you're suggesting, then I have no clue what you are saying.
I have no input as to the architecture of this application. I have a small opportunity to clean up some poorly written code by reorganizing it the best that we can without a complete re-write. I do NOT have the luxury of taking the application apart and putting it back together correctly. That would literally take months to complete such a task and we have a production deadline approaching long before that project would be completed.
JamminJimE
Microsoft Certified Application Developer
Why are we still calling it Common Sense when it's just not that common?
|
|
|
|
|
Hi all,
Could i change the row of GridView that is used for displaying paging like following :
| <Button> | 1 2 3 4 5 6 7 | 20 |
| ID | NAME |
| 01 | Kate |
| 02 | Jessica |
| 03 | Tom |
| 04 | Han |
It means in paging row, could i add a button or something else?
|
|
|
|
|
no data is shown in datagrid view as u saved so it can done with the help of cr report to make a group of columns ok byeeeee
lucky
|
|
|
|
|
I have 2 questions in regards to the best practices for creating an "Admin" section of a content management system:
1) For security purposes, should the "Administration" section be an entirely separate web project that simply connects to the same sql server database, or is it safe enough to simply create an additional admin folder in my current web project?
2) What's the best practice for storing admin logins in the database? Should they be stored in their own table or should I store them with the rest of the logins in the "aspnet_users" table and just set them up with a different membership role?
Does anyone know of a tutorial that perhaps explains the best practices in regards to this?
Thanks.
-Goalie35
|
|
|
|
|
1 - I don't see any issue with making it part of the same project.
2 - I'd expect to have one set of logins, and a system of storing roles against logins, with admin being one role. I'd probably create a base page class that all admin pages derived from, which checked if the user is an admin, and if not, redirected them from the page.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi.
From Database i m getting data in this format.
CAC PAT A 12/03/07
CAC PAT A 12/04/07
CAC PAT A 12/05/07
CMP CAT B 11/03/07
CMP CAT B 11/06/07
CMP CAT B 11/08/07
CPL AMT C 10/01/07
CPL AMT C 10/04/07
CPL AMT C 10/06/07
I want to display like that
CAC PAT A 12/03/07
12/04/07
12/05/07
CMP CAT B 11/03/07
11/06/07
11/08/07
CPL AMT C 10/01/07
10/04/07
10/06/07
How to do ?
Help me
Thanks
|
|
|
|
|
Gridview is probably the wrong control for this. A repeater is your best bet where you want more fine grained control over what is rendered, the downside being that you lose all the stuff built into the gridview.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi
thanks for reply.
but i m doing modification also.
so want that functionality using gridview only.
plz explain it
thanks
|
|
|
|
|
Then you've got issues. You can perhaps trick the grid view by defining columns that include table elements, but it's going to be nasty, you're opting to declare war on the control, to fight what it wants to display, and make it do something different.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I have a login status which directs you to login.aspx when you want to log in.
all login.aspx contains is:
<asp:login id="Login1" runat="server" onauthenticate="Login1_Authenticate">
when i type in the correct username and password it directs back to where i first clicked login.
however login status says i am not logged in.
I guess it is something to do with my roles. When every i create a new user using web administration tool I select a role and this is correctly saved to the database (mysql).
here is my web.config file
<configuration>
<appsettings>
<connectionstrings>
<add name="connString1" connectionstring="server=MYSERVER;database=MYDATABASE;uid=MYUID;pwd=MYPWD"
="" providername="System.Data.Odbc">
<system.web>
<rolemanager defaultprovider="MySqlRoleProvider"
="" enabled="true" cacherolesincookie="true" cookiename=".ASPROLES" cookietimeout="30" cookiepath="/" cookierequiressl="false" cookieslidingexpiration="true" cookieprotection="All">
<providers>
<clear>
<add
name="MySqlRoleProvider"
="" type="Andri.Web.MySqlRoleProvider" connectionstringname="connString1" applicationname="APPNAME" writeexceptionstoeventlog="false">
<membership defaultprovider="MySqlMembershipProvider"
="" userisonlinetimewindow="15">
<providers>
<clear>
<add
name="MySqlMembershipProvider"
="" type="Andri.Web.MySqlMembershipProvider" connectionstringname="connString1" applicationname="APPNAME" enablepasswordretrieval="false" enablepasswordreset="true" requiresquestionandanswer="true" requiresuniqueemail="true" passwordformat="Hashed" writeexceptionstoeventlog="true">
<compilation debug="true">
<assemblies>
<add assembly="MySql.Data, Version=5.0.8.1, Culture=neutral, PublicKeyToken=C5687FC88969C44D">
<authentication mode="Forms">
i've been racking my brain on it for a couple of days now! and havn't gained any ground!
any ideas??
Thanks
|
|
|
|
|
oopps forgot to ignore html tags.
all login.aspx contains is:
<asp:Login ID="Login1" runat="server" OnAuthenticate="Login1_Authenticate">
cheers
|
|
|
|
|
I have the two table ,faculty table and degree table . The faculty table contains firstname,lastname and degree. The degree table contains the degree like BA,BCom,BSC etc.,
The firstname and lastname is bind in corresponding textboxes. All the degree is populated in DropDownlist and the corresponding faculty degree is selected.
For example
First Name : Monisha
LastName : Saravanan
Degree
BA
BCom
BSc
MCA
MBA
Here BSC is selected , when the page is load
Give the solution
|
|
|
|
|
What, particularly is the problem?
|
|
|
|
|
And question is??
I Love SQL
|
|
|
|
|
hey guy
just make a link like
name :- monisha qual:- bsc
then other
just make a link first
it will help u
lucky
|
|
|
|
|
Dear Sandeep..
I am having a timer(using javascript) in that .aspx page.So when i press the back button , the timer runs in a reverse manner instead of running in a normal way..In order to prevent this from happening , i need to disable the Back button of my IE.
Regards,
Balaguru
|
|
|
|
|
Any way
Check this
<script><br />
if(window.history.forward(1) != null)<br />
window.history.forward(1); <br />
</script>
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Dear Sandeep..
I tried it.But still when i press the back button,the timer runs in a reverse manner..Is there any way to disable the back button..i mean nothing should happen when it is clicked i.e the focus should be lost..Is there any way to do it in javascript...?
Regards,
Balaguru
|
|
|
|