|
If you are using the ASP.NET 2, you can use the cross-page posting[^] with the LinkButton.PostBackUrl property, and in the second page you can access the checkbox of the first page.
|
|
|
|
|
Hi,
Thats sounds cool.
Does it post the whole page or only the LinkButton?
How do I access it?
Thanks,
Yossi
|
|
|
|
|
It posts the whole page and you can follow the link to see how to get the value/control of the source page.
|
|
|
|
|
Hi,
How do I save an uploaded file to something else? I have it as follows:
fuImage.SaveAs(Server.MapPath("../../images/winery/") + fuImage.FileName);
It uploads the file name as is, lets say it is myfile.jpg. What happens if I want to save the file as mase.jpg. How do I get this right?
Please can someone advise.
Regards,
ma se
|
|
|
|
|
I think i must be missing something in the question, but:
<br />
fuImage.SaveAs(Server.MapPath("../../images/winery/") + "mase.jpg");
|
|
|
|
|
Yes maybe a little bit, irrespective of what the file name and file extension is, I want it renamed. What I do is if I add a winery to the database, it returns the ID, and I want the pic saved as this ID.
|
|
|
|
|
does the above code not work for that?
|
|
|
|
|
Find the image name in the FileName and replace it with your own. Just a simple string operation.
My Blog
|
|
|
|
|
Hi All,
I have a question connect with the build option...
I create website, where I create web user control. (C#) This is working correctly!
Possible create from this .ascx file .dll, which I can use other application or other web site? I can add after this .dll to the toolbox?
If yes, how can i solve this?!
Thank you, your answer and help!
Regards,
Gabor
|
|
|
|
|
Not sure if this will work, but you could try adding a web custom control to your project (essentially a class file) and inherit the user control you have created. This custom control will build down to a dll...
|
|
|
|
|
Thanks, but this is not working!
|
|
|
|
|
You can't do that. At least to my knowledge.
You need to create a Custom Control if you want your control build into a dll and be addable to the toolbox. Since custom controls are created in code, they can be built into a dll. User controls are files that contain HTML tags.
regards,
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
|
|
|
|
|
I search some code on the internet, and found same as you wrote. But I belive, I can solve easiest way web control tool creation...
Thank you for your replay!
I start create custom control....
Thanks again!
|
|
|
|
|
If you are using VS 2005, you can use the Web Project 2005[^] to create a reusable library for web user controls.
|
|
|
|
|
i planning to redevelop my company website which is in old asp...
i never use the Studio.net b4 and now even having problem to start a new project using microsoft studio.net.
I found out that Dreamweaver also can make asp.net which i can easy handle with the interface more easy... any one use it b4?? of is it better to use microsoft studio.net??? or macromedia dreamweave????
|
|
|
|
|
Visual studio, for all it's flaws is an excellent IDE for asp.net, but it is more code oriented, IMHO. If your website is much more layout and little code behind it, then you'd be better maybe with DreamWeaver.
however, if you can't get VS to open a new project for you, maybe you'd be better off investing the money in a few classes first... It's very different from the asp world
|
|
|
|
|
ya, i not sure y cant open the new project for it, since it said web access fail....?? do u know how to make my computer to server so that atleast i can test and do my asp...
|
|
|
|
|
|
|
do u have the resource for the old ASP not asp.net?? casue my company site still in old ASP.
anyone have ebook about how to use dreamweaver to create ASP website???
|
|
|
|
|
Hi Developers
Any good idea about XML Encryption and Decription?
Lets work it Out.........!
|
|
|
|
|
|
Hi,I want to implement case sensitive forms authentication
SQL database .Is it possible ?
If possible please help me.
i am using ASP.NET with C#.
|
|
|
|
|
Hi,
How do I use a validation control with the asp:FileUpload control to check that just gif and jpg files can be uploaded?
I got it like:
<asp:RegularExpressionValidator
id="FileUpLoadValidator" runat="server"
ErrorMessage="Upload Jpegs and Gifs only." ValidationExpression="^(([a-zA-Z] |(\\{2}\w+)\$?)(\\(\w[\w].*))(.jpg|.JPG|.gif|.GIF)$"
ControlToValidate="FileUpload1">
</asp:RegularExpressionValidator>
But how will I check for something else, like file size? I can do a manual check, but I want it to display in a validaton summary control. Can someone please advise me.
Regards,
ma se
|
|
|
|
|
From MSDN :
Security and the FileUpload Control
Using the FileUpload control, users can upload potentially malicious files, including script files and executable files. You cannot limit in advance the files that a user can upload. If you want to limit the types of files that a user can upload, you must examine the file characteristics (for example, the file name extension and the value of the file's ContentType property) after the file has been uploaded.
http://msdn2.microsoft.com/en-us/library/ms227677.aspx[^]
My Blog
|
|
|
|