|
You're writing C# code. This code is running on the server. It's not going to show anything. I recommend doing some reading on ASP.NET. The short version - the client sees nothing until the page lifecycle ends.
Yes, you can do something if you show your div in javascript before making an AJAX call.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi
I have the following code;
<asp:sessionparameter name="Id" sessionfield="ViewState['id']" type="String" xmlns:asp="#unknown" />
Is this the correct syntax to put a viewstate into a sessionfield because at the moment no information is showing
Sorry forgot to tick ignore html tags
We are not a Code Charity
|
|
|
|
|
Where is the code !!! ???
Thanks,
Arindam D Tewary
|
|
|
|
|
i want earn mode of 0 div 2. how can i do in c#?
|
|
|
|
|
Can you say that again in english please?
We are not a Code Charity
|
|
|
|
|
The % is the mod symbol.
31 % 2 == 1
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
The modulus operator in C# is the % symbol
int i = 5 % 2;
|
|
|
|
|
A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)
Never Think That You Have Failed Instead Always Think That u hav Better Chance Next Time...
|
|
|
|
|
The reason could be network problem or your Db server is down !!!!
Thanks,
Arindam D Tewary
|
|
|
|
|
Try typing the error message into google. you will find people who have had the same problem as you before
http://www.google.co.uk/search?hl=en&q=A+transport-level+error+has+occurred+when+sending+the+request+to+the+server.+&btnG=Google+Search&meta=
We are not a Code Charity
|
|
|
|
|
Hello Friends.
I m using a treeview in update panel with some triggers and proerties explicitly call and set.
here the problem is " The first click on any of the treeview nodes is not working instead from second click onwards its functioning properly.
If anyone has a solution to this or has faces the similar kind of problem the please help me out with some usefull explanation.
The code i used is as below.
<asp:UpdatePanel runat ="server" ID="upExplorer"
UpdateMode=conditional RenderMode=block
ChildrenAsTriggers =true
EnableViewState =true >
<ContentTemplate >
<asp:TreeView ID="trvExplorer" runat="server"
PopulateNodesFromClient =false
EnableClientScript =false
Width="100%"
OnTreeNodePopulate="PopulateNode"
ExpandDepth=1
Font-Names="Tahoma"
Font-Size="8pt"
Height="100%"
ForeColor="Black"
oncontextmenu="ShowContextMenu(0);">
<NodeStyle HorizontalPadding="4px" />
<SelectedNodeStyle BackColor="LightGray" />
</asp:TreeView>
</ContentTemplate>
<Triggers >
<%--<asp:AsyncPostBackTrigger ControlID ="trvExplorer" EventName ="SelectedNodeChanged" />
<asp:AsyncPostBackTrigger ControlID ="gvItems" EventName ="RowDataBound" />
<asp:AsyncPostBackTrigger ControlID ="gvDocument" EventName ="RowDataBound" />
--%>
</Triggers>
</asp:UpdatePanel>
Thanks in advance.
Regards
Hasan.
|
|
|
|
|
Can only suggest try putting it in If(!IsPostBack) or change the event to TreeNodeExpanded...?
"Sex is not the answer, it's the question and the answer is yes"
|
|
|
|
|
Can anybody tell me how to retrieve a image from ms access 2003 and bind it to image control.. i hv retrieved image successfully in a new page. But want to bind it to Image control.
My code is as following :
Uploading to Ms access // This code works fine
Dim intImageSize As Int64
Dim strImageType As String
Dim ImageStream As Stream
intImageSize = File1.PostedFile.ContentLength
strImageType = File1.PostedFile.ContentType
ImageStream = File1.PostedFile.InputStream
Dim ImageContent(intImageSize) As Byte
Dim intStatus As Integer
intStatus = ImageStream.Read(ImageContent, 0, intImageSize)
Dim MyConnection As New Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("\MyDataBase.mdb") & "")
Dim MyCommand As New Data.OleDb.OleDbCommand("INSERT INTO Images (ImageType,ImageData) VALUES (@ImgType,@img)", MyConnection)
Dim prImageType As New Data.OleDb.OleDbParameter("@ImgType", 255)
prImageType.Value = strImageType
MyCommand.Parameters.Add(prImageType)
Dim prImage As New Data.OleDb.OleDbParameter("@img", 255)
prImage.Value = ImageContent
MyCommand.Parameters.Add(prImage)
MyConnection.Open()
MyCommand.ExecuteNonQuery()
MyConnection.Close()
Retrieving Images from Msaccess
Dim MyConnection As New Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("\MyDataBase.mdb") & "")
Dim MyCommand As New Data.OleDb.OleDbCommand("Select * from Images", MyConnection)
MyConnection.Open()
Dim myDataReader As Data.OleDb.OleDbDataReader
myDataReader = MyCommand.ExecuteReader()
' myDataReader = MyCommand.ExecuteReader(CommandBehavior.CloseConnection)
Do While (myDataReader.Read())
'Response.ContentType = myDataReader.Item("ImageType")
'Response.BinaryWrite(myDataReader.Item("ImageData"))
Loop
MyConnection.Close()
Thanks..
|
|
|
|
|
I think it is always better to store the file location of the image rather then the actual image itself in the database
We are not a Code Charity
|
|
|
|
|
You write a http handler that takes the id of the image on the URL, reads it from the DB and streams out it's bytes. Then you use URLs pointing to that handler for the URL of your image control
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
CG is absolutely correct i too did it in the same way
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
Anybody here know of a decent RTF to PDF converter for an ASP.Net C# WebApp? I need to generate a pdf from an rtf document without using word or a printer.
GhostScript can give me the PostScript, but even converting that requires a printer.
|
|
|
|
|
There are plenty about:
http://www.google.co.uk/search?hl=en&q=RTF+to+PDF+converter+for+an+ASP.Net+C%23&btnG=Search&meta=
try this one:
http://www.dot-net-search.com/c%23+code+for+converting+rtf+to+pdf/"
We are not a Code Charity
|
|
|
|
|
I need something that does not leave a watermark either. Thanks for the reply though.
|
|
|
|
|
Ah ok, sorry then I dont know, good luck
We are not a Code Charity
|
|
|
|
|
Thanks Anyway again! If I get this sorted, I will be sure to post a reply on the subject.
|
|
|
|
|
Still no solution to this problem and it is getting to be a real stress factor!!!
while(breathing)
{
eat();
sleep();
drinkbeer();
code();
drinksomemorebeer();
}
|
|
|
|
|
I want to access a folder from another system and i have used the ip address to map.
But i am unable to access the folder from my system.
I have used the code like
string Path="http://172.16.3.65/CustomPub-XML/CommomIndexes/CuPubIndex";
Does anybody know the solution.
Here the CustomPub-XML is a web shared folder and inside that i have two folders.
VanithaVasu
|
|
|
|
|
What error do you get?
You may not have the correct rights to access the system
We are not a Code Charity
|
|
|
|
|
Hi i am using ajax calendar..,
In that i like to enable present week dates only ...,
and it have to enable up to present date only...,
It mean example in this month dates:
1/6/2008 to 7/6/2008
8/6/2008 to 14/6/2008
15/6/2008 to 21/6/2008
22/6/2008 to 28/6/2008
29/6/2008 to 5/7/2008
And today date is 24/6/2008...,
So my calendar 22/6/2008 to 24/6/2008 dates only can enable true..,
all other dates have to enable false...,
how to do that...,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
modified on Tuesday, June 24, 2008 4:48 AM
|
|
|
|