|
This is a problem with IE. You'll need to use a different control that renders differently to achieve this.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
It mean what the final solution for this one?,
I am using ajax 3.5, for ie6 broswer how to load another control for that textbox?,
Its not correct solution to solve this
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
In my c# form i have added a Acrobat Reader ActiveX control in runtime. when I added its not appearing in the form.
when i minimize and maximize the control is appear.
How Can I solve this proble
Thanks in Advance
|
|
|
|
|
|
I am creating in run time
modified on Friday, June 20, 2008 6:01 AM
|
|
|
|
|
Hi,
Let me go straight to the point.
I am doing a something like a wizard we use to setup some programs or system. I have 5 pages which all 5 pages is link together with 'Back' and 'Next' button. It was working fine until I tried the Back button and click Next again. I find it some what difficult to detect that the user clicked back and therefore when the user click next again, I suppose to do 'Update' and not 'Add' and also sometimes what the user typed in the form is not there any more.
I'd tried a few solutions such as putting in checks whether the user already entered data by taking the primary key after inserting the data and put into a invincible label, so when the user press back, the system can check the label whether there is any value in it.
I find it a bit tedious to do so, so I decided to come here to seek some expert advice on the best practice to do this - How to Add and Update respectively and keep everything on the page no matter the user click Back and Next how many times.
This is what I did on the Back button
this.btnBack.Attributes.Add("onclick", "javascript:history.back();return false;");
|
|
|
|
|
Is this a ASP.NET question?
If so, what Framework you are using?
If the Framework you are using is 2.0, then ASP.NET is providing with a nice Wizard Control which does all you need.
history.back() will be effect if your page postbacks to the same page.
|
|
|
|
|
Make all the pages controls, and put them on one form, just change which one is visible.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello there,
I met a problem. I have a textbox, requirefiledValidator and a button on the same row.
If I don't put anything in the textbox first and hit the button. The validator is triggered. (The display of the validator is dynamic.)
Then I put something in the textbox and hit the button again. But the button's onclick event is not triggered. I figured out the reason. I think the mouse click caused the onblur event of the textbox, then the validator error message is gone, then the button position is changed. So the onclick is not on the button anymore.
The sample code is here.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="textbox1" Display="Dynamic"
ErrorMessage="RequiredFieldValidator">This field is required</asp:RequiredFieldValidator>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
</div>
<br />
</form>
</body>
</html>
Is there a way to make the button onclick event still be fired? I think I can use setTimeout to delay the validation a little bit. But I don't know how to do it.
Any suggestion will be greatly appreciated.
Bin
|
|
|
|
|
bin_bin1 wrote:
<asp:textbox id="TextBox1" runat="server" xmlns:asp="#unknown">
<asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" xmlns:asp="#unknown">
ControlToValidate="textbox1" Display="Dynamic"
ErrorMessage="RequiredFieldValidator">This field is required
<asp:button id="Button1" runat="server" onclick="Button1_Click" text="Button" xmlns:asp="#unknown">
bin_bin1 wrote: I think the mouse click caused the onblur event of the textbox, then the validator error message is gone, then the button position is changed. So the onclick is not on the button anymore.
You controls are in flow direction (one behind the others). Use BREAKS next to each controls or tables with fixed column width.
|
|
|
|
|
Thank you so much for your reply. My code is just an example. I am working on an application page in SharePoint. I cannot change the design. the button will change position when the validation messages show or hide.
I think there are two possible solutions.
1) Make the textbox's onblur event does not cause validation. I don't know how to do that.
I tried to add Textbox1.Attributes.Add["onblur", "return false;"];
But it is not working.
2) Delay the validation for 100milli second by using setTimeout method.
I really don't know how to do that.
Please help me with this.
Thank you so much.
Best regards,
Bin
|
|
|
|
|
Have anyone ever worked with visual web developer 2008 express edition? If so how do you go about publishing your site with this tool? I keep getting a Parser Error message: unrecognized attribute in my web.config file. Any suggestions?
|
|
|
|
|
jds1207 wrote: how do you go about publishing your site with this tool?
You cannot publish a website from Express Edition tools. They are just for learning purpose. If you still want to do that buy Professional or other Edition.
jds1207 wrote: keep getting a Parser Error message: unrecognized attribute in my web.config file
Post you web.config file
|
|
|
|
|
What's the recommended way to share a single menu control across all the pages in my site?
Edit: Also shared data sources if it's different from the above.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
modified on Thursday, June 19, 2008 2:33 PM
|
|
|
|
|
|
Hi all
i have accordion that dinamic create in that accordion i have LinkButton To delete That Row i used http://www.codeplex.com/AjaxControlT...rkItemId=16965 to fix the Click Event Bug and its work fine for the first click but when i click again its not work but when i click 3rd time its work
u can say its Accordion ItemCommand event fires every other time instead of every time
hope any one know whats up thats the item command code
protected void Accordion_Comments_ItemCommand(object sender, AccordionCommandEventArgs e)
{
if (e.CommandName == "LinkButtonDeleteComment")
{
art_comment.Delete_Comment(int.Parse(e.CommandArgument.ToString()));
LoadComments();
}
}
thnx
JavaScript - C# - MS Sql Server - asp.net 2
http://eazyasp.blogspot.com/
|
|
|
|
|
hi
i have listview in which i have folowing dataitem
Name
Address
CountryID
StateID
my problem is i have GetCountryName() and GetStateName() methods in my DAL layer and i want
to dislplay country name and state name insted of CountryId and StateId field
i have googled it and looked everywhere can anyone help please to solve this problem
its a bit urgent...thanx in adavance
appu
|
|
|
|
|
appu,
you didnt mention here, how you populate listview data. I guess u must have used Dataset as data source for Name,Address,CountryID and StateID, and for this you must be sending some SQL Query. So in where clause you can call the function.
Another way is u dont call the funciton, LEFT OOUTER JOIN the Seed Data table for Country and State in SQL Query and populate the list view.
Hope now you got some more Idea.
|
|
|
|
|
thanx but i used
Private Sub BindSearchByEmailGrid()
Dim ds As EmployerInfoList = [EmployerInfoManager].SearchByEmail(txtemail.Text)
searchgrid.DataSource = ds
searchgrid.DataBind()
UpdatePanel1.Update()
End Sub
and this dataset returns data with only countryid and stateid and as u said i cant modify storedprocedure to get names
because they are in different database..i saw tht i can do that using gridview but not with the listview
appu
|
|
|
|
|
I am trying to connect to a SQL Server 2000 database and I keep getting the following error:
Cannot generate SSPI context
Any ideas!
|
|
|
|
|
Chek this[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
|
|
|
|
|
Hi,
I have following format for collapsible panels.
CollapsiblePanelExtender1 (expanded by default)
headerpanel
contentpanel
textbox1
contentpanel
CollapsiblePanelExtender2 (collapsed by default)
if the textbox1.text (from collapsible panel1) is "Allow" I should be able to expand collapsiblepanels 2 .
in my pageLoad javascript
function pageLoad()
{
cpe2 = $find("secondpanel");
cpe2.add_expandComplete( expandHandler );
txt = document.getElementById("TextBox1")
}
function expandHandler( sender , args )
{
if (txt.value!='Allow')
{
cpe2.collapsePanel();
}
}
But what is happening here is when the expand event is happened for collapsible panel2 ,
expandhandeler gets called and condition is checked and if textbox value is not 'Allow' then the
second collapsiblepanel is getting collaped. and there is flickr effect. like expand and collapse happening within a second. There are many articles on flickr but those are for page load.
I want not to have this effect. I want the user to feel that the panel is disabled even if he clicks
the second panel , it should not expand. (if the panel's enabled is set to false then I can not find it in Find$(<behaviourid>) also dont have clue how to find it then and how to enable it.
So please give me some feedback.
regards
Vijay
|
|
|
|
|
Hi Friends,
I have a simple web applicaiton in .net 2.0 i am writing in c#.
Now i am facing the problem in Logout is that, Once i click Logout it takes me back to my Login Page.
But in case if i use Back Button from Browser it goes inside the last page i was. I clear all the cookies and all required things to be done on Logout.
But about this Back Button. I dont know. I have searched alot for this but i really didnt find any proper solution to it.
Any help regarding this will be appreciated.
Thanks
Cheers
Menon
|
|
|
|
|
If you use the Session object you can call Session.Abandon() which will clear it then just put checks in the Page_Load of each page that checks if the Session is null and if so redirects them to the login page.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi there,
When you Click the Back Button, it doesnt call the Page_Load method. So even if your Session is Abandon, the page will be visible. Yes But after that he wont be able to do any other function since it will go to the Page_Load Method. But the Page is still visible which is what i dont want.
Thanks,
Cheers
Menon
|
|
|
|