|
Hi
I was using HttpWebRequest and HttpWebResponse in .NET
It was working fine. my problem begins when i have to use
HttpsWebRequest and HttpsWebResponse in .NET
Please help me.
Thanks in advance.
|
|
|
|
|
sumit7034 wrote: my problem begins when i have to use
HttpsWebRequest and HttpsWebResponse in .NET
What problems are you facing?
Best wishes,
Navaneeth
|
|
|
|
|
Dim httpurl as string 'This is my http base url for which i have to create webrequest
Dim tmpURLConnectionOpenView As HttpWebRequest = CType(WebRequest.Create(httpurl), HttpWebRequest)
''''''''''''Set Cookie in header for Getting Xml
tmpURLConnectionOpenView.Headers.Item("Cookie") = CookieValue
Dim tmpBufferedReaderOpenView As StreamReader
tmpBufferedReaderOpenView = New StreamReader(tmpURLConnectionOpenView.GetResponse.GetResponseStream())
Dim ReturnedXML As String = ""
ReturnedXML = tmpBufferedReaderOpenView.ReadToEnd()
tmpBufferedReaderOpenView.Close()
Now in httpurl I am using https based url and now the above code does't work
|
|
|
|
|
I require to develop a project based on crawling which can basically search as a normal search engine but instead of getting output as URLs i need the Data inside the URLs to be Generated as a file which has all the data to be pasted in it.
Is there anyway of Extracting the Google Search...
|
|
|
|
|
Google uses the URL like http://www.google.com/search?q=search-term[^]. You can construct this kind of URL with your own search term and send a request. You will get all the search results as string. Use a regular expression to identify hyperlinks from this and send request to each link separately to extract it's contents.
Best wishes,
Navaneeth
|
|
|
|
|
How can You extract Contents from a URLs
nayansharma1@gmail.com
|
|
|
|
|
Can a java application call a WCF service?If Yes can any one help me how to do it?
I have created a WCF service in .net .
I have simple java application.
I want to use WCF service in Java application..
|
|
|
|
|
It should be possible based on how you are exposing the WCF service. If you expose it over HTTP, you should be able to consume it from any application/any platform.
|
|
|
|
|
Thank you for replying.
But I want to know how to read WCF service in Java application.
|
|
|
|
|
When you expose your WCF service over HTTP you will be able to extract WSDL and Reference map for your service. You can use it in your JAVA application just like any other classic web service's WSDL and configure it to consume the same.
My experience is close to 0 on JAVA so I'm not in a position to help you with the details.
|
|
|
|
|
Make your WCF service able to return a wsdl and confirm that on the Java application side.
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 8:50am.
|
|
|
|
|
Hi!
I have a Gridview that contains a TextBox that displays a Date and a Button. How can I get the Date from the TextBox and Assign it to a DateTime Property so that I can pass that to another function?
Illegal Operation
|
|
|
|
|
You need to use Casting.
Get that textbox by FindControl() method of GridView, cast it, you'll get its text property.
|
|
|
|
|
I have fixed the issue.
Basically I changed the DateTime Property to static.
Thanks for the reply's...
Illegal Operation
|
|
|
|
|
Its good that you fixed the issue.
But IMO, static variables are not too good in web applications. If possible, try to use something else, maybe a Session Variable.
|
|
|
|
|
Thanks for that tip. I will look into using session variables in the future. I did add this variable to my Data Access Layer so its not in my web application at the moment.
Illegal Operation
|
|
|
|
|
I have an ASP.Net Page using C# and I am getting this error:
No value given for one or more required parameters.
Here is my code. Any help would be appreciated.
<asp:HiddenField ID="hidfld1" runat="server" />
<br />
<asp:HiddenField ID="hidfld2" runat="server" />
<br />
<asp:AccessDataSource ID="AccessDataSource1" runat="server"
DataFile="~/App_Data/mail.mdb"
DeleteCommand="DELETE FROM Email WHERE ((Email = ?) OR (Email IS NULL AND ? IS NULL))"
InsertCommand="INSERT INTO Email (Email) VALUES (?)"
SelectCommand="SELECT Email FROM Email WHERE (Email = ?)">
<SelectParameters>
<asp:Parameter Name="Email" Type="String" />
</SelectParameters>
<DeleteParameters>
<asp:Parameter Name="Email" Type="String" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="Email" Type="String" />
</InsertParameters>
</asp:AccessDataSource>
Code:
protected void Page_Load(object sender, EventArgs e)
{
hidfld1.Value = Request.QueryString["Email"].ToString();
hidfld2.Value = Request.QueryString["ACT"].ToString();
if (hidfld2.Value == "S") AddRec();
else DelRec();
}
protected void AddRec()
{
try
{
AccessDataSource1.InsertParameters["Email"].DefaultValue = hidfld1.Value;
AccessDataSource1.Insert();
}
catch (Exception ex)
{
lblError.Text = ex.Message;
}
}
protected void DelRec()
{
try
{
AccessDataSource1.DeleteParameters["Email"].DefaultValue = hidfld1.Value.ToString();
AccessDataSource1.Delete();
}
catch (Exception ex)
{
lblError.Text = ex.Message;
}
}
}
|
|
|
|
|
|
Hi all
I use two RequiredFilledValidator and a button in LoginPage .
When i press the button an error occured that the message is:
"Microsoft JScript runtime error: 'WebForm_PostBackOptions' is undefined"
What is your ideas about this problem?
|
|
|
|
|
|
Ive created a pretty big ASP.NET app which does financial calculations and the like. It worked fine all the way through development. What I failed to try during dev though was what would happen with more than one set of values. It breaks down to a treacle like speed. Now up till now, the dedicated server that I tested it on, ran it MUCH faster than running it in VS2008. But then it all changed, and now its slow as hell. Its a set of 5 AJAX update panels which each run according to what you press. Now as far as I can tell, the code is executing pretty speedily, but what slows it all down is the transfer of that to the client browser(maybe why it runs faster locally?).
So, is it possible that every time one of my updatepanels(all set to conditional with children as triggers) is updating, that it is also resending all the data in the others?
Thanks.
P.S. I know this is very vague, but theres far too many factors to be able to post one block of code :-/
Strive to be humble enough to take advice, and confident enough to do something about it.
|
|
|
|
|
If you are using the Microsoft AJAX UpdatePanel, or any derived from it, then yes, it is sending far to much data in the postback. Although only the one portion of the page is being refreshed, it still follows the typical page lifecycle, to a certain extent at least.
You can try using PageMethods or other more direct Ajax methods.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I think if you use updatepanel everything else in the page will need to send back to the server doesn't matter they are in the same update panel or not. use web service to refresh data will be better?
Still a newbie.. learning
|
|
|
|
|
|
Hi,
I am trying to add a validator callout extender programtically within a control class.
The textbox and submit button are showing, but no callout appears when the textbox is left blank.
Any ideas?
Thanks, James
//add textbox
TextBox textbox = new TextBox();
textbox.Text = (string)value;
textbox.ID = "NameField";
Controls.add(textbox);
//add required field validator to textbox
RequiredFieldValidator req = new RequiredFieldValidator();
req.ErrorMessage = "Please enter a name";
req.ControlToValidate = textbox.ClientID;
req.Display= ValidatorDisplay.None;
req.ID = Guid.NewGuid().ToString();
Controls.Add(req);
//add update panel
UpdatePanel updatePanel = new UpdatePanel();
updatePanel.UpdateMode = UpdatePanelUpdateMode.Conditional;
//add submit button into update panel
Button button = new Button();
button.Text = "Save";
button.ID = "SubmitButton";
updatePanel.ContentTemplateContainer.Controls.Add(button);
// add trigger into updatepanel that is fired from button
AsyncPostBackTrigger trigger = new AsyncPostBackTrigger();
trigger.ControlID = button.ClientID;
updatePanel.Triggers.Add(trigger);
Controls.Add(updatePanel);
|
|
|
|