|
I hav a login page.where i want to prevent reuse of password using Active Directory.
My Password Location is Active Directory.
I want to store my previous password on AD.When i enter new password it should get accepted but later when i enter my first password it should prevent the password.
I mean to say:It should not allow me to enter previous password.
Please reply me on this ID --->Farid_01801@hotmail.com
Mohammed Farid
-- modified at 2:51 Thursday 21st September, 2006
|
|
|
|
|
HI,
In my application there are four pages (Page1, Page2, Page3 and Page4).
Each page have some basic controls and Web grids and also a "Save" button.
If I click on a "Save" button from any page all four pages data is to be saved to Database.
I am using Asp.net 2.0, C# and Sql Server 2005
Thanks and Regards,
Uma
|
|
|
|
|
Hi,
+You can make use of 'MultiView' control, but it is a single .aspx file.
In this, you can show single (Web Page) .aspx file LIKE a multiple page.
+But you can achieve what you need exactly by storing all the Page Values in Session or something else, before Saving to Database.
Regards,
Jay
|
|
|
|
|
save data from datagrid to excel, please follow the link...
http://www.msakademik.net/makaleler_detay.aspx?id=598
|
|
|
|
|
Hi all
Can any one give me the syntax of Mysql connection string
THx
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
|
i was working on a datagrid. if the cell of the datagrid is blank it is suppossed to return nothing; else the content/text of the cell; and i have used the following code...
<br />
dim i as integer<br />
i=dgrid.items.count<br />
for i = 0 to count-1<br />
Dim strconst As String<br />
If dgrid.Items(i).Cells(4).Text.Trim Is Nothing Then<br />
strconst = ""<br />
Else<br />
strconst = dgrid.Items(i).Cells(4).Text<br />
End If<br />
next<br />
but even if the cell is blank, the if does't works and the variable contains <big>"& n b s p ;". </big> let me know how to fix this. thanks in advance.
sebastian
|
|
|
|
|
dim i as integer
i=dgrid.items.count
for i = 0 to count-1
Dim strconst As String
'Check out the below line.
If dgrid.Items(i).Cells(4).Text.Trim = String.Empty Then
strconst = ""
Else
strconst = dgrid.Items(i).Cells(4).Text
End If
next
|
|
|
|
|
thank you very much for ur kind reply. it will work definitely.
|
|
|
|
|
The Trim method never returns Nothing. If the result after trimming spaces is an empty string, the result is the empty string, not Nothing.
If you have the html code for a non-breaking space in the field, you have to look for that code. The Trim method doesn't recognise html codes.
---
b { font-weight: normal; }
|
|
|
|
|
A textbox never contains Nothing as its value.
Are you working with asp:Textbox or with CMS Editor?
|
|
|
|
|
Perhaps you should reply to the original poster instead?
---
b { font-weight: normal; }
|
|
|
|
|
|
use the sql statement
sample "select * from data where name is not null"
|
|
|
|
|
hi,
I have two usercontrol on same page. 1.ascx and 2.ascx on abc.aspx . Now I need to access dropdown on 1.ascx frm 2.ascx . Plz help me how can i do this?
I have tried Page.findcontrol but as a user control inherits usercontrol class and not page class . its not giving reference to proeprty Page.Findcontrol. I can do page.findcontrol on aspx page but I need to do it on ascx only.
plz helpp
regards,
max
|
|
|
|
|
I'd tend to use delegates to allow events in one control to communicate something to the main page, which can then pass the info on to the other control as appropriate.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
can u plz show with some code or e.g
|
|
|
|
|
Do you not know how to use delegates ? Google has lots of examples...
public class UserControl1
{
public delegate void PassAString(string s);
public PassAString OnPass;
public void SomeEvent(object sender, EventArgs ea)
{
if (PassAString != null) PassAString("this is the value");
}
}
public class Form1
{
protected UserControl1 u1;
protected UserControl2 u2;
private void GetAString(string s)
{
u2.TheString = s;
}
private void OnLoad(//etc
{
u1.OnPass += new UserControl1.PassAString(this.GetAString);
}
}
So, the main form hooks up the event, and when it fires, it takes the value it's passed ( whatever that is ) and sends it to the other control.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
The FindControl method looks for a control in the scope of the current naming container, here is the Page instance, so you need to get reference to the naming container of the dropdownlist, maybe the 1.ascx user control, then you can call the FindControl method. However, like Christian said you'd better use the event/delegate to communicate the user controls, it's much more flexible.
|
|
|
|
|
How to reload a webpage when the reset button is pressed? i cannnot use response.redirect because my webpage have session.
Best regards,
Chee ken
|
|
|
|
|
you can call a javascript method on click of a button and in that method u can use window.reload() or window.refresh()
or u can set window.href = "same page's url"
for e.g
function abc()
{
var sURL = unescape(window.location.pathname);
window.location.href=sURL;
}
|
|
|
|
|
max_dev2006@yahoo.com wrote: window.reload() or window.refresh()
The code to use is window.location.reload(true);
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
Here's the thing: I have a clickable row under "DEPTNAME". What I want to do is when user click on a particular row i.e consultantdept, it will go to the other page and trigger the dropdownlist to select consultantdept and automatically generate a datagrid that display all data in table A that has consultantdept as a deptname. anyone can teach me how to do that?
Your help is greatly appreciated..
|
|
|
|
|
You can provide a client side handler for the onclick event of the clickable row, and in the handler you simply redirect to the next page with the id of the selected consultantdept stored in the query string. In the next page, you can query the selected id to populate the dropdownlist as well as the details datagrid (or gridview) control.
|
|
|
|