I would like to know how to programmatically (c# or vb.net) insert a header in IIS. Users of my site must be able to choose a domain eg. usersite.mysite.com and this must be added to the header file. Any ideas would be greatly appreciated. Thanks.
Sorry, I didn't make myself clear enough, I've sorted the issue of uploading the file, I'm now saving it as binary in an image field in my sql2k table. However, when I try to download it to the client (browser), having set the content-type and content-length, and using binarywrite(), I always...
Hi, can someone show me how to upload a file (not image) to a sql2000 database, preferrably into an ntext or text field, and then how to display that file to the client browser without getting a popup message asking the user if they want to open or save the file.
Thanks so much.
I have 2 applications, and would like users to be authenticated in the one if logged in to the other. I've set both apps web.config settings for authentication and machinekey to be identical, and as far as I've read, that's all that's needed, however it's not working, I'm still being asked to...
Hi, does anyone know how to set a text label for a datagrid pagerstyle, eg. I have the following outputted for numeric paging:
1 2 3 4
and I want the following 'Page:' label before the page values:
Page: 1 2 3 4
Thanks for any help.
I've built a .NET application in which I ensure that every connection to the dbase is closed immediately after use. While running the app, the connections in the dbase increase continually until all the pooled connections are used. I then get timeout errors from the app as follows:
Error...
BTW, this is like a news feed, and it's a file either on an ftp server or normal web server. If anyone's got any examples on checking a file's datestamp on an ftp/web server, that'd be great. Thanks.
I'm needing to download an xml file (sometimes with .asp extension) but only if it's been updated since the last download. How do I check the file's lastwritetime or creationtime like one can do with a local file?
I've got a parent window that has a few texboxes and a dropdownlist.
The user inputs text in the textboxes and then clicks a button to add a new item to the already populated dropdownlist.
Clicking on the button pops up a child window. Here the user adds a new item to the database.
And this is...
I've just tried to dynamically create a table per record (instead of a user control which holds the table), but the same happens when I click a button, the entire table disappears even though I've got enableviewstate enabled on the table. Help! What should I do now?
I have one button. A user control is loaded per record, it holds pricing details for a part and there could be a few different pricing formulas for one part, therefore a few usercontrols for one part. The user changes the data in the textboxes of the user controls and clicks the one button to...
Yes please, more help if you can...
What I'm doing loop through records and create a usercontrol per loop. The usercontrol is a table containing textboxes and labels.
The textbox values (usercontrol properties) will be changed by the user, after which they click a button. I need to update those...
I've finally figured the previous question out, but if you could help me with the following:
I've the following code that dynamically creates controls per record found (while sreader.read).
Now that I've got my controls on the page, I'm struggling to access their properties. Any ideas?
Dim...
Hi, me again.
I've got a web usercontrol and wish to use it a few times on a page.
I realise I can't drag it onto my page and use:
Protected WithEvents myControl as MyUserControl
because I need it to be named differently for each instance of it, right?
So how would I create/access this...
I really appreciate the time you take to explain things to the simpleton like me. Thanks, it does make sense, clears it up, and willdefinitely help in what I'm trying to do. I'm sure I'll be back with more though, so until then, again, thank you.
Thanks so much Mark, that's exactly what I was trying to do. I do find it tough to get my head around the object oriented way of thinking.
If you would let me know how to access the control's value from the cell, as I'm going to have many of the same controls repeated in different tables and...
I'm creating an html table using stringbuilder
eg.
Dim sTable as New StringBuilder
sTable.Append("<table><tr><td>")
sTable.Append("</td></tr></table>")
I need to put an <asp:textbox></asp:textbox> control in this table's cell. How do I do this?
The reason why I'm using...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.