|
Hi
I’m converting a project from visual studio 2003 to visual studio 2005. The problem is:
In the 2003 project I got a folder (called businessLayer) containing all the .cs business classes and one of these classes is referencing a user control in another folder after converting the businessLayer folder became under app_code folder so it can’t see the folder containing the user control so I put the cs files in a folder (also called businessLayer) out of the app_code folder but the all the controls can’t access the new folder out of app_code while they can see another folder containing another user controls.
So what can I do to overcome this problem, any idea
shaimmaa
|
|
|
|
|
Why is your business layer using a UserControl? You would be better to look at changing that, ideally the business logic doesn't need to have access to anything on the view.
|
|
|
|
|
Hi
Am having a web page with many textboxes and 3 buttons(button1,button2,button3).
Since there are many textboxes,the user can enter value in them with no tab order,according to his convenience.
My requirement is that -- Wherever the cursor is focussing(any of the textboxes),when the user clicks 'Enter' key,it should activate the Button1's Click event.
Can anyone help me how to do this?
Thanks!
|
|
|
|
|
|
Thanks Deepak
I tried like this...
<br />
function buttonClick()<br />
{<br />
if ((window.event.which == 13) || (window.event.keyCode == 13)) <br />
{<br />
document.getElementById('btnDisplay').click();<br />
return true;<br />
} <br />
else <br />
return false;<br />
}<br />
And in Code behind, i tried as
<br />
HtmlForm form1 = (HtmlForm)Page.FindControl("Form1");<br />
form1.Attributes.Add("onkeydown","javascript:buttonClick()");<br />
Is this correct ?
In which event actually i need to call the Javascript?
Please help me!
|
|
|
|
|
the logic is right but thw way u implemented is not right.....
do one thing
function buttonClick()<br />
{<br />
if ((window.event.which == 13) || (window.event.keyCode == 13)) <br />
{<br />
alert("Got U!!")<br />
return true;<br />
} <br />
else <br />
return false;<br />
}<br />
function OnPageLoad()<br />
{ <br />
document.getElementById("Button").onkeydown=buttonClick;<br />
document.forms["FORM_NAME"].onkeydown=buttonClick;<br />
}<br />
<br />
<body onload="OnPageLoad()">
|
|
|
|
|
Thanks friend!
But there's no attribute 'removed' in <body..> tag.
is it enough that i just include that attribute?
Can you please help me?
|
|
|
|
|
I have created application that have gridview for view the details in the page load it self,I’ve puted the command field for edit,update,cancel the data,my codings are as follows for each an even of command field.(RowEditing,RowUpdating)
protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{
GridView1.EditIndex = (int)e.NewEditIndex;
BindGrid();
}
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
String updateCmd = "UPDATE College_Sa SET cName = @Name, cState = @State where cCode = @ID";
SqlCommand myCommand = new SqlCommand(updateCmd, mycon);
myCommand.Parameters.Add(new SqlParameter("@ID", SqlDbType.Char, 11));
myCommand.Parameters.Add(new SqlParameter("@Name", SqlDbType.Char, 25));
myCommand.Parameters.Add(new SqlParameter("@State", SqlDbType.Char, 25));
myCommand.Parameters["@Name"].Value = GridView1.Rows[int.Parse(e.RowIndex.ToString())].Cells[3].Text.ToString(); ;
myCommand.Parameters["@State"].Value = GridView1.Rows[int.Parse(e.RowIndex.ToString())].Cells[4].Text.ToString();
myCommand.Connection.Open();
try
{
myCommand.ExecuteNonQuery();
GridView1.EditIndex = -1;
}
catch (SqlException exc)
{
Label2.Text = "Error while entering data into database " + exc;
Label2.Visible = true;
}
myCommand.Connection.Close();
BindGrid();
}
In the BindGrid(),my problem is when I click update button Value of Name and State fields are not taking my new values.pls help me to solve this problem.
Thank You
|
|
|
|
|
Was it overriden by PostBack Databinding? You can check for IsPostback right?
|
|
|
|
|
Should i check IsPostBack in RowUpdaingEvent?is it necesarry?
|
|
|
|
|
I am developing mail server like yahoomail, rediffmail.. if i send mail from my domain to other domain id means how to check the mail id is vaild or not.. ex: from-- a@mail.com.... To=-- hai@yahoo.co.in... in that time how to i check the mail id hai@yahoo.co.in is present in yahoomail ...
Thank you..
Eswaramoorthi
|
|
|
|
|
You can check by sending a validation email to which the user has to click and confirm. Then you can change the state to 'Active'.
There are some email validation components like ones from Hexillion however not all email servers support the commands used by it.
|
|
|
|
|
u can validate the email by regular expession validation
|
|
|
|
|
|
ok sir.. but i want to check the id is in that mailserver database..
|
|
|
|
|
You can't do that. If you could, we'd all get a lot more spam
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
True. That is why VRFY and EXPN commands are disabled by most of the SMTP implementations now.
|
|
|
|
|
hai friends..
i develp the mail server project in ASP.Net. I want to manage the user sessions.. like when he log in.. and log out.. it is not a prpblem.. If a user logout means in the broser back link want to disable.. how to i do..
thank you...
Eswaramoorthi.G
final MCA...
chennai
|
|
|
|
|
You can pages not to be cached or expiring.
|
|
|
|
|
sir if i work and logout my mail.. and go.. if any one use back button means the pages which i seen are not visible to them...
thank you..
|
|
|
|
|
You might not be able to control the visibility of the pages since it is client web browser which has absolute control. However, the following can be taken as workarounds:
1) Page Expiry
2) Application in PopWindow so that you can close the PopWindow after logout.
|
|
|
|
|
while I am running the applicatin I am getting this error
"An error has occurred writing to the exception log. The permissions are not set properly on the log file or directory, or the log file has been marked as READ-ONLY." why i am getting this and how can I solve this?
thanks in advance.
Regards,
chakri.
|
|
|
|
|
Set write access to Anonymous user.
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
|
|
|
|
|
Lot of reasons. A few of them -->
1. NTFS permissions.
2. ReadOnly file.
3. File already open.
|
|
|
|
|
Hello,
I always encounter IE error below when I am running my asp.net web application.
'unhandled win32 exception' has occured in IEXPLORE.EXE
Can anybody help me to resolve this. I really appreciate it.
Thank you so much.
|
|
|
|