|
Hi Harini,
Its working fine now. Thank u vary much. From morning onwards i tried a lot.
|
|
|
|
|
Ok ... That is good!!
Harini
|
|
|
|
|
Hi,
One more thing, replace the variable searchText as parameter to avoid security (SQL Injection).
Harini N K wrote: cmdSearch.CommandText = "SELECT Vpath, path, FileName, size, write, attrib, Characterization, DocTitle, rank FROM SCOPE('shallow traversal of " + "\"" + "/Software" + "\"" + "') where FREETEXT(contents,'" + searchText + "') order by rank desc ";
This is a good coding practice in any langauge.
Harini
|
|
|
|
|
ok.Thanks for ur suggestion
|
|
|
|
|
i write this code:
javascript:window.open('a.html') i want open a.html with small size how can i set the size of my form in my code?
|
|
|
|
|
use something like this:
window.open (this.href, 'popupwindow','width=1000,height=800');return false;"
|
|
|
|
|
thanks for ur help, thats right i write this for:
javascript:window.open('../a.html','_blank','height=200,width=300,menubar=yes');
and thats right but return an object, do u know where should i write return false?
when i write javascript:window.open('../a.html','_blank','height=200,width=300,menubar=yes');return false;
it give an error "return statement outside of function"
|
|
|
|
|
That should work, where is the code, is it in the c#?
|
|
|
|
|
yes its in c#.
exactly its this form:
cell8.Controls.Add(new LiteralControl("<A HREF=" + "javascript:window.open('../a.html','_blank','height=200,width=300,menubar=yes');return false;" + " <span style=" + "font-size:9pt;" + "></span>??? ????? ???</A>"));
and thast error is :return statement outside of function
|
|
|
|
|
|
hey any one can help me in making a list box control as muliple columns.
with this code its looking nasty.
UserList.Items.Add(pcon.dr1(0) & "|" & pcon.dr1(1) & "|" & pcon.dr1(2))
|
|
|
|
|
I was told before I think on this forum that you can't put two columns in a listbox control, I think you can join two different listboxes together but you cant use two columns in one
|
|
|
|
|
www.codeproject.com/KB/webforms/MCEnhancedListBoxControl.aspx
hey in above exapmle i want to assign a datareader to get list box items.
and when transfering like in above page can i transfer datavaluefield ? there i can transfer only selected text only. i want to transfer datavaluefield also can any one suggest.
|
|
|
|
|
I thought it was already taken the datavalue field because it is using lstBox.SelectedItem.Value.ToString();
|
|
|
|
|
hi
i am using rich text format in our project
and want to store data in html format
hi every body
but at storing time its taking some spical charcter
<p>hi</p><p><font color="#ff0000"><strong>every boby</strong> </font></p>
if any one know plz help me
thanks
krishna veer singh
|
|
|
|
|
I don’t know your exact requirement. May be you are looking for the Server.HtmlDecode function.
|
|
|
|
|
acctully i wamt to store data in html format
becoz when i retrive this data it will shown in formated way
krishna veer singh
|
|
|
|
|
hai
my code:
Response.Clear();
Response.AppendHeader("Content-Disposition","attachment; filename=" + filename);
Response.AppendHeader("Content-Length", filename.Length.ToString());
Response.ContentType = "text/plain"; //if pdf file "application/pdf"
string strMapPath = Server.MapPath("~FolderName/filename);
FileStream fs = new FileStream(strMapPath, FileMode.Open,FileAccess.Read, FileShare.ReadWrite);
long bytesToGo;
int bytesRead;
Byte[] buffer = new byte[1048576];
bytesToGo = fs.Length;
while (bytesToGo > 0)
{
bytesRead = fs.Read(buffer, 0, 1048576);
Response.OutputStream.Write(buffer, 0, bytesRead);
Response.Flush();
bytesToGo -= bytesRead;
}
fs.Close();
Response.End();
my problem is downloaded file .sql file[size:4mb], which was not fully downloaded, it partially downloaded.i.e the download file doesn't show the full content it shows only 10 or 15 lines.
if anyone known about this,help me
Thanks in Advance
Known is a drop , Unknown is an Ocean
|
|
|
|
|
Can you explain a bit more your problem, what do you mean by
ganeshMohan wrote: my problem is downloaded file .sql file[size:4mb], which was not fully downloaded, it partially downloaded.i.e the download file doesn't show the full content it shows only 10 or 15 lines.
Whats the code above for, is it from the downloaded file?
Where are you downloading the file from?
|
|
|
|
|
Try Response.WriteFile or Response.TransmitFile .
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
|
|
|
|
|
wild guess, isn't problem in this line:
Response.AppendHeader("Content-Length", filename.Length.ToString());
where you are saying that content of the response is as long as length of the filename?
Pilo
|
|
|
|
|
basically my page has 10 controls, and is there javascript to validate these, meanwhile AjaxToolkit:autoCompleteExtendender is there for some controls, in this case javascript shows the error "Object does't support this method" (Javascript error), Is there anything wrong with these...
can any one help me?
Thank you
DVSR Murty
|
|
|
|
|
hmm..there is nothing wrong in using javascript in AJAX enabled aspx pages...also as you are using AJAX u may be rendering only a part of the page and for that if javascript has to be enabled u have to use ScriptReference
eg:
<asp:scriptmanager id="SampleMngr" runat="server">
<scripts>
<asp:scriptReference path="SampleScript.js" />
</scripts>
</asp:scriptmanager>
.....
.....
|
|
|
|
|
|
hi
friends few days back i have posted the question of cross browser compatibility got answers too (sending only the part of html which browser supports)
sorry to ask again
I am having 4 table each with 4 textboxes and 4 labels
on the next button click i am hiding one table and showing second
Now these things work rite in I.E please suggest how to make it working in Firefox..?
i am struck with these .... please please tell me how to solve it
i know this is a hectic question for people who have worked on these things many times still i am desperately waiting for replys
Thank You
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|