|
I don't know what you mean - what is binary and you want it converted ?
Response.Write or Response.BinaryWrite are probably part of the solution, but I don't know what the problem is.
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 )
|
|
|
|
|
string txt = "a text string";
System.Text.Encoding encode = System.Text.Encoding.ASCII;
byte[] myByteArray = enc.GetBytes(txt);
i convert the string to binary with this code. and now i want write myByteArray in stream. ????
|
|
|
|
|
This is a waste of time.
Response.Write("a text string") will work just fine.
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 )
|
|
|
|
|
Hello friends
I am using Modal Popup control in my aspx page...its working fine
I want to redirect the page to another page when the Ok button is clicked
I tried with writing click event ...result ..!
I tried with writing postback url result ....!
please tell me how to do this
thank you
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
I think BASE tag to indicate the operations should work on the same window should apply right?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Currently i m using ASP.NET with C# (.net 2005, 2.0 framework)
Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename=test.doc");
Response.Charset = "";
Response.ContentType = "application/vnd.doc";
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
DataGrid123.RenderControl(htmlWrite);
Response.Write(stringWrite.ToString());
Response.End();
The above coding i used to EXPORT data datagrid to excel.
The same i did for TEXTBOX to MS-WORD like.........
Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename=test.doc");
Response.Charset = "";
Response.ContentType = "application/vnd.doc";
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
txterrorbox.RenderControl(htmlWrite);
Response.Write(stringWrite.ToString());
Response.End();
But i m getting error "Control 'txterrorbox' of type 'TextBox' must be placed inside a form tag with runat=server."
Note : The textbox is placed inside the form tag and assigned runat=server
how to export the TEXTBOX content to an MS-WORD document?
how to achieve it? - KARAN
modified on Monday, May 5, 2008 7:02 AM
|
|
|
|
|
Karan_TN wrote: Note : The textbox is placed inside the form tag and assigned runat=server
I doubt that. Note, the error is talking abuot a different textbox to the one you are trying to read from.
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 )
|
|
|
|
|
sorry chris... pardon....
right now i have changed the line properly.
actually i checked all.
coding is right.
but this error is pop-up'ing.......
help me.............
|
|
|
|
|
Well, I've not seen yuor aspx, so I can only assume the error message is correct. Or, it's a weird error coming from malformed aspx code.
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 )
|
|
|
|
|
How can I set a ’timer’ that my aspx-page will refresh every 30 seconds?
_____________________________
...and justice for all
APe
|
|
|
|
|
Only one way, by writing javascript that sets off a timer and redirects the page to itself
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 )
|
|
|
|
|
|
In html header add the following tag
then that page will refresh in every 30 seconds.
smile
|
|
|
|
|
I got this:
Response.AddHeader("Refresh", "30");
_____________________________
...and justice for all
APe
|
|
|
|
|
Currently i m using ASP.NET with C# (.net 2005, 2.0 framework) and SQL Server 2000 Database.
How to implement "thread" concept? And i like to LOCK a integer value or a function, in my program so that this value function should not reflect in database by other users or this function should not use by another person until one person finish is process (First Come First Serve), (since nearly 100 users may access my program). how to implement this... help me.... - KARAN
|
|
|
|
|
Karan_TN wrote: How to implement "thread" concept?
What do you mean ? You can't use threads in a web app, it makes no sense at all.
Karan_TN wrote: And i like to LOCK a integer value or a function, in my program so that this value function should not reflect in database by other users or this function should not use by another person until one person finish is process (First Come First Serve), (since nearly 100 users may access my program). how to implement this... help me....
If you mean during a single transaction, use transactions. If you want to lock records, then you need to build soemthing into your DB or via the session, to store data before it gets written to the table that it will end up in ( from which, it will propagate to all users )
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 )
|
|
|
|
|
<blockquote class="FQ"><div class="FQA">Karan_TN wrote:</div>How to implement "thread" concept?</blockquote>
I don't think that you are looking for a thread synchornization mechanism. Are you ?
|
|
|
|
|
thanks for u r reply navaneeth... actually i want to secure a function so that only one user should access it (FIFO)... i thought it can be achieved by this mechanism......
guide me to achieve my goal..
thanks for understanding ............. - KARAN
|
|
|
|
|
hai,
i am using ,
first input button click event it is post to action url.but the second button do the same action.
but i want to redirect "Default.aspx" page is it possible? it is possible send code to me....
Thanks to All....
|
|
|
|
|
sugunavathysubramanian wrote: but i want to redirect "Default.aspx" page is it possible? it is possible send code to me....
Is this in ASP.NET ? To redirect that button click to other page, put that inside another form with action as your required page.
|
|
|
|
|
You can do a cross page postback to redirect with a post.
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 )
|
|
|
|
|
i donot know about this .send code to me..
Thanks to You.
|
|
|
|
|
sugunavathysubramanian wrote: send code to me..
I doubt. Why don't you do a search with the hints he given ? Or get a beginer book and work with that.
|
|
|
|
|
Hi,
I have added radion buttons dynamically using RadionButtonList control. am facing small problem. Radio buttons appears with line border. How to remove the border? below is the code I tried but no result.
ListItem li = null;
if (dvForDisplay.Count > 0)
{
rdb = new RadioButton();
rdl = new RadioButtonList();
panelRechargeOptions.Controls.Clear();
for (int i = 0; i < dvForDisplay.Count; i++)
{
li =new ListItem();
li.Value = dvForDisplay[i]["RadioButtonId"].ToString()+i.ToString();
li.Text = dvForDisplay[i]["RadioButtonText"].ToString();
li.Attributes.Add("onClick", "javascript:AmountToCharge('" + li.Text + "','" + strQuoteCurrency + "');");
li.Attributes.CssStyle.Value = BorderStyle.None.ToString();
rdl.Items.Add(li);
rdl.RepeatDirection = RepeatDirection.Horizontal;
rdl.Style.Add(HtmlTextWriterStyle.BorderWidth, "0px");
panelRechargeOptions.Controls.Add(rdl);
}
}
|
|
|
|
|
hi
check this , i hope this will work
li.Attributes.CssStyle.Add("border", "0");
Rajeev Kr. Sharma
VRI Software Pvt.Ltd.
New Delhi India
HumOnline.com
Stay Connected
|
|
|
|