|
ljuchem wrote: I have a button that calls a function but at the same time it calls the event DialogClosed should be called after I push the button to another screen that closes it.
I didn't get your point. Can you please explain it clearly.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Thank Abhijit Jana
Well I have a button on a screen that calls another screen that should behave like Dialog and dialog screen has a button that calls a function that closes the dialog.
After the main screen I have the DialogClosed function that works if I press the button of the dialog screen if I close the screen will not work.
The problem is that the main screen when I press the button that calls the dialog he calls the event DialogCosed what should not happen.
This event should only be called after I press on any button or close the screen. The main problem is that when I close the dialog does not call the event.
Thanks
|
|
|
|
|
hello friends
i have requirement for add Google Ads in site but how can i add it is not known. so please help me for write me code or add it in my site.
|
|
|
|
|
Here you go
Google AdSense [^]
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi-
i am wondering if there is any way to do the following:
i want the other developers to just create an aspx page...and put some defined tags...lets say something like...
<uca>
<ucf>
<ucy>
if they put the above tags in their aspx page...and also the container user control (that i created) on the same page....the container user control will retrive the above tags and load appropriate user controls dynamically in the container user control..hope it makes sense
thanks
|
|
|
|
|
ooops..the tags don't show up...basically any kinda tags i can go with
|
|
|
|
|
samir80 wrote: i want the other developers to just create an aspx page...and put some defined tags...lets say something like...
I think your post is incomplete. Where is the tag ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
thanks for reply...it could be any tags...i can have them hardcode predefined tags
|
|
|
|
|
Hi,
My senario: I have a sign-up form which, amoungst others, has a username textbox. The username textbox has autopostback set to true which, when posted back, checks to see if the entered username already exists in the DB and displays a message if so.
This works fine. But the problem I have is that in the code behind I am setting the focus to a control after doing the username check ( using txtUsername.Focus() ). But doing this causes the page to jump back to the top. This doesn't happen if I don't give a control the focus.
Any ideas how I can solve this?
A little more info about my form just in case it's relevant. The form is in an AJAX Accodion control which is in an AJAX Update Panel.
Thanks
|
|
|
|
|
Why dont you use
document.getElementById('textbox').focus();
in onload of the page ??
|
|
|
|
|
Wouldn't that set the focus to that particular textbox every time the page was loaded? I need to be able to set the focus to a different textbox depending on the result of the username check, i.e. if the check fails then set focus to txtUsername but if it passes then set focus to txtPassword.
But also, when the page is loaded for the first time then the focus needs to be set to yet a different control. So using Javascript how would I determine which control to give the focus to?
Thanks for help by the way
|
|
|
|
|
Well, if the page is actually posted back, you might consider adding a script block using RegisterScriptBlock to the client page to have the proper textbox focus.
It is not usually great to do focus in server side in case of ASP.NET.
use txtBox.ClientId to get the id on the control to be focus.
But If I was in your situation, I would have invoked an AJAX call to the server, and get if it is available or not. It is really unnecessary to fully postback the page for this.
|
|
|
|
|
Abhishek Sur wrote: But If I was in your situation, I would have invoked an AJAX call to the server, and get if it is available or not.
Ah, didn't realise that I could do this (I am a newbie to ASP.NET )
Thanks again for your help.
|
|
|
|
|
Hi developers,
I am having a great challenge in my .aspx pages. I have a .css file for my site layout, but each time I add a page and add a lenghtly contents (i.e a long content), it does stay static and not resized automatically. This does not give me flexibility of page layout that I want (page height resizing dynamically). Although, the #content height was specified in pixels. But if I had not specified the #content height in my css file, the page can be resized dynamically.
Please help.
Tunsten
|
|
|
|
|
If you specify height in Pixels, it will not automatically resize according to content length. One thing you can do, is you can make overflow:auto to have scrollbar when content length goes greater than the height.
If you remove the setting of height of the element, it will automatically spread itself.
|
|
|
|
|
Thanks a lot.
I am grateful.
Tunsten
|
|
|
|
|
Hi all,
How can I point to an HTML file if I am setting the IsHtmlBody = true in my app?
Please help.
Tunsten
|
|
|
|
|
|
A lots of thanks. I appreciate that.
Tunsten
|
|
|
|
|
Hi,
Below line of code is not working with FireFox.
Please let me know where I am wrong.
document.getElementById('txtAdd').innerText = valuefinal.toFixed(5);
Frank
Software Developer
www.mindstick.com
modified on Friday, November 20, 2009 10:44 AM
|
|
|
|
|
|
innerText will not work in Firefox I guess.
You can use innerHTML .
Also there might be sometimes the control may have child elements so it is better to remove those elements first.
To Clear a container use
var element = document.getElementById('txtCommissionBalance');
while(element.firstChild)
element.removeChild(element.firstChild);
After it removes all the element, do set the innerHTML .
|
|
|
|
|
Hi all,
I have Outer Gridview and Inner Gridview , Inner Gridview Contains the Checkboxes now if Outer Gridview Check box Checked then Inner Gridview Checked enables false else vice versa.
Now my Probelm is that how i access the inner Gridview items and insert into database if outer Gridview checkbox not checked
Share me the Ideas
Best Regards,
Thanks in advance
|
|
|
|
|
You might consider RowDataBound event to find the control.
use like this :
Sub CustomersGridView_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs)
If e.Row.RowType = DataControlRowType.DataRow Then
'now use e.Row.FindControl to get the gridview.
End If
End Sub
Hope you got the solution.
|
|
|
|
|
Is it possible to assign a default role in asp.net role and membership provider.......for e.g. there is two roles in my website.......Ist is Admin and IInd is Customer...........and if any user registers himself...........he must be automatically assigned to customer role..........is it possible...........plz guide me a bit.......
|
|
|
|