Click here to Skip to main content
15,919,028 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Calling server side method through java script Pin
NikoTanghe18-Sep-08 4:20
NikoTanghe18-Sep-08 4:20 
QuestionTrying convert Gridview As Image. Error : System.ArgumentException Pin
K V Sekhar18-Sep-08 2:59
K V Sekhar18-Sep-08 2:59 
AnswerRe: Trying convert Gridview As Image. Error : System.ArgumentException Pin
J4amieC18-Sep-08 3:34
J4amieC18-Sep-08 3:34 
GeneralRe: Trying convert Gridview As Image. Error : System.ArgumentException Pin
K V Sekhar18-Sep-08 3:37
K V Sekhar18-Sep-08 3:37 
GeneralRe: Trying convert Gridview As Image. Error : System.ArgumentException Pin
eyeseetee18-Sep-08 3:47
eyeseetee18-Sep-08 3:47 
GeneralRe: Trying convert Gridview As Image. Error : System.ArgumentException Pin
K V Sekhar18-Sep-08 4:04
K V Sekhar18-Sep-08 4:04 
GeneralRe: Trying convert Gridview As Image. Error : System.ArgumentException Pin
J4amieC18-Sep-08 4:14
J4amieC18-Sep-08 4:14 
Questionasp net onfocus and onblur problem in ie6! Pin
Nyssa_2018-Sep-08 2:47
Nyssa_2018-Sep-08 2:47 
Hi,
i have problem in ie6 with the onfocus event.The onblur and onfocus event execute some javascript code. The problem is , in mozzilla this work ok, in ie6 work only for some objects.
Fe: for the companyname textbox the browser didnt apply this 2 events, the select object work fine.

Can u help me in this problem?

I add this event to my object fr5om code behind:
in page load :
..
Me.companyname.Attributes.Add("onFocus", "changehint('hint1',2)")
Me.companyname.Attributes.Add("onBlur", "check_field('companyname',this.value,'hint1')")
Me.state.Attributes.Add("onfocus", "changehint('hint4',2)")
Me.state.Attributes.Add("onblur", "check_field('state',this.value,'hint4')")

My aspx page looks like this
...

<table style="text-align:left;">
<tbody>
<tr class="row">
<td ><asp:Label ID="txtcompanyname" runat="server" Text="name + form"></asp:Label>*
<br /><asp:Label ID="obs_name" runat="server" Font-Size="9px"></asp:Label></td>
<td><asp:TextBox ID="companyname" runat="server" ></asp:TextBox>
</td>
<td>
<span id="hint1" class="hintForRegistration ">
<asp:RequiredFieldValidator CssClass="hinttext" ID="reqname" Display="Dynamic" runat="server" ControlToValidate="companyname" ErrorMessage="error1"></asp:RequiredFieldValidator>
<asp:label ID="Label0" runat="server" CssClass="hinttext"></asp:label></span>
</td>
</tr>
<tr class="row">
<td><asp:Label ID="txtcompanycounty" runat="server" Text="county"></asp:Label>*</td>
<td>
<select id="state" runat="server" >
<option selected="selected" value=""></option>
<option value="Baranya">Baranya</option>
</select></td>
<td>
<span id="hint4" class="hintForRegistration ">
<asp:label CssClass="hinttext" ID="Label3" runat="server"></asp:label>
</span>
</td>
</tr>

The javascript code change hintbox style on onfocus or onblur event:

function changehint(elem,type,label)
{
var hint = document.getElementById(elem);
hint.style.visibility = "visible";
if (type == 1)
{hint.className='hintForRegistration red';}
else if (type == 2)
{hint.className='hintForRegistration orange';}
else if (type == 3)
{hint.className='hintForRegistration blue';
hint.innertext = 'OKSA!';}
}
function check_field(thefield,thevalue,thehint)
{

if (thefield == "companyname" || thefield == "state" || thefield =="companystreet" || thefield =="companycity")
{if (validate_anytext(thevalue)) changehint(thehint,3)
else changehint(thehint,1)
}
else if (thefield == "companymail")
{if (validate_email(thevalue)) changehint(thehint,3)
else changehint(thehint,1)
}
else if (thefield == "companypass1" || thefield == "companypass2")
{if (validate_pass(thevalue)) changehint(thehint,3)
else changehint(thehint,1)
}
else changehint(thehint,3)

}

thanks
AnswerRe: asp net onfocus and onblur problem in ie6! Pin
t7bros18-Sep-08 4:44
t7bros18-Sep-08 4:44 
GeneralRe: asp net onfocus and onblur problem in ie6! Pin
Nyssa_2018-Sep-08 5:03
Nyssa_2018-Sep-08 5:03 
Questionvalidating Drop down list Pin
meghamaharshi18-Sep-08 2:29
meghamaharshi18-Sep-08 2:29 
AnswerRe: validating Drop down list Pin
Paddy Boyd18-Sep-08 2:46
Paddy Boyd18-Sep-08 2:46 
AnswerRe: validating Drop down list Pin
eyeseetee18-Sep-08 2:47
eyeseetee18-Sep-08 2:47 
AnswerRe: validating Drop down list Pin
J4amieC18-Sep-08 2:52
J4amieC18-Sep-08 2:52 
GeneralProgrammatically Make Bound Column Invisible Pin
Brady Kelly18-Sep-08 2:24
Brady Kelly18-Sep-08 2:24 
GeneralRe: Programmatically Make Bound Column Invisible Pin
meghamaharshi18-Sep-08 2:38
meghamaharshi18-Sep-08 2:38 
GeneralRe: Programmatically Make Bound Column Invisible Pin
Brady Kelly18-Sep-08 3:05
Brady Kelly18-Sep-08 3:05 
GeneralRe: Programmatically Make Bound Column Invisible Pin
J4amieC18-Sep-08 3:28
J4amieC18-Sep-08 3:28 
GeneralRe: Programmatically Make Bound Column Invisible Pin
Brady Kelly18-Sep-08 3:34
Brady Kelly18-Sep-08 3:34 
Questionusing reportviewer in server processing mode for view print option Pin
gautamamit818-Sep-08 2:22
gautamamit818-Sep-08 2:22 
QuestionIn Web Application(ASP.NET) how to import MS Acess database table's data into sql server 2005.. Pin
Ankur Gaur18-Sep-08 2:19
Ankur Gaur18-Sep-08 2:19 
AnswerCP IGNORE Pin
leckey18-Sep-08 2:37
leckey18-Sep-08 2:37 
QuestionDateTime Pin
kibromg18-Sep-08 2:13
kibromg18-Sep-08 2:13 
AnswerRe: DateTime Pin
J4amieC18-Sep-08 2:18
J4amieC18-Sep-08 2:18 
AnswerRe: DateTime Pin
Guffa18-Sep-08 13:47
Guffa18-Sep-08 13:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.