|
Alex,
The way to access the checkbox with javascript in the repeater is similar to that in the datagrid control, you can see the site[^] for the sample script.
However, IMO you may not need to use javascript to access the checkbox in the RepeaterItem to get the id values, instead you can walk through the Repeater.Items[^] collection, and get reference to the checkbox control, you then can check if the checkbox is selected or not, and get the id value bound to it. And I think you may want to collect the ids of the checked checkboxes with javascript when you intend to use AJAX to do something.
|
|
|
|
|
HAHA,
I just discovered the Items property. This looks good !
/\ |_ E X E GG
|
|
|
|
|
so If I binded a class AdminPaper to the Repeater, I should be able to cast Items[i] in to an AdminPaper right?
/\ |_ E X E GG
|
|
|
|
|
|
Hi All,
I have no idea how to save files on client machine in ASP.NET. I tried with Request.Response(), but i failed to do that. Can anyone provide me the solution.
I am trying to save a .xml file in C:\TEMP of the client machine
Regards
Suma B R
|
|
|
|
|
using System.Net;
WebClient client=new WebClient();
client.DownloadFile("url path of the file on the server","Localfilename");
Please..may you tell me why do you want to download .xml file on the client machine?
"I am too late but i will never give up"
|
|
|
|
|
Hi
Thanks a lot for solution. I am tried out for the same.
client.DownloadFile("http://132.186.90.79/RRM/SavedXML.xml","SavedXML.xml");
This works very fine if i run on the server itself, but when ran on client machine its not saving the file.
I seached the file in entire client machine, but could not find it.
I am generating XML file with fields entered by user and trying to provide a saved copy for the user.
Regards
Suma
Regards
Suma B R
|
|
|
|
|
Well..I think you should put your question as a new question (new thread) in this forum..There are some professional programmers who are better than me .I hope they answer your question.
"I am too late but i will never give up"
|
|
|
|
|
My situation,I have two pages ,A.aspx and B.aspx. On A.aspx i have a datagrid to show informaton, each row of the datagrid consists of its own select button. when the button clicked, B.aspx will pop up. When the second time the user click another row's button on A.aspx( B.aspx window not close yet), the B.aspx will auto refresh at that time and show another information. For the 3rd time ,the B.aspx also auto refresh when the user click the another button on A.aspx and so on.
So , may i know how to code to allow the B.aspx will auto refresh when the user click the button on A.aspx?
Thanks a lot.
-- modified at 23:45 Sunday 14th May, 2006
|
|
|
|
|
I don't know if anyone will be able to help me, but I have a real strange error with c++ on Visual Studio on my XP. I have a code fragment:
if( !Directory::Exists(out1))
Directory::CreateDirectory(out1);
Exists compiles with no problem but CreateDirectory gives me the following error:
error C2039 'CreateDirectoryA' is not a member of 'System::IO:Directory'
When I put the cursor on CreateDirectory, it correctly identifies it as System::IO:CreateDirectory(System::String __gc*). Then when I compile Exists goes through OK, but CreateDirectory turns into the ANSI version of CreateDirectory which it then claims isn't part of the class (as it probably isn't). Who asked the compiler to turn CreateDirectory into CreateDirectoryA?
If anyone has any suggestions, I'd be very grateful.
Thanks,
Ilan
|
|
|
|
|
I found the problem in WinBase.h. It has
#ifdef UNICODE
#define CreateDirectory CreateDirectoryW
#else
#define CreateDirectory CreateDirectoryA
#endif // !UNICODE
I added #undef CreateDirectory and it now compiles.
|
|
|
|
|
Hi
I have an asp.net app .I hold the userID in cookie caz next time that user want to connect to site username is shown to him as welcome text.
But sometimes user connect to site and see another username and doesnt see his username as welcome.
what should i do?
|
|
|
|
|
Could you show some code ?
------------------------------ "The Soapbox has been so ..."
|
|
|
|
|
|
Client script is the right way, Code behind way will cause the page to postback.
------------------------------ "The Soapbox has been so ..."
|
|
|
|
|
What do u mean by "Client script" ?
|
|
|
|
|
Client script means that page will not get post back to the server and on the client machine itself it will do the process.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hello, Friends
I'm binding some data in my GridView using ObjectDataSouce. I need too, specify some SelectParameters what are stored in ViewState, but in the "Parameter Collection Editor Dialog", the "Parameter Source" option shows only: Cookie, Control, Form, Profile, QueryString, Session
I wish bind to some value in ViewState. How not appears the option "ViewState", I need place my values in some HiddenField control to bind...
Someone knows how I do to bind to ViewState?
Regards
Fabio
|
|
|
|
|
Hi there,
There's no such a ViewState parameter existing, but there are two work-around options come to mind that you may consider:
+ Use the general Parameter for the select parameter, and create an event handler for the Selecting event. In the handler, you can populate the select parameter value from the ViewState, then add it to the InputParameters collection.
+ Develop your own custom parameter, say ViewStateParameter, which inherits from the base class Parameter . In the custom class, you at least override the protected method Evaluate to populate the ViewState and return the value. You also should remember that the ViewState is a protected property of the Control class, so if you want to access the ViewState of the control, for example the ViewState of the Page instance, from the outside of the control, you may consider using the reflection.
|
|
|
|
|
Perfect explanation! Thank you very much, I will do and maybe I place this custom parameter source here in CodeProject
Regards
Fabio
|
|
|
|
|
Hi,
what should be straight forward seems to be causing me a nightmare. Basically, I am reading a simple XML file into a dataset and then binding the dataset to a datalist. The XML contains links to images. Within my datalist is an image holder who's URL binds to what is stored in my XML file.
Here's the problem, my webpage shows some of the images but not others even though I know all the images exist. What's even stranger is when I press the refresh button some pictures that didn't display before now display! Can anyone help? is there a limit to the datalist in the amount it can store and display??
Thanks in advance
S
SEdwards
|
|
|
|
|
Hi there. Which browser are you using for testing? Do you have this problem with non-Microsoft browsers like FF?
|
|
|
|
|
I was using IE for testing. Just tried Firefox and although it took a while to load all the images, they all loaded. Do you think the problem could be to do with the file size of the images? They are on average 1mb.
Sion
|
|
|
|
|
|
Thanks, will check SP version later. I'm using IE 6 but not sure which service pack - should be SP2.
Sion
|
|
|
|