|
James Spibey wrote:
I have a local application which stores data (locally) in an access or SQLServer database.
Which one? If you have SQL Server as your source you could create a DTS package to grab information and push it out to another source.
Nick Parker
|
|
|
|
|
How do you create page templates? Do you use the old fashioned #include to bring in headers and footers, or create user controls that contain aggregated user controls and HTML for your headers and footers, or do you rely on CodeBehind and inject headers/footers before/after the Rendering?
cheers,
Chris Maunder
VC++ - the language that doesn't say 'no'
|
|
|
|
|
I've used the user control method.
|
|
|
|
|
That's a really good question. I have just started building my own site and have designed a quite pretty default.aspx with three web controls (header, footer, and navigator), all arranged with tables. Now I am confronted with the same problem. How to keep all pages consistent? I thought of using plain vanilla #include s, but still didn't come to a decision
Regards
Thomas
Sonork id: 100.10453 Thömmi
Disclaimer: Because of heavy processing requirements, we are currently using some of your unused brain capacity for backup processing. Please ignore any hallucinations, voices or unusual dreams you may experience. Please avoid concentration-intensive tasks until further notice. Thank you.
|
|
|
|
|
I've decided to use the old fashioned #include method to keep things neat and simple
cheers,
Chris Maunder
|
|
|
|
|
Is there anyone who know how to inport excel files into an database with ASP.NET.
Thanks!!
Morten
|
|
|
|
|
You would use ADO.Net with a special driver for connecting to an Excel spreadsheet and then make another connection to a real database and shove the stuff in there.
David Stone
dstone@newcenturytitle.com
MEEKNESS, n. Uncommon patience in planning a revenge that is worth while.
The Devil's Dictionary, Ambrose Bierce
|
|
|
|
|
I want do some action in HTML and it auto close window, somebody can help me??
thanks!!!
|
|
|
|
|
to close the window just put "self.close();" in.
e.g.
<script language="Javascript">
alert('hello world!');
self.close();
</script>
|
|
|
|
|
I have variable in parent window, can use it in child window???
whats a code???
--- my code here in HTML
<script language = javascript>
var s;
s = inputtext(); // function I have
</script>
create one Window; // child window
--- code in child window
<script language = javascript>
document.write('Hello ' & s);// s is variable in parent window
</script>
can send s (variable) to child window??
I was try the code, but it have problem that s isnot define.
please help me!!!
|
|
|
|
|
How did you expect it to get there ? Magic ?
If your child window is called child.asp, then open it like this:
child.asp?s=27
although s is a poor variable name.
Now in the child you can set s to = <%Request.QueryString("s")%>, in otherwords, get VBScript to read it off the URL and set the javascript variable with it.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
|
|
|
|
|
You can use the "opener" property to access the parent window.
ciao.
- SONORK ID 100.17421 : b0nu$ -
|
|
|
|
|
My web service uses ITC,
<webmethod()> Public Function DownloadHtml() As String
Dim s As New InetCtlsObjects.Inet()
s.AccessType = InetCtlsObjects.AccessConstants.icUseDefault
s.Protocol = InetCtlsObjects.ProtocolConstants.icHTTP
Dim url As String = "http://www.yahoo.com"
s.URL = url
Dim m As String
m = s.OpenURL(url, InetCtlsObjects.DataTypeConstants.icString)
Do Until s.StillExecuting = False
Loop
DownloadHtml = "result=" & m
End Function
I always get an empty string as result. What did I do wrong?
|
|
|
|
|
I have a web service setup as:
<webmethod()> Public Function DownloadHtml() As String
Dim s As New InetCtlsObjects.Inet()
s.AccessType = InetCtlsObjects.AccessConstants.icUseDefault
s.Protocol = InetCtlsObjects.ProtocolConstants.icHTTP
Dim url As String = "http://www.yahoo.com"
s.URL = url
Dim m As String
m = s.OpenURL(url, InetCtlsObjects.DataTypeConstants.icString)
Do Until s.StillExecuting = False
Loop
DownloadHtml = "result=" & m
End Function
But I always get an empty stringas result. What did I do wrong?
|
|
|
|
|
I read in a book on ASP that it's good to develop your asp
web using IIS and SQL Server but:
-I can't install SQL server on Windows XP
-When I create a project with Interdev running on Windows XP
platform, Visual Interdev can,t connect with Web Server(I
have already install IIS and test it).
Please Help Me
|
|
|
|
|
Make sure you configured Front Page Server Extensions for IIS. And yes, you can install SQL Server on XP, but you'll have to use SQL Server Developer Edition.
Andy Gaskell, MCSD MCDBA
|
|
|
|
|
I hate Interdev as well. What a pile of crap. I write ASPs in VC++, it gives me some syntax highlighting without being intrusive to the point of being unuseable.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
|
|
|
|
|
I have two XP machines running SQL Server 2000 with no problems. I've also used VID on the same platform with no problems (other than what it comes with).
As suggested check your server extentions. Which version of SQL Server are you trying to install?
|
|
|
|
|
Problem Statement:
My requirement is to access a web page over the internet and parse the complete Web Page (HTML) content returned by the web-site
Current Approach:
Does .Net provide any re-usable components or classes for achieving the same?
I have currently used the System.Net namespace functions provided by .Net namely HttpWebRequest, HttpWebResponse and HttpWebClient to retrieve the HTML content from the URL accessed. The content returned is stored in a stream object and then converted to a string to parse each HTML element and attribute. The parsing also identifies all links on the page (and converts it to the absolute path), all images (which is downloaded), any javascript code and any includes like ".js" , ".jpeg", ".css" files. The end result obtained is a replica of the web page accessed. All this has been done programmatically.
Drawback of the approach:
It is a very tedious approach since the string containing the HTML code needs to be parsed and stripped into elements, attributes, links, includes, images etc.
It is not effective as far as performance is considered since the logic involves content crawling and downloads.
My Question:
Are there any better approaches to meet the requirement - may be something like re-usable HTML parsers or Web page content parsers already available or pre-defined classes/libraries in .Net?
Smitha Puranik
|
|
|
|
|
Hello everyone!!
Can we clear the browser cache using javascript or html code? If yes then how?
Even a single bit of help will be appretiated.
waiting for the help,
Nita Agarwal.
|
|
|
|
|
|
if you know C# in Windows Form instead of Web Form you know that when you want to pass data from one window to another you only have to make something like this :
Dialog2 dlg = new Dialog2();
dlg.label1.Text = this.text1.Text;
now I want to make the same thing but in web form
I have a form login in asp.net and if the user enter the correct username and password I want to access to the main page(the one after the login) and show his name in a label.
how can I do this ??
Source will be appreciate or reference
thanks
|
|
|
|
|
somewhere in your login.aspx page you would redirect user to your main page...
Response.Redirect("main.aspx?name=BLaZiNiX");
... in your main page in Page_Load(...)
label1.Text = Request.QueryString["name"];
Mike M
WinInsider.com
|
|
|
|
|
I have a pop up menu on my site. I have it built and have running. When you click on a menu option a submenu pops up.
What I am having problems with is once the menu is open it will not go away, unless you click another menu option that has a sub-menu. I have found many menu setups on the net, but none seem to address this issue
Is there any way that when I click on the browser window elsewhere it hides the submenu? I thought I saw an onclick event in the tag, but I have not been able to get that to work, or find it any where else.
Don't argue with idiots,
They drag you down to their level,
and beat you with expereince.
|
|
|
|
|
Hmm, I used the onclick event of the body and it worked... Check your code again, it should work. You can try to make a timer also, so menu disapears after some time passed
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|