|
Can you post here what you have written in web.config file for form authentication.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
<system.web>
<authentication mode="Forms">
<forms name="frmLogin"
="" loginurl="Login.aspx" defaulturl=".\Secure\Member.aspx">
<authorization>
<deny users="?">
<location path="Secure">
<system.web>
<authorization>
<deny users="?">
I gave added one more file in my Secure folder. named ChangePassword.aspx,
If i click the respective button to redirect ChangePassword page, its redirecting to the Login.aspx.
-- modified at 5:24 Tuesday 18th September, 2007
|
|
|
|
|
if i am ceating the web setup then the code behind file are getting deployed at the client machine as well and on the other hand if i publish the web site , in that case , i am not being able to browse the website
because i am getting te following error.
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
Soniagupta1@yahoo.co.in
|
|
|
|
|
If you are publishing the website then you have to make a virtual directory in inetpub/wwwroot/ folder. You can do it by using Internet Information Services in Control Panel-> Administrative Tools option.
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/5adfcce1-030d-45b8-997c-bdbfa08ea459.mspx?mfr=true
“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”
|
|
|
|
|
That's working . Thanks a lot.
Soniagupta1@yahoo.co.in
|
|
|
|
|
thats gr8....
let me know if you need any help further...
bye
“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”
|
|
|
|
|
|
hi ...<br />
i want to apply max length limit in textBox control in asp.net when set textMode="muliline" .<br />
<br />
i search in internet and get follow description from : http:
HTML input type of text element provides a built-in MaxLength property to set the maximum number of characters that the user can enter. However, the TextArea element does not have such property to limit the number of characters that can be entered. When you have an ASP.NET TextBox control with TextMode="MultiLine" in your web page, it is rendered as an HTML TextArea element and you cannot use MaxLength property to set the maximum number characters.
What you can do is to define a keypress event handler for the TextBox control to check the length of the text inside the text area and cancel the event if the MaxLength is reached.
JavaScript
function ValidateMaxLength(evnt, str, maxLength) {
var evntKeyCode = GetEventKeyCode(evnt);
// Ignore keys such as Delete, Backspace, Shift, Ctrl, Alt, Insert, Delete, Home, End, Page Up, Page Down and arrow keys
var escChars = ",8,17,18,19,33,34,35,36,37,38,39,40,45,46,";
if (escChars.indexOf(',' + evntKeyCode + ',') == -1) {
if (str.length >= maxLength) {
alert("You cannot enter more than " + maxLength + " characters.");
return false;
}
}
return true;
}
ASPX
<asp:textbox id="txtValidateMaxLength" runat="server" textmode="MultiLine">
C#
protected void Page_Load(object sender, EventArgs e)
{
txtValidateMaxLength.Attributes.Add("onkeypress", "return ValidateMaxLength((window.event) ? window.event : arguments[0] , this.value, 5)");
}
<br />
but when i execute it doesn't work . <br />
i think the problem is in first parameter of "ValidateMaxLength" method !!!
can you help me ?
-- modified at 1:46 Tuesday 18th September, 2007
|
|
|
|
|
try this one
<script language="javascript">
function textboxMultilineMaxNumber(txt,maxLen){
try{
if(txt.value.length > (maxLen-1))return false;
}catch(e){
}
}
</script>
runat="server" Height="103px" MaxLength="100" Width="166px" onkeypress='return textboxMultilineMaxNumber(this,100)' TextMode="MultiLine"
Jintal Patel
|
|
|
|
|
Two applications are accessing a same database.First is the vb6 application and another is the asp.net c# website.Now my question is when the website access the database , after completing the request it closes the question , still it renders the database in read only file state.y this is happening?
how can i change the read only ?
Soniagupta1@yahoo.co.in
|
|
|
|
|
I want to change DropDown List width Dynamic or at runtime.
Jintal Patel
|
|
|
|
|
i think the drop-down length should automatically exceeds according to the lenght of the text at run-time
Soniagupta1@yahoo.co.in
|
|
|
|
|
|
ddl.Width=Unit.Pixel(100);
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
Hi ,
I had a project in version 1.1 and I have
migrated it to 2.0 using visual studio .NET 2005 but its throwing the
following script error in IE 6.0 only while selecting any value in drop down.
'event' is null or not an object.
In firefox, it is working fine.
I used DOM Validations for firing client side validations. This error is firing even before the drop down's selected index changed function is called.
Can anyone please help me out to solve this. is there any property or
setting i have to make for 2003 project to work in 2005?
Is it a bug in VS.NET or is there anything settings to be made?
kindly do help me guys.
Vikram
|
|
|
|
|
Hi,
Please go through below URL you will find there all issues about the migration.
http://msdn2.microsoft.com/en-us/library/aa479312.aspx
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Hi,
The URL mentioned did not help me.
is there anything else to do
please help me out
thanks in advance
|
|
|
|
|
Hi all,
I need to make textbox cum combo box where I can search for a key. Like we have in word text formatting ie; Suppose I have to change the font style from Arial to Verdana then I just type V and I get the list all style starting with V.
Same thing I need to implement thro AJAX AutoCompleteExtender and CascadingDropDown or any other way. I am using ASP.NET 2.0 (C#)
Please help me with this, how do I start....
Thanks in advance...
|
|
|
|
|
I hav an ASP application. in that i have a page in that page a hyper link is there, when i click that hyperlink i hav to pass that hyperlink value to database and retrieve some information from databse and display it in the same page .. how can i do that... i am not familiar with ASP.. so pls help mee
(simply say, i just wantd to retrieve some data from DB by using the value of Hyperlink and display it in the same page)
Sarith...
|
|
|
|
|
When you click on Hyperlink then save the value in session,
On page load event get that value from the session, If session is not null then execute the database command for retrive the data and show it on page.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
|
Hi All,
How to create a report builder for end user in web application. The end user can be able to construct query at run time like they can choose table and fields, can give aggregate functions and filter conditions etc. After this, the end user can able to create report using some tool like our RS2000/2005 report builder. When I was checked with report server-report builder, the client system needs to have MS Visual studio IDE. Can any one came around any tool for this?
Thanks in advace.
Kavitha
|
|
|
|
|
Hi there,
i want to validate user input in the text box which take a document number to check in database, the input must be in this format SSD-SGZZ99-A0101 or SSD-SGZZ99-AE0101 [(3alpha)(-)(4alpha 2numeric)(-)(1 or 2alpha 4numeric)] Total 16 or 17 character, now can some one send me a sample to validate this requirement.... i also want to disable the button till this validation is not completed, once the user keyin the right number the button should be enable.
any suggestion will be appreciated.
i need the sample code to use the custom validator control.
Regards
Ybasha
|
|
|
|
|
i need the script to validate some thing like this
function validateDate()
{
var ptext = document.getElementById("TBDocNum");
if(ptext = ("(SSD)|(SSA)(-)(a-zA-Z0-9){4,2}(-)(a-zA-Z0-9){6,2})");
}
but it not correct any help on this???
|
|
|
|
|
or can some one give me a simple to break this string
SSD-SGZZ99-A0101 --> 16 character or
SSD-SGZZ99-AE0101 --> 17 character
to added in ValidationExpression="(SSD)|(SSA)(-)(a-zA-Z0-9){4,2}(-)(a-zA-Z0-9){6,2})" for regular expression validator.
regards
Ybasha
|
|
|
|