473,379 Members | 1,539 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

HtmlForm control question for ASP.NET 1.1, SharePoint related

38
Hello all,

I have to write a web part for a SharePoint 2003 server. We only have one SharePoint server, so developing directly on it isn't really viable. So I've planned to do the majority of the debugging using plain old ASP.NET 1.1 on a local machine.

The problem I'm running into is that web parts have a form behind the scenes and you can just add your controls to the pages (parts) Controls collection. Normal Pages do not. Also, (SharePoint) web parts force you to generate all the HTML through code using the RenderPart method. As I'm trying to keep things similar, I'm only using the Render method. Trying to add the server form through code properly hasn't been working for me.

I figured I'd just be able to do a two line comment swap to switch from the forms control to the pages Controls collection when I wanted to, but I can't seem to get it's runat attribute = to server in code. MSDN helpfully doesn't include a members list for the HtmlForm class for framework 1.1 (at least not that I found) and all examples just involve the <form blah> which I can't use.

Does anyone know how to do this?

I think I might be able to find a way around by keeping the <form > thing and doing a find control to get it... but that is even uglier and I don't see why I can't just set the runat attribute in code.

Thanks in advance,

-mwalts
Jul 12 '07 #1
1 1203
mwalts
38
Ok, I realize now that this is the wrong forum to post this is... I want to the Edit/Delete section to try to delete it but couldn't find a delete button. Removing all the Text and trying to save just caused a validation error... oh well, I'll post this again in the .NET forum, hope some admin can delete this for me.

-mwalts
Jul 12 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ken Wigle | last post by:
All, I am trying to add some .net applications I wrote to a virtual directory underneath the sharepoint services web site. I am having some problems and wondering if a) this is possible and/or...
2
by: Shawn | last post by:
Hi. I'm trying to loop through all webcontrols in my System.Web.UI.HtmlControls.HtmlForm. This is my code: Dim form As HtmlForm Dim control As Control form = Me.FindControl("completion")...
14
by: Laser Lu | last post by:
Hello, All, I just want to know that generally how to get the HtmlForm element in an ASP.NET Page? Can anybody help? Please:) Best regards, Laser Lu
2
by: mwalts | last post by:
Hello all, I have to write a web part for a SharePoint 2003 server. We only have one SharePoint server, so developing directly on it isn't really viable. So I've planned to do the majority of...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.