|
i have a column in my database with the type ntext ;
when i enter in this column a few Unicode charecters(150 charecters) and show that's works good
but when i entered in it the large number of charecters (for exam 700 chars) show me "?" instead of Unicode charecter
how can i solve it ?
With Thanks
MHF
-- modified at 6:31 Friday 6th October, 2006
|
|
|
|
|
You have to find out where the problem really is. The database field is capable of storing the characters, so it's either when you store the value, when you retrieve the value, or when you display the value that the problem is. Check the actual data before and after each of those stages.
---
b { font-weight: normal; }
|
|
|
|
|
Ok but why when i add the small text as same there isn't any problem ?
MHF
|
|
|
|
|
It has most likely nothing to do with the size of the text, but rather the contents of the text.
---
b { font-weight: normal; }
|
|
|
|
|
Hi! there is a data grid having 3 rows. back color of first row is red, back color of second row is green & back color of third row is blue. i want onmouseover the back color of an row become yello & onmouseout backcolor of row become previous color i.e. row restore its backcolor. how it possible?
samir
|
|
|
|
|
try this
http://authors.aspalliance.com/Colt/Articles/Article3.aspx
Thomas
|
|
|
|
|
hello
i have upload a zip file now i want to extract the zip file in my application.
how can i do it with asp.net
thanx
|
|
|
|
|
Hi,
I am Ravindra,learning ASP.net.
I created a webusercontrol and made a drag and drop on a webform but I dont know how to move the webusercontrol(.ascx) on a webform to place it correctly.So,if anybody knows please help...
thanks in advance.
Ravindra
|
|
|
|
|
Try This
write on aspx page:
<%@ Register TagPrefix="uc1" TagName="ConvertDt" Src="ConvertDt.ascx" %>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<uc1:ConvertDt id="ConvertDt1" runat="server"></uc1:ConvertDt>
</form>
</body>
write on .vb page:
Imports DtConverter.ConvertDt
create instance of usercontrol:
Dim ab As New ConvertDt
through ab you access method of usercontrol
Aashutosh kumar
-- modified at 6:16 Friday 6th October, 2006
|
|
|
|
|
|
i want save data in new folder named according to different users.
so how can i create new folder at run time in asp.net with c# according to username.
dcjoshi2
|
|
|
|
|
Dim myFolderName as String = "c:\myfolder"
System.IO.Directory.CreateDirectory(myFolderName)
plz covert it into c#
|
|
|
|
|
string myFolderName = @"c:\myfolder";<br />
System.IO.Directory.CreateDirectory(myFolderName);
|
|
|
|
|
I have developed a web application in which i create some temp files in a temp directory with in appdomain's current directory.
What i want to do is to delete all these files when application starts?
Accordingly i have placed code in Application_Start event of Global.asax file. When i run application through IDE then all temp files get deleted. But when i access the application straight away by typing the url in web browser then it doesn't deletes temp files.
How can i solve this problem?
Thnx in advance
Praveen
|
|
|
|
|
Is it possible to add any code or html in a web page to disable the "Save" ,
"Save As" in the File menu and "Source" option in the view menu of a web
browser. I already have code that disables the right click on a page but I
would also like to disable the View Source and Save/Save As option in the
top menu of the browser. I have tried looking on MSDN's website but I have
not been able to find anything because it is so much info on it.
Sathiyaraj Ganesan
|
|
|
|
|
I have heard of code that does parts of that in some browsers. There is however no code that will do that on all browsers, and there is no code that will cover all the other possibilities to view the source code. You can easily circumvent anything like that by simply using another browser, disable Javascript, get the file from the cache folder, or use some other program to request the page.
What do you have in the source code that you think is worth protecting anyway?
---
b { font-weight: normal; }
|
|
|
|
|
I think you do not need to do that because someone always can get the source as long as the page is accessable from internet.
|
|
|
|
|
Hi
Sorry for re posting
But still i am trying this
I am trying to inserting EMP time like Entering And leaving time in office
Now i want to calculate like this
EX:
---
Time1 = EnteringTime - BreakTime
Time2 = BreakTime - LeavingTime
TotalTime = Time1 + Time2
---------------------------------
Time1 = 9:00 am - 2:00pm (Result : 5 hours)
Time2 = 3:00pm - 6:00pm (Result : 3 hours)
TotalTime = Time1 + Time2 (Result : 8 hours)
---------------------------------
Plz Can any one give me an Idea On this
THX
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
hi
datetime time1 = convert.Convert.ToDateTime (entering time);
datetime break = convert.Convert.ToDateTime (break time);
TimeSpan span1 = break.Subtract(entering time);
datetime break = convert.Convert.ToDateTime (break time);
datetime time2 = convert.Convert.ToDateTime (leaving time);
TimeSpan span2 = leaving time.Subtract(break time);
timespan total = span1.add(span2);
try this u'r problem will be solved
cheers
vijay
|
|
|
|
|
HI
THX For Reply
I got it
THX
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
hi
iam storing binary format of the images in db.Now i want to display them on my page with other details.Actually my db table contains many fields .on datagrid iam displaying twofields like eno,ename...and i have taken two link buttons (view and modify)view is to view the full details of the particular employee.when the user click the view link the details will be shown in new seperate window(target=_blank).here my image are displaying properly for all the records.My problem is with modify link.when user click the modify link iam displaying all the details for modification in nxtpage(target=_self). .here my image is not displaying properly.first time for accessing the record it is displaying the image properly.if i am going for another record for modification it is showing only the previous image.if iam refreshing the page then only it is showing the particular image properly how to rectify this problem.whether i have to clean browser cache for every request.If yes how?
// here is my code
private void Page_Load(object sender, System.EventArgs e)
{
int Eno;
Eno = int.Parse(Request.QueryString.Get("eno"));
try
{
if (!Page.IsPostBack)
{
SqlConnection conn = new SqlConnection(ConfigurationSettings.AppSettings["strConn"]);
SqlCommand cmd = new SqlCommand("select ENO,ENAME,GENDER,EDOB,EAGE,EDOJ,ESALARY,EPHONE,EADDR,EPHOTO from register where ENO="+ Eno +"",conn);
SqlDataReader dr;
conn.Open();
dr = cmd.ExecuteReader();
dr.Read();
Employno1.Text = dr[0].ToString();
Employname1.Text = dr[1].ToString();
string Gendervalue = dr[2].ToString();
Gendervalue=Gendervalue.TrimEnd();
//Response.Write("|" + Gendervalue + "|");
if (Gendervalue.Equals("male"))
{
RadioButton1.Checked = true;
RadioButton2.Checked = false;
}
else
{
RadioButton2.Checked = true;
RadioButton1.Checked = false;
}
//string exdate = dr[3].ToString();
Employdob1.Text = dr[3].ToString();
Employage1.Text = dr[4].ToString();
Employdoj1.Text = dr[5].ToString();
Employsalary1.Text = dr[6].ToString();
Employphno1.Text = dr[7].ToString();
Employaddress1.Text = dr[8].ToString();
// Create a new stream to load this photo into
FileStream stream = new FileStream("c:/inetpub/wwwroot/Project1/personimage2.bmp",FileMode.OpenOrCreate,FileAccess.Write);
BinaryWriter bw = new BinaryWriter(stream);
byte[] buffer = new byte[stream.Length];
buffer = (byte[])dr[9];
bw.Write(buffer);
bw.Close();
stream.Close();
Image1.ImageUrl="http://new4/Project1/personimage2.bmp";
dr.Close();
conn.Close();
}
}
catch(Exception ex)
{
Response.Write(ex.Message);
}
}
thanks
vijay
|
|
|
|
|
hi
may ur problem solve tht link so use and get
http://www.programmingknowledge.com/ImageUpload.aspx
use
to show image on page
Response.BinaryWrite(imageData);
dcjoshi2
|
|
|
|
|
Does anyone know if there is a .net version of PHPMyAdmin but more for MS SQL databases ?
Basically I'm looking for an open-source web-based database management tool.
|
|
|
|
|
|
Check the Sql Server Management Studio Express
keep Learning and you never will be out of date...
|
|
|
|