|
could not do it with hidden field either.
can you please help me with the codes for hidden field .
what i did is
on server side
filenames.Value=(string)Request.QueryString["filename2"];
i am getting the value of Request.QueryString["filename2"]. But
getting the error like
System.NullReferenceException: Object reference not set to an instance of an object.

|
|
|
|
|
|
I am creating template columns at run time without using any control in item template .
But my requirement is to apply css on it. Css will put background image in this template column at runtime.
How can i do it.
Regards,
kamran
|
|
|
|
|
if i understand the problem :$
Panel panel = new Panel();
panel.Width = new Unit(100, UnitType.Percentage);
panel.Height = new Unit(100, UnitType.Percentage);
panel.CssClass = "css_class";
Height property may give you X browser problems.
hope that helps
g00fy
|
|
|
|
|
I want to execute a process on a client machine from a web page.
Like a batch file.
I tried it but it gives permission exception which is understandable.
But is there a way to execute a process on client system?
|
|
|
|
|
Simple answer is no. Would you want any webpage to be able execute a process on your system?
|
|
|
|
|
A way around it is to code up an OCX and let that do the work. Because it's installed, it's like a local app, and therefore has the correct priviledges
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
I agree, just the way microsoft and some anti-virus sites do.
I can install an exe on the client system and then that client exe will do everything.
But the issue is how to make that exe work when we r on that site.
There has to be a communicartion between the exe and site.
If you are not clear what i said let me know.
|
|
|
|
|
no no - not an exe - an ActiveX control (ocx / dll)...
Then you can embed it on the page with the object tag, and access all public properties and methods.
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
I would like to put a HyperText field in my table that presents the "Name" field from my SQL database as its text but links to http://www.SomePage.aspx?id=[ID Field from selected row].
How would i achive this ?
Thanks.
|
|
|
|
|
template the column and use an asp:HyperLink and set its NavigateUrl and Text properties in your markup. or through the bindings dialog of the control.
regs,
g00fy.
|
|
|
|
|
But how do I go about getting the NavigateUrl to = the ID field of that row?.
i.e how do i format the contents of it so it doesnt just read it as an unformatted part of the URL?
What im looking for is the text I should use in the NavigateURL field/source to set each rows hyperlinkg field to the output ID retrived from from the database...
If you catch my drift ?
|
|
|
|
|
<asp:Hyperlink NavigationUrl=<%# Container.DataItem, string.format("{0}?id={1}}, "name", "id") %>
This isn't correct code but it should give you the idea.
-- modified at 11:21 Thursday 13th July, 2006
|
|
|
|
|
There are a couple of properties of the HyperLinkField class which you may want to check out: DataTextField, DataTextFormatString, DataNavigateUrlFields and DataNavigateUrlFormatString.
For more information, see HyperLinkField Members [^]
|
|
|
|
|
hello
i'm not able to find the "Web site identification tab" in My Application Properties Window in IIS Manager.
plz tell me the solution thanx
|
|
|
|
|
What property are you looking for?
|
|
|
|
|
hello
i want to set Host Header Names property.
i'm following these steps
In IIS console, open the properties for the web site that you want to
handle the names. In the "Web Site Identification" section there is an
"Advanced" button, that will open a window where you can add identities
for the site. The "Host Header Name" is where you put the subdomain
names.
or u can see on this link
http://support.microsoft.com/default.aspx?scid=kb;en-us;308163[^][^]
thanx
|
|
|
|
|
Hi all
Does anybody know how to code/create .net web apps and setup IIS with dynamic urls eg http://???.domain.com . An excelent example is http://yourname.youaremighty.com. just change "yourname".
Thx
|
|
|
|
|
I would say that most people here do know how to create .net web apps, I'd highly recommend an ASP.net book like ASP.NET 2.0 Step By Step by George Shepherd (isbn: 0-7356-2201-9). Also with a domain X.Y.com X is a subdomain of Y they aren't called dynamic urls, dymanic would infer that there is so sort of fluidity or creation at run-time, neither of which is the case. However, first you need a domain name (youaremighty.com) and a host. Your host will have some sort of control panel for you to configure some things and one of those options is probably creating subdomains, your host probably has a limit you make though.
|
|
|
|
|
Hello there
I'm building an application that will allow users to upload files to an online file manager of sorts. I've chosen to store the files in a database and so far I'm satisfied with the solution. However I've encountered a problem with the file upload. I'm using the built in file upload in asp.net 2.0.
I would like to warn the user that a file with that name already exists and prompt a popup with an Ok(to overwrite) and Cancel(abort upload). This is the classic client/server side problem though I guess, but even if I've looked around for a solution for a while I have not found any. And I'm sure I'm not the first with this problem.
Any suggestions/links on how to solve this?
Regards
Christer Claesson
|
|
|
|
|
The way i achieve this is to use my asp:message box (a custom control) and return a warning to the user, because the control is server based i can act on the events at the server and not have to rely on javascript, the other way is just to rename the file (and, if you choose) maintain a mapping in your database. the mapping is extra overhead and not really required unless you must have the filename they uploaded.
regs,
g00fy
|
|
|
|
|
Thank you for your reply.
This custom control, is it open source and avaliable for others? Due to space issue I would like to overwrite files and not store double(or more) copies of each file.
Regards
Christer
|
|
|
|
|
it is still in beta, but will be available soon for a small cost.
the other option you have is to do a quick if(File.Exists()) { } and if true then display a button on the page that confirms the overwrite of the file. This way on the first postback you could upload the file and name it like ~filename.ext. If the answer is no then either force them to click a No button and delete the temp file or just delete it on next file upload and check. the latter option would require maintaining a list of files to be deleted, else you could have concurrency problems if this is a multi user application.
regards,
g00fy
|
|
|
|
|
can you use css in web user control? if yes how can i link the css with the webusercontrol?
|
|
|
|
|
you can use GetWebResourceUrl() and embedd the css in the assembly
then you create a HttpLink and set its href attribute to the GetWebResourceUrl(typeof(this), "path_to_resource.css")
regards,
g00fy
|
|
|
|