|
Your code is not secure, but I assume from the variable names that this isn't code that will be used in the real world anyhow ?
A kamath wrote: string s = "%S" + TextBox5.Text + "%";
If you type in e, you will search for anything that starts with Se. Turn %S into % and it will work the way you described it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks a million. It is working hurray
|
|
|
|
|
Hi,
I want to have an editable Combobox/ Dropdownlist.
When the dropdownlist gets populated, i should be able to change the text of the items . The dropdown should now store the new edited text.
Does anyone know how to do this?
It's very urgent.
Thanks,
Riz
|
|
|
|
|
You can write javascript to add items to select boxes. IS that what you mean ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
No, i think u have not understood my query.
I want to have a dropdownlist which can be editable. i.e. i want to edit the values of the dropdownlist. Do u know how to do it?
|
|
|
|
|
Hi!
In my application ,startup page is Base.aspx. Base.aspx contains four tabs & an ifrmae. the source of iFrame changes depending upon which tab is clicked. one of tab when clicked of the Base.aspx, then source of iFrame become login.aspx. when valid user is logins, the redirected to BaseTwo.aspx which also contains tabs & a iFrame & source of this iframe changed depending upon tab clicked on BaseTwo.aspx. i want to apply From Authentication in this application. setting web.config is ....
<authentication mode="Forms">
<forms loginurl="login.aspx" path="/" protection="All">
<authorization>
<deny users="?">
now when i run application login page is loaded instead of startup page Base.aspx & also images are not loaded & give some javascript error. when i commented the setting above in web.config file, there is no error & images loaded.
how i apply Form authentication in my application?
Thanks & Regards,
SAMir Nigam,
Software Engineer,
STPL, Lucknow, India.
|
|
|
|
|
I want to know that what`s mean by website cloning.
And how to perform it????
thanks
|
|
|
|
|
A clone is an exact copy. You perform it by writing code to create a website that looks and behaves like an existing one.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I am facing problem of COMException while opening MS-Word files using on Windows Server 2003. I am refering Interop.Word.dll for opening MS-Word files to count the number of words from it.
I am using following API to open the doc files.
Word.ApplicationClass wordApp = null;
Word.Document aDoc = null;
aDoc = wordApp.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, <br /> ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible, <br />ref missing, ref missing, ref missing, ref missing);
aDoc.Activate(); If I deploy above code on Windows 2000 professional then it works without error but if I deploy same code on Windows Server 2003 then I get following exception.
System.Runtime.InteropServices.COMException (0x800A1066): Command failed at <br /> Word.Documents.Open(Object& FileName, Object& ConfirmConversions, Object& ReadOnly, Object& AddToRecentFiles,<br />Object& PasswordDocument, Object& PasswordTemplate, Object& Revert, Object& WritePasswordDocument, <br /> Object& WritePasswordTemplate, Object& Format, Object& Encoding, Object& Visible, <br /> Object& OpenAndRepair, Object& DocumentDirection, Object& NoEncodingDialog, Object& XMLTransform)
Please tell me solution for it.
-- modified at 2:43 Saturday 19th May, 2007
#Abhi#
|
|
|
|
|
Dear Abhi
Have u refer microsoft.office 11.0 library ?
if not then refer it and then try on win server2003
best regards,
koolprasad2003
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
Hi,
Hi i have some values in datagrid that are generating from database.I want to export those datas to flat file.Plz help me.I m working in ASP.net platform using VB.net
Thnks in advance
Jey
Graviton Solutions
|
|
|
|
|
|
how to place image (or) indicate new message arrived in DataGrid like in our codeoroject forum when we post new question it indicates new on that message
came out of hardwork
|
|
|
|
|
Hi there,
IMO, In the event OnItemDatabound...for each row you can append img tag if this is a new message arcording to your point...
<< >>
|
|
|
|
|
i am new to .net can u suggest me any example..so i can manage may self
came out of hardwork
|
|
|
|
|
Check this..hope you can get the idea from the article...
<< >>
|
|
|
|
|
DataGrid[^] Here there are lot of Articles related to your topic.
Regards,
Satips.
|
|
|
|
|
Hi everybody!!!
I use 5 "file field" to choose some files and "save as" to my server folder using ASP.NET. Ex: name of 5 word files choose to save: file0.doc, file1.doc, file2.doc, file3.doc, file4.doc. Use this code :
Dim PathFile As String = Server.MapPath(".") & "\Documents\"
For i as integer = 0 to 4
Dim objFile As HttpPostedFile = Request.Files(i)
objFile.SaveAs(PathFile & "file" & i & ".doc")
Next
All the files (word file) upload successfully into "Documents" Folder in server computer. But when i use Word to open these files to view (use another computer and "save as" it into that computer, or open "Documents" Folder in server computer and open file with Microsoft Word), only the first file with it's data show, but all other files i saw nothing to view, look like all the data in these files disappear. What is happen with these files? Someone help me. Thanks too much. Please contact me at aeriscute@yahoo.com.
Hanh Aeriscute
|
|
|
|
|
Hi everybody!!!
I aslo struck vth da same problem to upload file n open it in the word format ....
actually iam developing " upload candidate profile module ", so i need to upload the CV's of each candidate into my database vth their details(am using SqlServer) after that i need show the details in a datagrid ...
iam struck vth that upload CV only (ive completed upto " details ", iam asking abt only how to upload cv n open in word format ) ...
[ actually my problem is : in my datagrid's CV column ive "open CV" button for every column ...
after clicking "open CV" of particular candidate , i wanna get the CV in word document...]
NARESH
-- modified at 23:55 Friday 18th May, 2007
|
|
|
|
|
Im making a quiz engine that pulls from a problem bank of questions in an access database, I've been able to execute a query and databind to a radio button list. But what if the answer is in the form of a photo, that has also been uploaded. How would i go about this. my next step i think is making a dataset and adapter, so i can loop thrgough and create a new radio item on the fly. Is that my best option? Thanks in advance
|
|
|
|
|
Well i figured out a way, the code blow seems to work.
objDR=Cmd.ExecuteReader()
i = 0
rblAnswer.Items.Clear
While(objDR.read())
i = i+1
If objDR("IsAnswerPhoto") Then
rblAnswer.Items.Add(new ListItem("<img src='/asp/admin/Problem/getQuestionPhoto.asp?ID="& objDR("ProblemAnswerID") & "'>", objDR("ProblemAnswerID")))
Else
rblAnswer.Items.Add(new ListItem(objDR("AnswerText"), objDR("ProblemAnswerID")))
End If
End While
objDR.Close()
MyConn.Close()
|
|
|
|
|
Hi,
I am new to asp.net although not to c# and I need to put together an aspx page that receives data sent to it via a web form using GET.
I can get the sent data OK but I need to use that data to generate a binary file. I can do that OK as well.
The problem I have is I need to serve that generated file back to the requesting server automajically
Can some one explain how I can do that and if possible provide example code OR better still, point me to a tutorial that covers this without over complicating the issue.
Thanks,
-- modified at 21:57 Friday 18th May, 2007
I think I'm getting there The following code partially solves my problem EXCEPT there are two issues - (1) The file being sent includes the text in the aspx page as well as the text in the file and (2) I need to get rid of the prompt to download the file. Here's the code:
<br />
private void SendKeyFile()<br />
{<br />
string root = "C:\\temp\\";<br />
string filepath = root + "debug.txt";<br />
if (!(filepath == null))<br />
{<br />
if (File.Exists(filepath) && filepath.StartsWith(root))<br />
{<br />
string filename = Path.GetFileName(filepath);<br />
Response.Clear();<br />
Response.ContentType = "application/octet-stream";<br />
Response.AddHeader("Content-Disposition", ("attachment; filename=\"" + (filename + "\"")));<br />
Response.Flush();<br />
Response.WriteFile(filepath);<br />
}<br />
}<br />
}<br />
Am I on the right track here?
Glen Harvy
|
|
|
|
|
You would want to send the file in the response stream. You wouldn't have to send it in the header as an attachment. You can send it in the response stream it self.
If you don't want any aspx page stuff in the response, then you need to remove them from your form. No HTML tags, just the very first line <%@Page ... is all you need.
Hope that helps.
Ben
|
|
|
|
|
Thank you very much for this. You have helped me enourmously
Glen Harvy
|
|
|
|
|
I need to know what components to use in visual studio for creating a FORUM!!! sigh:
|
|
|
|