|
|
Ehhh, I'm already using a httphandler (ashx). That's the problem, you can't wrap an ashx page in a web control dll. It has to be a servable page on the actual website.
The point of my question is how to achieve this functionality within a seperate web control dll.
|
|
|
|
|
Hi,
I have a page that is pretty complex, i.e. it has a table with lots of controls, everything generated from data in a database. Each row contains among others a DropDownList, and when certain items are selected in that dropdownlist, the rest of that row should be disabled. The rest of that row contains text boxes, drop down lists, and a few validators. The number of controls is dynamic.
What would be the best way to accomplish this? What I've got so far is:
- a onChange attribute for the dropdownlist,
- a javascript function which gets called in the onChange event handler
- this function correctly determines if I should enable or disable the rest of the row
- ... and then calls getElementsByName to get an array of elements that should be enabled/disabled.
But this is where I stop, since getElementsByName doesn't return anything. If I specify a name attribute for the controls that should be enabled/disabled, it won't render to the page since ASP.NET will override my setting with the id of the control. I could probably create a subclass of TextBox and DropDownList, and modify their RenderAttributes( ) function, I just haven't gotten to it yet. Is there an easier way?
Even if I succeed with that, I still have the problem of disabling the validators for the controls that should be disabled. Is there some easy way to accomplish that? I found http://www.codeproject.com/useritems/ASPNET_Validation_Tamed.asp[^] which talks about similar solution, but am I missing something completely obvious? I'm aware of the fact that I could set the AutoPostBack property of the DropDownLists to true, and handle the change events server side, but I would rather do it client side just to minimize server load. But then again, if I must use server side I probably will.
So anyway, any help or hints whatsoever would be highly appreciated.
Regards,
Daníel
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
Hi,
I need to stream videos from youtube to my webapplication dynamicaaly...
I done with static.But my need is different.now i am briefly explain the details...
I have different products.all the products have differenet videos.(all the product details are entering in admin side including the movie tag which are stored in a table SQLSERVER2000 DB)
I shown the products in different images.while clicking the products details are displayed in another page.There is a button to watch the movie.while clicking the button the corresponing movie want to stream.while the user select the products,it shows all the details with a button to watch movie(all are comes under user side),only the corresponding movie want to run..videos are uploaded in youtube...all the products movie want to stream in the same page..My problem arises here..i can now stream only one movie,if i give the corresponding object tag.How dynamically stream the videos based on the choice without multiple buttons???Please help to solve...
i cant know how to embed object tags(movie tags )dynamically....If knows Please share me...
Thanks & Regards
Bijesh
|
|
|
|
|
Sorry. I forget your last post...
Steps:
1. Add one button and one Literal control.
2. In Button_click
2.1. Get the completed embed object tag from database depend on the parameter
2.2. Set the string to Literal1.Text (e.g. Literal1.Text = @" EMBEDDED TAG FROM DATABASE"; )
That's all.. Let me know if you are not clear
|
|
|
|
|
Hi,
Please Explain some more...if am taking object tag from database and assigned to Literal.How is the movie working?If I need to assign only the object tag to Litteral.am i correct?
Thanks
Bijesh
|
|
|
|
|
bijeshputhalath wrote: assign only the object tag to Littera
Yeah. You need to assign the object tag to Literal.... then, the movie player will be shown in your page. So, the user can click to play the movie...
|
|
|
|
|
Hi Michael,
Thank You for Your Help.Now it is Working fine...But Loading Takes time..
Regards
Bijesh
|
|
|
|
|
Hi,
I am having a datagrid with 3 bound column and two hyperlink column.I need to set the navigateurl of both the hyperlink column dynamically depending on the row in which the user has clicked the hyperlink.
Please give me an idea atleast in which event the code has to be written.
Thanks,
Srikanth
|
|
|
|
|
Why don't you set the navigateURL while populating the Datagrid? Any different??
|
|
|
|
|
i need to set the url with 3 parameters(Querystring) whose value need to be taken from datasource.
This three parameter value depends on the row in which hyperlink is clicked.
Now my doubt is how should i frame the navigateurl with the Eval() method.
Thanks,
Srikanth
|
|
|
|
|
hi.
i am creating a excel sheet ..here i am exporting the total data from Datgrid to excel..it is working fine but if any linkbuttons or hyperlinks(like paging or edit buttons) in the Datagrid ...then it is giving the error..
how can i create the excel
|
|
|
|
|
|
I have used the SlickUpload in my project,But there has a problem Which I can not figure out.
The Problem is I have also used FckEditor Control which has a function that allow me to upload image into the Editor in my project.but the HttpPostedFile was used to upload image by FckEdtitor.Now the HttpPostedFile is conflicting with the Slickupload.How Should I to do with this?
And because the FckEditor use a html page's form to post data to the HttpPostedFile.Can Slickupload get the data too?
Thanks for help!
MSN:wanlim0817@yahoo.com.cn
|
|
|
|
|
following namespace not found :-
Microsoft.Office.Interop.Excel.ApplicationClass
Gaurav
|
|
|
|
|
Add the dll reference Microsoft Excel 11.0 object library and namespace using System.Excel
Thanks,
Srikanth
|
|
|
|
|
creating and saving excel work sheet at runtime
Gaurav
|
|
|
|
|
|
I am having a serious issue. I have searched for and tried every solution I could find. This is the error I am currently getting.
e current identity ("Computer Name"\ASPNET) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.
ASP .NET actually has full control on this folder. Any suggestions? I also got an error involving the IIS metabase once. I have reinstalled everything and even repaired the .NET Framework 2.0. I then ran ASPNET_REGIIS -i and - ga ASPNET. No go on anything so far. PLEASE HELP!
|
|
|
|
|
As long as this is a development machine only you can use "identity impersonate" within your web.config file to let ASP.NET assume an admin role, which should get you around this problem. *** Just be sure to remove this when you want to deploy on public server. ***
If your machine's admin login is
username: abc
password: xyz
add the folowing line within the <system.web> block of the application's web.config file:
<identity impersonate="true" userName="abc" password="xyz" />
|
|
|
|
|
i have a webform, with a button and a listbox,
when i click on the button it should run many threads, and when each one finishes its work it should add an item in that listbox indicating that it's finished,
so the problem is that i need to make a thread to add an item in a listbox when it's finished working,
sould i need to refresh the page, or what...???
plz help me
|
|
|
|
|
Well, it depend on how you add.. if you are adding the listitem from Javascript, you wont' need to refresh thage page.. otherwise, you will need....
|
|
|
|
|
it's a server-side control, i wanna make it just like AJAX scenario, plz help
the problem is i can't refresh the page from other class defined in the page class, i pass the httpcontext to that class, and i have an error message tells me :
cannot redirect the page after the http header has been written, how can i resolve this error
help meeeeeeeeeee
|
|
|
|
|
You wanna add new listitem to dropdown server control without refreshing the page???
then, just write the code for adding new listitem in normal way.. place the dropdown and button within UpdatePanel...
|
|
|
|
|
the page has been posted back and redrawn to the client, now the page is still,
and there're some threads that run behind that page, every one has to put a list item in that listbox after it finishes its work, can i do that without refresh the page,
or are there any other alternatives that i can solve this problem.....
|
|
|
|