|
Hi
I have a Menu (contains submenus) in my page which is used as just like tabs in VB, with which I want to make it work by hiding or unhiding the panels (panels contains the controls) through its (Menu) click event.
The problem is that, the click event is not raising. I have tried with the event handler
protected void Menu1_MenuItemClick(object sender, MenuEventArgs e)
{} as I am using C#, but it did not work.
There is property added OnMenuItemClick="Menu1_MenuItemClick" in the menu tag in page1.aspx file.
How can I do this? Please suggest...
|
|
|
|
|
Hello
I have solved this problem.
Thanks.
regards
|
|
|
|
|
I have developed an application but i have some trouble with browser history .So i need your help please, but i don't know how to upload my app for you. I 'm waiting your anser soon, thank so much
my email: lequison@hotmail.com
note: please forgive my bad english , i 'm living in vietnam
|
|
|
|
|
hoangdung19832004 wrote: So i need your help please, but i don't know how to upload my app for you
There's no need to, just tell us what the problem is, and show us the code that relates directly to your problem
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hello Mr Christian Graus
but i don't know how to decribe my problem for without my app so, if i cant send to you my app to reference, it is better. If you afraid, ok i will not disturb you
thank so much
|
|
|
|
|
Im adding textboxes in my asp.net page on button click inside a panel,which i have placed in my page.
but the new control is getting created ,Im losing the old dyanmically create textbox.here is my code.
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
i = Convert.ToInt16(Session(ID))
Dim textbox As New TextBox
textbox.ID = "textbox" & i
textbox.Text = textbox.ID
textbox.Style("top") = "800px"
Panel1.Controls.Add(textbox)
i = i + 1
Session(ID) = i
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Page.IsPostBack = False Then
Session(ID) = i
' MsgBox(Session(ID))
Else
' MsgBox("2")
End If
End Sub
dont know what is the mistake Im doing.Possibly its anything to do with Viewstate?
Thanks in advance
|
|
|
|
|
A textbox that is added dynamically, needs to be added on every postback, or it will disappear. It also needs adding prior to the load event, if you want to interact with it using viewstate, or get events from it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I want to add and modify no. of products in my AddToCart variables.
Shopping can be done in different sub - domain.
Plz Help me...
Thanks
ajai
|
|
|
|
|
There's no such thing as a 'cart variable'. You don't want to store the number of products anyhow, you want to calculate it based on the number of products that are in the cart.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi all,
When i select a file to upload in the file upload control, I am not able to see the file name in the control after i selects the file. For eg: Suppose if i select a file from desktop, then in the file upload control i can see only "C:\Documents and settings", where i am not able to see the file name by default.
Here my requirement is after i select the file to upload, I want the cursor to be get focused to the last in the control. So that I can see the file name as "\Desktop\Form.doc".
Thanks and Regards,
Hariharan C
|
|
|
|
|
For security reasons, you don't have granular control over the Input Type File control.
|
|
|
|
|
I don't think you can interact with the filename control in javascript, because it has access to the file system, and javascript does not. Also, it stops you from putting such a control on a page, using javascript to put a path like c:\windows\somesensitivefile.doc into it, and getting files from people's computers.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
What's strange ? The requirement is not strange, and that it can't be done isn't strange, either.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
how can i improve speed of executing a thread in asp.net.
(not priority)
-- modified at 8:01 Thursday 16th August, 2007
|
|
|
|
|
What are you trying to achieve ? You'd start a new thread in the normal way, but if your main thread ends, then your page lifecycle ends and your page is served.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I am created a web application in which i am getting paths of images in one listbox by browsing the images. I want to generate runtime dynamic images on same page by using these paths.
thanks!
|
|
|
|
|
You simply need to create img tags dynamically and add them to the Controls collection of a control in the page ( which will determine their location ). Or you can create them to include css which positions them.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
can u send me sample code
|
|
|
|
|
it's pretty simple. An img tag looks something like:
<img src="myfile.jpg"/>
Easier again is to create a new picture control, and let ASP.NET generate the HTML for you. Another way would be to have a repeater that takes an array of image paths, and renders img tags out of them, that actually seems the easiest way to go about it, and get them laid out as you want.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Dear All,
I have a mini website, i have a page to allow user customize himself the same you customize your Yahoo!Blog.
Please help me to find the solution to solve this issue.
Thank in advance
vtkiet05
|
|
|
|
|
Any help please?
vtkiet05
|
|
|
|
|
is threading is possible in asp.net???
if yes can u help me how to do thread in asp.net???
can i pass parameters when i call a process(thread)???
help me pleaseeeeeeeeeeeeeeeee
Sarith...
|
|
|
|
|
Pretty much the same as you do in any other part of .net.
|
|
|
|
|
coyld you please give me a Example also!!! plsssssssss
Sarith...
|
|
|
|
|
You know, it's pretty obvious that you're using two accounts to ask the same questions. Please don't.
If you can't work out how to start a thread by using google, you probably shouldn't use them - multi threading is more complex than using search engines is.
And, as I said above, the issue you have is that when your main page lifecycle ends, your page is served.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|