|
Hi there.
I'm having an issue with enumerating through the bound items in my DataList. It seems as though the Items property of the DataList control only contains the control that you add as an Item Template.
Is there anyway to enumerate through the DataList's BOUND items and convert it back to the original control type?
Daniel Minnaar
Lead Software Developer
|
|
|
|
|
I've solved the problem.
The way to enumerate is:
For Each item As DataListItem In lstControlList
For Each ctl As Control In item.Controls
CType(ctl, MyControlObject).Property = Value
Next
Next
Daniel Minnaar
Lead Software Developer
|
|
|
|
|
How to Encrypt and Decrypt a String(Password)...Any Reference will be helpful.
Thanks in Advance...
Erasers are for people who are willing to correct their mistakes.
|
|
|
|
|
The Cryptography namespace is where you should be looking.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
Hi experts,
I need a linkbutton/button to download the files which my clients have uploaded.
Below is my upload method and it works.
protected void uploadFile()<br />
{<br />
String projectID = (String)Session["projId"];<br />
if (!FileUpload.FileName.Equals(""))<br />
{<br />
System.IO.Directory.CreateDirectory(Server.MapPath("Docs/") + projectID);<br />
<br />
FileUpload.PostedFile.SaveAs(Server.MapPath("Docs/" + projectID + "/" + FileUpload.FileName));<br />
lblFile.Text = FileUpload.FileName + " is uploaded!";<br />
lblFile.Visible = true;<br />
<br />
}<br />
}
However, it's not working for downloading of file (in another asp)
May I know how can I do that?
protected void btnLink_OnClientClick(object sender, EventArgs e)<br />
{<br />
String projectID = (String)Session["projId"];<br />
String file1 = System.IO.Path.GetFileName(Server.MapPath("Docs/" + pid + "/"));<br />
}
The files format that are uploaded are not consistent. Usually it's excel, word or pdf format.
Please help. Thanks!
serene
|
|
|
|
|
You need to set the header and then do a Response.BinaryWrite. You can also specify the filename, which will force a download. There's tons of examples on the web.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Where you are storing the file name ? Get the file name user need to be downloaded and do a Response.Redirect() to the file URL.
|
|
|
|
|
Hi All...
We are developing a site...we have done all the coding part and we have also executed every part of it successfully...after a few days we just checked out our app but now it is throwing an exception like
Type: 'Acme.SubAcme.ConvertMeTypeConverter' cannot be found...
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException:
Source Error:
An unhandled exception was generated during the execution of the current web request.
we coudnt able to get wat's it....
Help us out....
Regards
Nandu
Abhishek
|
|
|
|
|
Hi,
have you seen this ?
Link[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Hi Sun Rays...
Its working out...
Thank you so much....
Regards
Abhishek
Nandu
|
|
|
|
|
Hi Sun Rays...
Cud u tell us what's a converter...Sorry if im sounding very basic coz m very new to AJAX environment...
|
|
|
|
|
Hi,
you can have this link..
Link[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Hi friends,
I am using tree view control in asp.net2.0 which have that controls but if i want to use it in asp.net 1.1 then there is not an option in the controls for the tree view.
now i want to use tree view in asp.net 1.1 and looking for any hint how they will use in asp.net 1.1
i searched on google for the solution but didn't get it..
so if you have alternatives to this then please reply me...
this will very helpful for me....
thanks in advance....
all reply appreciated.....
bye.....
|
|
|
|
|
Hi,
you can check this link
Link1[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
There is no built in tree view controller for ASP.NET 1.1. You can't use that control in ASP.NET 1.1, because it's .NET 2.0 compatible. You can write a custom control for ASP.NET 1.1.
|
|
|
|
|
iam getting the data from a database and iam storing the data in a datatable in one event and i want this data table in another click event with same values.but the problem is the page is posted back the values are not available in the datatable in another event.any method is there to retains the datatable value as it is even the page is post back with out using the sessions or view state
|
|
|
|
|
Hi,
you can use Caching for that.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
plz tell how could be possible
|
|
|
|
|
Hi,
check this link...
it will help you.
Link1[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
sir is there is another way like page scopping or any thing else caching stores the values in the client side
|
|
|
|
|
Hi,
read this.
link1[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
sir is caching is different from view state and session or the same as of these two
|
|
|
|
|
Hi Dear,
you must have to read all links provided.
You will get ideas from that.
Try it out.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Store it in Session or viewstate. Caching is not a good solution for your scenario.
|
|
|
|