|
I am basically requesting a page from the server without opening it in a browser. The following code works fine, however for some weird reason, if i add parameters to the end of the url (such as: ?ID=2), it gives an error on req.GetResponse.
string url = "http://localhost/radar.net/Administration/main.aspx?id=2";
WebRequest req = WebRequest.Create(url);
WebResponse resp = req.GetResponse();
If it was main.aspx on its own, then it works without errors. Cant i send querystring parameters when requesting a page through this object? Does anyone know why this could be a problem????
ZiggY.
|
|
|
|
|
Standard question #2:
What error message do you get?
---
b { font-weight: normal; }
|
|
|
|
|
This is the error im getting:
Exception Details: System.Net.WebException: The remote server returned an error: (500) Internal Server Error
ZiggY.
|
|
|
|
|
That means that there was an error when executing the page that you are requesting. Browse to the page with the url you are using so that you see the complete error message.
---
b { font-weight: normal; }
|
|
|
|
|
What is the error you're getting? I've used querystring parameters this way without problem. Is it possible the page main.aspx is erroring?
|
|
|
|
|
This is the error im getting:
Exception Details: System.Net.WebException: The remote server returned an error: (500) Internal Server Error
No, im sure there's no error in the main.aspx page. It runs fine if i open a new browser and run the link normally (even with the querystring). Only when i send it as a request through the webrequest object i get an error... how come?
ZiggY.
|
|
|
|
|
ZiggY81 wrote: The remote server returned an error: (500) Internal Server Error
Well, I don't know what to tell you then. The 500 error you are getting is happening on the web server - maybe it is an authentication issue? Do you need to send credentials with your WebRequest?
|
|
|
|
|
I am having a problem with various validators in ASP.NET
If I want to use two validators on one textbox, then i am not able to display the messages at the same place. I am also using a Validation summary control. But if I set the property "visible= false " for a validation control then, validation summary is also not displayed. I want to display the validation summary but not the individual validation control error messages. Please help me out, it's too urgent.
thank you.
|
|
|
|
|
Leave the validation summary visible, set the ErrorMessage properties for your textbox validators to the messages you want, then leave the Text property blank. This should let you display error messages in the summary instead of next to the textbox.
Jmshastri wrote: Please help me out, it's too urgent.
Everything is always urgent. Saying so is redundant.
|
|
|
|
|
your problem states - "If I want to use two validators on one textbox, then i am not able to display the messages at the same place."
set the Display property of each validator message to "dynamic".
-- modified at 1:23 Tuesday 18th April, 2006
|
|
|
|
|
hi,
I want to refresh a page after every 5 minutes automatically. The thing is that i donot want to refresh the whole page, i want to refresh only the gridview on the page (not the other controls like dropdownlist, text box, etc.)
I need to use-Light weight postback only not any other techniques like AJAx etc
if anyone have a code for this in ASp.net 2.0 (c#), please send it to me. i willl be highly greatful to u.
thanx
sandeep
|
|
|
|
|
In order to refresh only the gridview on the page and not other controls.you need to fill the data in gridview through a webservice.call the web service through javascript after the required time interval.
i hope you get the idea.
regards
-- modified at 1:27 Tuesday 18th April, 2006
|
|
|
|
|
i m using the Tabstrip, Tab and Tabseprator by using c# using namespace "Microsoft.Web.UI.WebControls", I want to ask how can we create or Add Tab control to the tabstrip dynamically or through database. Suppose we have a Table TabInfo in the Database say SQL Server. TabInfo tabel have the Coloumn like TabID, TabText, TabTooltip, OnClikUrl, SequenceOrder etc. Now i want to use this table to create the tab. By using this way we need'nt to open the actual file to add new tab statically, the tab will be add by entering the new record in the table dynamically.
Nitin Gupta
-- modified at 9:43 Monday 17th April, 2006
|
|
|
|
|
|
hello,
i want to deploy asp.net application in cd. And want to query database from cd for displaying information to user.
i want help about how to deploy application and how to add database to cd and which will display pages by using database on cd.
vijayendra
|
|
|
|
|
|
After coverting 2005 Web Site Project to 2005 Web Application Project, I got the following errors on all ObjectDataSource:
The type specified in the TypeName property of ObjectDataSource 'odsName' could not be found.
Any help is appreciated.
|
|
|
|
|
|
After I converted to 2005 web application project, the App_Code folder was changed to Old_App_Code. My public class for TypeName property of ObjectDataSource is located on this folder.
|
|
|
|
|
Hi Jim,
Have you gone through this tutorial[^]? Do you compile the project before running? Do you get the error when you build the project after converting or at runtime?
|
|
|
|
|
I exactly followed this tutorial. There is no error when I rebuild the application.
|
|
|
|
|
Your class's now only in the Old_App_Code folder, or you also keep another copy of the class in the App_Code folder? Do you use the IIS or the built-in server to do testing? I have tried converting a web site with a datasource control and a custom business class in App_Code folder, and it's working after the conversion, perhaps my example is much simpler than yours. Are you sure that the output assembly in the bin folder contains your custom business class?
|
|
|
|
|
Hello Gurus!
I am creating a web application in asp.net2.0.In this page i am having a button on whose click event i need to start a mp3 file and on another button's click that file needs to stop.I want to know if .net supports any dll or api for the above.Please help me out in this regard.Any help from u guys will be highly appreciated.
thanks in advance.
|
|
|
|
|
Sounds like flash or javascript and not asp.
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
i want to traverse through a treeview web control and fetch the ID's of all checked nodes.
that is, all those nodes whose checkboxes are checked in a treeview.i want to get their Id's.
can somebody help me.
regards,
|
|
|
|