I am new to .net and having some difficulties in debugging unmanaged Native DLL in .net..
I am using a Native COM DLL in ASP.Net web application. The problem is I am unable to degul my DLL in .NET. When I add a reference to DLL a interop DLL is created and when I try to load Symbol information manually I am unable to do so.
To validate other controls I am using following
alert("Please Pprovide UserName");
alert("Please provide Password");
you should not use <%=field.client%> insteadyou should use the field name that you have in html page (page.aspx) . you can validate the dropdownlists in two ways:
1. using .value == '' (same way you are validatiing the other fields)
2. using selectedIndex == 0 (provided the first value is dummy e.g. Select One)
and you can access the form field names in two ways:
1. using document.getElementById('fieldname')
2. using form name document.formname.fieldname
alert('Please select a ddlDrop');
btn.Attributes.Add("onclick", "return Check();")
I am using a textbox to insert time into a databse table "SQL Server", The column data type in the table is datetime. When i insert it an run the page i see the date 1/1/1900 in the GridView but i don't want it to appear. What should i do to solve this problem.
Thanx in advance for ur help.
Thx for ur help but i didn't know how to solve it , i am a new developer and i have a little experience. Lets say i want to use the rowdatabound, but what is that a property of the Gridview??
I am using a GridView to display the data and one of its columns displayes the time "with the date that i don't want it to appear". where should i put the code that u sent????
Thanx for ur help
Thanx Naif i downloaded it and i am using it on the pages but i am using the insert query in the sqldatasource to write to database, all the other controls in the page appear in the controlID: except the timepicker, how can i use it to write data to database??
Thanx for ur help
In your form load event you can check the IsPostBack variable. It is set to true when the page posts back to the web server. Each individual button probably should have it's own onClick event in your code behind.
I have a textbox that was firing Text_changed event when the user press Enter.but now it is not firing any more.But the handler for this event is executed when a postback occur(for example when I click a button).
The only change I made it was putting the asp:textbox in a <DIV> instead of a <table><tr><td>.
I observed when I press enter in the textbox I hear a sound(one of the windows usual sounds).
Could any one tell me how to solve this problem and make it working as before(when the user press Enter)?
If it used to work it was by error. The enter key was probably causing a button to get pressed, since that what it does on the web. I would guess a one point that button didn't have any code in your code behind so you didn't notice it. What you are trying to do doesn't work.