|
I've tried this and managed to reproduce your error. Suprisingly, removing the following attribute from your page declaration seems to resolve it.
src="Search.aspx.cs"
|
|
|
|
|
God I hate that attribute! Good to know, but I don't think I can remove it so I have to rely on a recursive find control method, which may be a little less efficient but does the job.
|
|
|
|
|
I have a treeview control in my page. Both the treeviews are inside of an update panel. Issue is, when the user clicks on back button of the browser and then clicks on the root node of the tree view, I am getting an error message saying that 'There was an error in the callback."
Is there any way which I can resolve this issue? Please help. Following is my html code for the update panel:
<p><
asp:UpdatePanel ID="TreeViewUpdate" runat="server" ChildrenAsTriggers="true"><ContentTemplate> <asp:TreeView onclick="postbackOnCheck(event,'ctl00_PCMSMainContent_CreateUserWizard_TreeViewUpdate')" ID = "AvailableBusinessUnitsTreeView" runat="server" Height="100%" Width="50%" ShowLines="true" ShowCheckBoxes="All" ExpandDepth="1" OnTreeNodePopulate="AvailableBusinessUnitsTreeView_TreeNodePopulate" OnTreeNodeCheckChanged="AvailableBusinessUnitsTreeView_TreeNodeCheckChanged">
<ParentNodeStyle Font-Bold="False" /> <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" /> <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" HorizontalPadding="0px" VerticalPadding="0px" /> <NodeStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="Black" HorizontalPadding="2px" NodeSpacing="0px" VerticalPadding="2px" /> </asp:TreeView> </ContentTemplate> </asp:UpdatePanel>
</p>
window.onload = function()
{
}
function postbackOnCheck(e, updatePanel) {var event = window.event || e;var o = event.srcElement ? event.srcElement : event.target;if (o.tagName == 'INPUT' && o.type == 'checkbox' &&null && o.name.indexOf('CheckBox') - 1) {"");
Error occurs on this update panel. Can anybody provide any solution for this?
Thanks
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Hello,
I need help on finding the datagrid item whose radio button is clicked. I need to submit a page on which there are several datagrids with radiobuttons in it. So when a submit button is clicked I need to search and find all datagrid items whose radio buttons are clicked.
Please help.
|
|
|
|
|
Loop in all items and get all items which are checked.
e.g.
for (int row=0;row<=datagridview.Rows.Count-1;row++)<br />
{<br />
if(CheckBox1.Checked==true )<br />
{<br />
}<br />
}
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
Hello, this is Vikash Gohil.
I wanted to know how the LoginView Control Works and from where it Authenticates the Users.
Actually I have the Authentication Process in my Web Application from a Database Table.
How Can i do this using a LoginView Control.
Any suggestions please.
Thanks in Advance.
|
|
|
|
|
For authentication purposes,you can use ASP.NET membership provider.Its very easy n simple
For details Look Here
ASP.Net provides a list of controls you can use without writing much code.All will be done for you by ASP.NET 2.0.For contrls
Have a look
For details about Loginview control Click here
Cheers!!
Brij
|
|
|
|
|
I found one interesting problem when I read an image file whose name containing #,it fails always to be displayed in a gridvew imagefield, but once
I delete this # in the file name, then no more problem.
I do not what is the reason, any solution for this execept I delet # or change it with others such as sharp by hand? it is better not to change it for my case.
thank you!
|
|
|
|
|
Why your file's name must have sharp (#) character as part name of file?
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
I have one image field in my gridview, due to the limit of size, all the images are displayed with a smaller size, but I want to realize the following function: when the user move the mouse on the image, the image can be enlarged either in the same position (maybe more difficult, moreover, the size should be recoverd once the mouse left this field) or in a jumped new window (may be easier).
what I do not want to redicrect to a new window to display the biger image.
anyone can suggest a solution? thanks!
|
|
|
|
|
|
thanks, it is a good article, but I found difficulty in using it in my case:
my applicaiton is that I display the images in a imagefiled of a gridview, from a database, just like your article did.
so I have no idea how to use this code in my case, do you have any idea?
|
|
|
|
|
You have to bind all those javascript methods on the Rowdatabound of the gridview. I will ask you to put your query on that article discussion board if you need any help or facing any difficulties . Hope Abhishek ( Author of that article ) will reply you as soon as possible.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
thanks, anyway, I use another method by using template instead of the imagefield, then I can directly change the image size with mouseover.
|
|
|
|
|
i'm trying to deploy a site in local iis , in my site i use a membership to log in but the problem is it works well in the asp development server, but when i try log in to the site hosted in the server it says
"your log in attempt was successful" i uploaded the .mdf file too,
any one got any idea
|
|
|
|
|
where does your mdf file stores ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
sorry the message displayed is "your login attempt not successful" and the .mdf file was in the project appdata folder and i uploaded it too.
in the iis server does it use the .mdf file to decide the membership.
|
|
|
|
|
i downloaded few .cs files from internet include it in my vs project in app_code folder but when i try to create instance of it in my webform(importer.aspx.cs) i cant create it... i created my class (class1.cs) just for test it works fi9 .. i dont know what is going wrong ... plz help... thanks in advance.
|
|
|
|
|
What is the access Specifier of that class ? You have to make it public, by default it is Internal.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
|
Make sure include name space name like
NameSpacename.ClassName object =new NameSpacename.ClassName();
Parwej Ahamad
ahamad.parwej@gmail.com
|
|
|
|
|
|
I see some webpages are limited by size, how to do?
and how to make the webpage displays in the center of a screen?
thanks.
|
|
|
|
|
Seraph_summer wrote: I see some webpages are limited by size, how to do?
Do you want to minimize the page size ? or what ?
Seraph_summer wrote: how to make the webpage displays in the center of a screen?
You have to use Top-Margin and Left-Margin of Body.
Thanks !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
I mean many websites have been limited its page size in order to compatible for old smaller monitor size.
I see I can use margin plus the screen size in order to make the whole page in the center of the screen, I know that I can use javascript code to get the current screen size, but I do not how to combine the css and the javascript to control this, i.e. how can i embed the javascript function into css style? can you give me one example?
thank you!
|
|
|
|