|
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.
How can I Debug com DLL here ???
Please Help?
/A
|
|
|
|
|
In your application is there already the DLL is referenced pls check it out.
If the Dll is already referenced delete that one and try to reference the New Dll it will work fine.
Regards,
Satips.
|
|
|
|
|
I tried this but it doesn't work..
|
|
|
|
|
I have to validate my web page using java script. I have one dropdown list also . I need a javascript to validate weather any item in dropdownlist is selected or not. e.g ddlDrop is my dropdownlist.
To validate other controls I am using following
function validate()
{
if (document.getElementById("<%=txtUserName.ClientID%>").value=="")
{
alert("Please Pprovide UserName");
document.getElementById("<%=txtUserName.ClientID%>").focus();
return false;
}
if (document.getElementById("<%=txtPassword.ClientID%>").value=="")
{
alert("Please provide Password");
document.getElementById("<%=txtPassword.ClientID%>").focus();
return false;
}
seema
|
|
|
|
|
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
-----
|
|
|
|
|
Hi seema, I hope the following code will work for you, if you have any queries please reply.
Assumptions: ListBox name is ListBox1
function ValidateListBox()
{
var varListBox = document.all('ListBox1');
var flag = false;
for(i = 0;i<varlistbox.length;i++)
{
="" if(varlistbox.options[i].selected="=" true)
="" alert("selected="" listbox="" item="" is="" '"="" +="" varlistbox.options[i].text+"'");
="" flag="true;
" }
="" }=""
="" if(flag="=" false)
="" alert("please="" select="" a="" item");
="" return="" false;
}=""
<div="" class="ForumSig">Thanks & Regards,
Partha.G
9989135551
|
|
|
|
|
Try This-:
function Check()
{
if(document.getElementById("<%=ddlDrop.clientID%>").value=="(Select One)")
{
alert('Please select a ddlDrop');
document.getElementById("<%=ddlDrop.clientID%>").focus();
return false;
}
}
Then call this Javascript on Page Load
btn.Attributes.Add("onclick", "return Check();")
If you have any Queries Please ask
Kartik Rathi
|
|
|
|
|
hi
i drog and drop a formView to my webPage and set datesource, but edit,delete,new buttons does not exist in it, how to solve my problem ?
|
|
|
|
|
While configuring your datasource, select Advance button option, and check those check boxes displayed in teh Advance dialog box.
cheers
|
|
|
|
|
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.
yasso
|
|
|
|
|
you have to check the date before displaying on the page, you can do it in sql statement or on rowdatabound, in sql, you can do,
case when datefield='1/1/1900' then '' else convert(varchar, datefield, 101) end as datefield
in rowdatabound
if(row.Cells[datefieldindex].Text=='1/1/1900')
row.Cells[datefieldindex].Text = string.Empty;
-----
|
|
|
|
|
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
yasso
|
|
|
|
|
well the following code should be used in your SQL STATEMENT or stored procedure whateevr you are using
case when datefield='1/1/1900' then '' else convert(varchar, datefield, 101) end as datefield
or use OnRowDataBound="gv_RowDataBound" in html where you insert the gridview control and int he code behind create a sub
protected virtual void gv_RowDataBound(object source, gridviewroweventargs e)
and use this in this sub
if(row.Cells[datefieldindex].Text=='1/1/1900')
row.Cells[datefieldindex].Text = string.Empty;
look at this [^] for gridview
-----
|
|
|
|
|
Hi,
insted of using text box for date user date picker control
http://www.basicdatepicker.com/
thanks
|
|
|
|
|
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
yasso
|
|
|
|
|
How can I come to know that in each post back button is clicked or not.
seema
|
|
|
|
|
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.
Ben
|
|
|
|
|
|
Hi..
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)?
I am too late but i will never give up
|
|
|
|
|
If you set the autopostback to true on the textbox it will postback when the text changes. I don't think you really want to do this, since it takes time for the web page to reload for each key press. You probably want to use some javascript for you text change event.
Ben
|
|
|
|
|
Hi..
It was working without autopostback.and the event was only fired when the user press Enter not any other key press.
I am too late but i will never give up
|
|
|
|
|
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.
Ben
|
|
|
|
|
Sorry but I don't think so because the textbox have the access(which change using TAB).
May you explain to me what do you mean by:
'since that what it does on the web.'
Please explain to me your idea because this is the only problem remain to me to upload updates to my old website.
I am too late but i will never give up
|
|
|
|
|
|
You can make textchange event for text box
by using java script.
If u need i'll explain it..
Sherin Iranimose
|
|
|
|