|
Try by providing the style value...
<asp:textbox textmode="MultiLine" id="TextBox1" style="overflow: auto;" xmlns:asp="#unknown">
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
|
|
|
|
|
width =95% might not work
Better create a class in your css and add CssClass='createdClass' to your TextBox
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
Fix the text box control's width in pixels not in percentage. It will solve your issue.
Either you love IT or leave IT...
|
|
|
|
|
Hi,
How to Encode or Encrypt the whole url in address bar , if anyone knows plz answer me..
Example:
http://www.abc.com/script/Forums/first.aspx?id=10
the above url is my sample url i wanted to be like this,
http://www.abc.com/Encrypted values
kannak
|
|
|
|
|
Hi, you can use my function
Private _bitEncrypt As Byte()
Public Function EncryptQueryString(ByVal queryString As String) As String
_bitEncrypt = ASCIIEncoding.ASCII.GetBytes(queryString)
Dim encryptedQueryString As String = Convert.ToBase64String(_bitEncrypt)
Return encryptedQueryString
End Function
Public Function DecryptQueryString(ByVal queryString As String) As String
_bitEncrypt = Convert.FromBase64String(queryString)
Dim decryptedQueryString = ASCIIEncoding.ASCII.GetString(_bitEncrypt)
Return decryptedQueryString
End Function
ex:
encryptquerystring(your path or web address)
Hope this one can help.
Thanks
Hi, Please select Good Question if my answer are fit to your Question.
|
|
|
|
|
Hi,
Thanks for responding me, but am getting error, i was used the code like this as follws,
In Page first there is a link button , if i click the link btn second page will be loaded.
In First page,
private sub LinkButton_click()
Dim strQ As String = EncryptQueryString("aspxsecond.aspx")
Response.Redirect(strQ)
end sub
Public Function EncryptQueryString(ByVal queryString As String) As String
_bitEncrypt = ASCIIEncoding.ASCII.GetBytes(queryString)
Dim encryptedQueryString As String = Convert.ToBase64String(_bitEncrypt)
Return encryptedQueryString
End Function
but i am getting error like, The resource cannot be found.....
kannak
|
|
|
|
|
|
|
you cant encrypt the web server name, as it should be hit to process. The only thing that you can do is to hide the rest part.
You can take the help of some servers which provides tinyurls, which may in some extent hide the server name as well. Try tinyurl to get custom urls.
|
|
|
|
|
Have I not answered this before ? You use a httphandler to do this.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
hi,
I need to create a chart using crystal reports. I searched on google and I found tutorials on creating reports using crystal reports but they don't focus on charting.
I tried to create a chart myself but the problem is that I couldn't create a bar chart between a string field and an int field.
(ex: Features on X axis and The total number of usage on Y axis)
Somehow the chart calculates the count of the second field so the actual field values are not displayed.
Can someone help me out?? There are not enough tutorials on the web...
|
|
|
|
|
Dear All,
i m using Oracle 9i database with C# Asp dot net. Scenario is i m executing both DELETE and INSERT command Consecutively whenever user click the button, the record delete from table and insert new records at the same time.
now my problem is what, if delete process has been completed successfully or at the time of deletion the Network down or any Exception occurs then i want recover (ROLLBACK) all records and go to previous condition.
how can i do that?
NOTE : i m using PLSQL command not Stored Procedure.
Regards,
MF
|
|
|
|
|
|
hi,
I hvae created a web user control dropdownlist in a .ascx file.Then I dragged it into a .aspx file.It is showing the items of dropdownlist.But I can't get the selected item value in .aspx page.How can I get it?
regards,
Bill
|
|
|
|
|
Hi, you must have public property to get the value of your U.C. dropdownlist.
example: public str as string = ddl.selecteditem.value
Hope this one can help.
Thanks
Hi, Please select Good Question if my answer are fit to your Question.
|
|
|
|
|
Hi,
Follow the given link:
http://www.daniweb.com/forums/thread141469.html
Either you love IT or leave IT...
|
|
|
|
|
Just write a Public Property in .ascx file.
For example :
public string GetSelectedValue
{
get{return DropDownlist1.SelectedValue;}
}
ARINDAM
|
|
|
|
|
Hi, I have developed an web page.In which there is a textbox for date entry and the entry format is dd/MM/yyyy.
Somewhere in my code I am converting this textbox value to datetime.e.g:
Datetime myDt=Convert.ToDateTime(textbox1.Text);
This works fine in my local PC.But when I uploaded this page on server it threw the following error:
"String was not recognized as a valid DateTime".
Can anyone help me out!!
Thnaks and regards
ARINDAM
|
|
|
|
|
ARINDAM1981 wrote: Datetime myDt=Convert.ToDateTime(textbox1.Text);
This works fine in my local PC.But when I uploaded this page on server it threw the following error:
"String was not recognized as a valid DateTime".
What input are you giving for the text?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
the input in my text is exactly as the following
16/04/2009
ARINDAM
|
|
|
|
|
ARINDAM1981 wrote: the input in my text is exactly as the following
16/04/2009
if the input is same for both case check the date time settings on server, weather it is dd/mm/yyyy or mm/dd/yyyy.
I will suggest you to use DateTime.Parse() and use Current Culterinfo for the convertion.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
create the date column in Datetime type....
eg create table tablename(date datetime)
|
|
|
|
|
nithydurai wrote: create the date column in Datetime type....
eg create table tablename(date datetime)
What is the relation between the Question and your answer?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
i think u are create the date column in string format....
|
|
|
|
|
Hi, try this
textbox1.text = string.format("{0:G}",datetime.now);
or visit this
http://codeincsharp.blogspot.com/2008/05/different-date-format-in-c.html
Hope this one can help.
Thanks
Hi, Please select Good Question if my answer are fit to your Question.
<div class="ForumMod">modified on Tuesday, April 28, 2009 3:07 AM</div>
|
|
|
|