|
I guess the reason google didn't help is that I don't believe .NET has support for macros. macros in C++ are a preprocessor definition, ie a hack, inherited from C.
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 )
|
|
|
|
|
Macros are only one of the extensibility tools provided by Visual Studio .NET, but they are easy to develop quickly, and they have surprising clout. Unlike most other Microsoft products, Visual Studio .NET macros are built out of full .NET code, which means they can use any part of the .NET class library. This allows macros to write XML files, display forms, and even contact remote Web services as part of their work. (For information about other types of Visual Studio .NET extensibility, and help choosing which one suits a particular problem.
Macros[^]
Regards,
Satips.
|
|
|
|
|
I have a datagrid.
In the datagrid,I have a CheckBox Column.When I click the checkBox that i need and click the button,the page gets refreshed and all the data that i checked goes off.
Kindly help me where to give the IsPostBack property.
Thanks in Advance.
Happy Programming!!!
|
|
|
|
|
In the load event, check if the page isPostBack...
|
|
|
|
|
In Page_Load do this:
if (!Page.IsPostBack)<br />
{<br />
}
|
|
|
|
|
I would say most likely you are refreshing you datagrid on pageload. So when you button posts back to the web service the page load event runs and you databind your datagrid with new data. So most likely you need to surround your existing code in your page load with
if Not IsPostBack Then
or
if !IsPostBack
{
So that you only load the datagrid once, not every time the page posts back.
Hope that helps.
Ben
|
|
|
|
|
My problem is solved now.Thanks to all 3 of You...God Bless U...
Happy Programming!!!
|
|
|
|
|
Hi,
I'm following the example below in asp.net 1.1 as a simple means for testing a pair of AD credentials:
http://www.codeproject.com/useritems/NET_LDAP_Authentication.asp
This works fine, but it returns false when used with valid passwords that contain non standard characters such as &. Does anyone have any info on the types of character conversion that AD needs for authentication?
Also, is there a simple way that I can make the application secure so that plain text passwords aren't sent over the network?
Thanks
|
|
|
|
|
For security, use LDAPS (LDAP over SSL) to encrypt the LDAP communication. This requires that the domain controllers are set up with the appropriate certificates to support LDAPS, however.
|
|
|
|
|
Should have 75-80% of everything you could want to know for AD coding in .Net:
http://www.c-sharpcorner.com/UploadFile/ecabral/ADand.NET08242005065451AM/ADand.NET.aspx
In direct answer to your second question:
DirectoryEntry de = new DirectoryEntry();
de.AuthenticationType = AuthenticationTypes.Secure;
-Roo
|
|
|
|
|
I have created a satellite assembly, using the foll. command:
al.exe /t:lib /embed:Resource.ar.resources /culture:ar-SA /out:Resource.ar.resources.dll /keyf:keypair.snk
'Resource.ar.resources' is the resource file which is generated using resgen.exe tool.
'keypair.snk' is the keypair that is generated using sn.exe tool
Here keypair.snk is the keypair tat I generate using sn.exe tool
What is wrong with this..wen I check it in the manifest(using ildasm cmd'…some things missing in it.
When u publish a website then also the satellite assembly is created…this one wrks…and if u compare the one I created with this one then there is 'assembly extern' missing also some other things...
Kindly tell me wot to put in the al.exe command to get the missing part ...
Thanks...
Dee
|
|
|
|
|
How can I change the position of a Textbox via javascript.
Any help regarding this .
Thankx in advance.
|
|
|
|
|
You'd change the style of the textbox in order to move it, by changing it's padding, or floating it, etc.
Basically, you move it using CSS.
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 )
|
|
|
|
|
Thank u very much, Can u give me an example.
|
|
|
|
|
var t=0;
function controlMover(obj)
{
;
obj=(typeof obj=="object")?obj:document.getElementById(obj);
var _top=parseInt(obj.style.top)+1;
var _left=parseInt(obj.style.left)+1;
obj.style.top=_top+"px";
obj.style.left=_left+"px";
if(_left==500)
{
clearTimeout(t);
}
else
{
t= setTimeout("controlMover('"+obj.id+"')",10);
}
}
CHECK THIS OUT
Ravi Kant Srivastava
(System Analyst)
HandsOn Technology & Engineering
Gurgaon
(India)
e-mail:ravikant@hte.co.in
|
|
|
|
|
Thank u very much its realy helpful.
|
|
|
|
|
Hi forum,
I am looking to create a secure login to my application.
I was wondering if anyone could advise me on the best way of dealing with this
I was considering setting up a users table within my mysql database and let the asp pass the parameters to a stored procedure, but i obviously need to ensure that the data is encrpyted.
So i need to build a DAL somehow....
any help appreciated
boyindie
asp virgin
|
|
|
|
|
boyindie wrote: So i need to build a DAL somehow....
A DAL does nothing to prove that data is encrypted, or anything else, really.
Most people worry about super secure logins on pages no-one is every going to try and hack. The main advice I'd give is, write a proc that takes a username and password and returns a bit, do not write a function that returns a password and compare it in memory.
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 )
|
|
|
|
|
HOw would i write that procedure
would it be it take two input parameters and pass these parameters into a select command and if these parameters match the login value will return a 1 or 0, valid or invalid?
|
|
|
|
|
Yep, thats basically how it works
only two letters away from being an asset
|
|
|
|
|
Don't store or pass the password, store a salted hash of the password, then when the user logs in, salt and hash the password then pass that to the database to compare.
A good article on storing passwords[^].
|
|
|
|
|
Cool, will have a look into that looks good never heard of a salted hash in my life, is it difficult to code?
|
|
|
|
|
boyindie wrote: never heard of a salted hash in my life, is it difficult to code?
Then do have a good read of that article )
There's plenty of built in .net functionality for encryption and hashing.
Bear in mind that if you do this you will never be able to retrieve the user's password if they forget it (hashing is one way) - you will have to generate a new password for them.
|
|
|
|
|
Thats not a problem, as can get them to enter registered mail and can get bit of code to generate a random password for them or set it to a default and return it to there mail?
|
|
|
|
|
I am doing an application in which i have some textboxes and 2 dropdown listes
when connecting to database and retrieving values everything works fine...
but when i click the gridview(say a row particularly,) the values in the row should populate to the corresponding textboxes..
all the values comes to textboxes... but the values to be populated to dropdownlist holds only the text of the cell content....
i need the value to be in the dropdownlist as forever till i wish to get that away...
i used the code like this...
DropDownList1.Text = GridView2.SelectedRow.Cells[1].Text.ToString();
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
|
|
|
|