|
I am pretty sure you don't want that to be in the javascript block. It is an html command. You also need a url. So something like:
<META HTTP-EQUIV="refresh"
content="3;URL=http://www.yoursite.com/yourpage.aspx">
Hope that helps.
Ben
|
|
|
|
|
I have created one very simple web service say helloWorld which accepts one string and concate with "Hello" word.and its located in my localhost only.
Here is some behavour with it.
(1) i can access this web service synchronously without an issue.like
Dim webServ As New localhost.Service
Response.Write(webServ.HelloWorld(TextBox1.Text))
(2)now i am trying to call it asynchronously. Like this
Dim ar As IAsyncResult = webServ.BeginHelloWorld(TextBox1.Text, Nothing, Nothing)
While (True)
If ar.IsCompleted Then
Exit While
End If
End While
Response.Write(webServ.EndHelloWorld(ar))
(3) Now this code is executes file on the other machine i have ,but is not been able to call on my machine.I am receiving following error on the execution of above code.
The attempted operation is not supported for the type of object referenced
" at System.Net.Sockets.Socket.get_ConnectEx()
at System.Net.Sockets.Socket.BeginConnectEx(EndPoint remoteEP, Boolean flowContext, AsyncCallback callback, Object state)
at System.Net.Sockets.Socket.UnsafeBeginConnect(EndPoint remoteEP, AsyncCallback callback, Object state)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)"
System.Net.WebException = {"Unable to connect to the remote server"}
(4) i done long googling but could'nt get the exact solution.
(5) I also tried by removing my framework 2.0 ,visual studio 2005 and IIS as well.
(6) Some blogs says its network error,i also tried by repairing my network drivers but problem persists as it is.
(7) Some blogs also suggested that i do have third party network protocols and that may causes the blocking of Http Request for async. call.then i also removed all such softwares from my machine,but the same result.
I am very frustated with this issue and hampered my development.
Any kind of help is most welcomed.
lots thanks in advance.
|
|
|
|
|
Hi,
I work with Database Firebird 2.0 and try to implement in ASP.NET with C#
a checkbox in Webform, GridView and DetailView.
Why Firebird/Interbase has no bool-Field I use a Char(1) Field for
"T" or "F".
Now I don´t know how to convert and code to show in Checkbox.checked
Thanks for Help
Rudolf Terppe
|
|
|
|
|
U can check that,
If result = "T" then
checkbox.checked = True
ElseIf result = "F" then
checkbox.checked = False
Thanks,
Sun Rays
|
|
|
|
|
good afternoon,
Can we write regular expression to check string with words separated by particular character like dash or underscores only.
For ex.
jhgh_ghg_hgfhtj_hghjghj_hghg
Please guide.
Thank you.
yog
hui gfgh kgdgrt njjn hjgkn
|
|
|
|
|
|
Hi,
to insert or update the value of a textfield into
a BLOB-Field of a Firebird Database the error
conversion error from string "BLOB" comes
<asp:insertparameters>
...
<asp:parameter name="MEMO" type="string">
the type string is not correct. Error
the same I implemented in .NET
insCmd.Parameters.Add("@MEMO", FbDbType.Text, 80, "MEMO");
it works well.
the problem is the type="string" of ASP.NET
how can I convert it?
But if I select MEMO from Database I can see in GridView type="string"
I need help
Thanks from germany
Rudolf Terppe
|
|
|
|
|
u can Trim the string wchich you are getting from Database.
so it will not display extra space..
Thanks,
Sun Rays
|
|
|
|
|
Hi! i have taken one datagrid & filled data basing on the query mentioned in the OLEDBDATAADAPTER wizard from Data Tab in the Toolbox.No problem its working.Bt the problem is
"i want to fill the data in datagrid basing on some condition like
//where branchid="textbox1.text" //
Please suggest me ....
how to make query in oledbdataadapter wizard...to fill data basing on condition
Neelima
|
|
|
|
|
I would go ahead and leave all the data in the DataTable. Then you can take the DataView from the DataTable and filter it.
So in C# it would be:
DataView dv = yourDataTable.DefaultView;
dv.RowFilter = "branchid = " + textbox1.Text;
vb.net
dim dv as DataView = yourDataTable.DefaultView
dv.RowFilter = "branchid = " + textbox1.Text
Then when you set your datasource and your datagrid you set it to the dv var you have created. Then do a DataBind on the datagrid.
The only other option is to pass a parameter into your command object to limit the rows coming back from the database.
Hope that helps.
Ben
|
|
|
|
|
good afternoon
How to import contacts from Yahoo, gmail,hotmail in ASP.NET, C#
please give the steps to implement.
Thank you.
yog
hui gfgh kgdgrt njjn hjgkn
|
|
|
|
|
did u find the solutuion for import contact in .net ? I am struggling with the same.
Lemme know if you have found smthng
|
|
|
|
|
good afternoon
How to import contacts from Yahoo, gmail,hotmail in ASP.NET, C#
please give the steps to implement.
yog
hui gfgh kgdgrt njjn hjgkn
|
|
|
|
|
hi friends good morning
i am using radajax control.when i am draging any rad control on page then this error is come out:-
attempted to read or write protected memory.this is often an indication that other memory is corrupt
please help any one if possible
Piyush Vardhan Singh
Programmer
TAS NewDelhi
9313077379
|
|
|
|
|
Piyush Vardhan Singh wrote: i am using radajax control.
What is it ?
Piyush Vardhan Singh wrote: i am draging any rad control on page then
From where are you trying to drag it ?
On which Page ?
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
In which location,objects created with new keyword are stored.Is it stack or Heap.Can anyone tell the differences between them.
|
|
|
|
|
|
can u tell the differences between stack and heap
|
|
|
|
|
|
1.All Value Types Stored in :Stack
All Reference Types Stored in Heap.
2.Stack Examples: int,double etc
Heap Example : Objects,Strings,class,interface,array etc
3.Value type variables contain Actual Value and Reference Type variables contains Address of memory location...
|
|
|
|
|
Hi,
How do i send an email from a mail server at a specified time or with a time delay.
how can i set the time parameter in a MailMessage class?
Kindly help me.
Thanks,
Dhina
|
|
|
|
|
|
I guess the simplest would be to write an .exe, which you can then schedule using task scheduler...a slightly more elegant approach would be to code up a windows service (that's how I've done it in the past)...or alternatively, you can schedule SQL server jobs to run at a specific time...
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi all,
I am generating an image on the fly and I am trying to prompt the user to save this image on their drive.
Response.ContentType = "image/gif";
bmp.Save("C:\\signature.bmp", ImageFormat.Bmp);
Response.Clear();
Response.AppendHeader("Content-Disposition", "attachment; filename=signature.gif");
Response.ContentType = "image/gif";
Response.Write(bmp.ToString());
Response.End();
bmp.Dispose();
the dialog pops open but when I save the file it generates a file but its no the image its an empty object. How do I prompt the user the save dialog for this bitmap?
any ideas??
thanks
|
|
|
|
|
Hi all please help me
Im getting the errors
Control 'ctl00_ContentPlaceHolder1_GridViewTopMembers' of type 'GridView' must be placed inside a form tag with runat=server.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Control 'ctl00_ContentPlaceHolder1_GridViewTopMembers' of type 'GridView' must be placed inside a form tag with runat=server
I wrote the code below:
GridViewTopMembers.Visible = True
Dim CallTopMembers As TopMembersList = _TopMembers.TopMembersMonthFebruary(TopNumber, StartMonth, StartYear)
GridViewTopMembers.DataSource = CallTopMembers
Response.Clear()
Response.AddHeader("content-disposition", "attachment;filename=FileName.xls")
Response.Charset = ""
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.ContentType = "application/vnd.xls"
Dim stringWrite As System.IO.StringWriter = New System.IO.StringWriter()
Dim htmlWrite As System.Web.UI.HtmlTextWriter = New HtmlTextWriter(stringWrite)
GridViewTopMembers.DataBind()
GridViewTopMembers.RenderControl(htmlWrite)
Response.Write(stringWrite.ToString())
Response.End()
Sarfarj Ahmed
|
|
|
|