15,900,110 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by oliver grace (Top 57 by date)
oliver grace
22-May-14 6:02am
View
Variable does not have fadeOut() menthod.you cant use fadeout()method to var.
oliver grace
13-May-14 8:31am
View
post your (design) .aspx page code
oliver grace
8-May-14 3:25am
View
you can use update panel in your design part(.aspx page) to avoid post back.
oliver grace
8-May-14 3:18am
View
you can campare fields with the help of dataset or datatable.Then you can bind datatable in gridview.
oliver grace
8-May-14 3:13am
View
You can use xml file to store your data.
oliver grace
6-May-14 6:31am
View
show your code to us.
oliver grace
30-Apr-14 3:17am
View
Hi Accept Solution
oliver grace
30-Apr-14 2:50am
View
change int to varchar in sql also
oliver grace
30-Apr-14 1:46am
View
still you are getting input string error or some other error?
oliver grace
30-Apr-14 1:41am
View
objParamater = objDataAccess.NewParameter();<br>
objParamater.ParameterName = "@id";<br>
objParamater.DbType = DbType.Varchar;//change int to varchar<br>
objParamater.Direction = ParameterDirection.Input;<br>
objParamater.Value = id;<br>
objArrayList.Add(objParamater);
also change parameter int to string
oliver grace
30-Apr-14 1:36am
View
what value you are passing through DDLAieee.selectedItem.value.
oliver grace
30-Apr-14 1:34am
View
ok what value you are passing
oliver grace
30-Apr-14 1:32am
View
Check your DDLAieee.selectedItem.value must be in integer type.
oliver grace
5-Feb-13 0:08am
View
I am working on XSLT.
oliver grace
2-Feb-13 7:11am
View
have u heard about namevaluecollection try to use this to get it...
oliver grace
2-Feb-13 7:10am
View
in your second form call response.redirect within that write your previous form name and checkbox.checked,
this will redirect your checkbox value to first form. call this in first form pageload.
then u will get it........
oliver grace
2-Feb-13 6:56am
View
Hi what query u passed for this....
and try to call city method also in pageload
oliver grace
2-Feb-13 1:14am
View
Try this,
dt1.columns.contains("null")
otherwise try to call this in
dt1=dt1.columns.remove(dt1.columns.contains("null"));
if (dt1.Rows.Count > 0)
{
GridView1.DataSource = dt1;
GridView1.DataBind();
oliver grace
25-Sep-12 2:51am
View
inside update panel
oliver grace
25-Sep-12 1:51am
View
I declaring like this only but chkbox.items[i].selected always shows me false.
oliver grace
12-Sep-12 2:07am
View
Thank a lot genius....
oliver grace
22-Aug-12 6:22am
View
Thanks a lot genius........
oliver grace
16-Aug-12 1:00am
View
this url works fine when encrypt my file.when i decrypt my file getting error like bad data.
error:
System.Security.Cryptography.CryptographicException: Bad Data.
oliver grace
6-Aug-12 6:14am
View
hi, I have added my code here:
http://www.codeproject.com/Questions/435183/how-to-set-large-file-set-in-asp-net
oliver grace
6-Aug-12 5:46am
View
still I have same error :
ERROR: Object reference not set to an instance of an object
oliver grace
6-Aug-12 5:07am
View
<httpruntime maxrequestlength="20480" executiontimeout="600">
I have tried httpruntime but i am getting this error.
ERROR: Object reference not set to an instance of an object.
oliver grace
1-Aug-12 7:37am
View
using ASP.NET I have created application.when i upload any file in that that should be stored into sharepoint document library.
protected void btnUpload_Click(object sender, EventArgs e)
{
SPSite mySite = SPContext.Current.Site;
SPWeb myWeb = mySite.OpenWeb();
UploadDocument(myWeb);
}
public void UploadDocument(SPWeb site)
{
if (FileUpload1.HasFile)
{
SPFolder folder = site.GetFolder("Bill");
SPFileCollection files = folder.Files;
Stream fStream = FileUpload1.PostedFile.InputStream; //path of the file to upload
byte[] contents = new byte[fStream.Length];
fStream.Position = 0;
fStream.Read(contents, 0, (int)fStream.Length);
fStream.Close();
string Filename = FileUpload1.FileName;
string URL = SPContext.Current.Site.Url + "/Bill/" + Filename;
SPFile currentFile = files.Add(URL, contents);
}
}
oliver grace
1-Aug-12 7:32am
View
thanks for your reply but i want to upload my document in sharepoint document library.is there any other way..
oliver grace
31-Jul-12 6:10am
View
Is share point 2010 already has document management system or have to install DMS Seperatly.
oliver grace
31-Jul-12 5:53am
View
can you provide code for this.
oliver grace
31-Jul-12 5:52am
View
i too using windows authentication but i dont know how to connect report builder to aspx page.when i run my report builder it working fine.i want to run this in visual stdio.
oliver grace
30-Jul-12 7:40am
View
how to avoid $ symbol
oliver grace
30-Jul-12 7:34am
View
one issue date M/d/yyyy like this coming i cannot see my date
oliver grace
30-Jul-12 7:21am
View
Execellent...got the answer.Thank you
oliver grace
27-Jul-12 7:33am
View
is this thing possible in stored procedure..
oliver grace
27-Jul-12 7:24am
View
then how to retain existing table id value
oliver grace
27-Jul-12 7:16am
View
name,address i am getting fine except id ...
new id's generating for existing table data's
oliver grace
27-Jul-12 7:03am
View
BUT HERE I AM NOT GETTING EXISTING TABLE Id values
oliver grace
27-Jul-12 6:49am
View
EXCELLENT THANKS A LOT.....
oliver grace
27-Jul-12 6:14am
View
ok and once again thank you so much
oliver grace
27-Jul-12 6:04am
View
Error like this:
-----------------
Msg 271, Level 16, State 1, Line 4
The column "Id" cannot be modified because it is either a computed column or is the result of a UNION operator.
Caution: Changing any part of an object name could break scripts and stored procedures.
oliver grace
27-Jul-12 5:59am
View
I tried this but its not working..
CREATE TABLE TestTable2
(
srlNo int NOT NULL
IDENTITY(1, 1),
Id varchar(100),
Name varchar(50) NULL,
Addres varchar(100)
)
ON [PRIMARY]
go
CREATE TABLE TempTable2
(
Identifier int NOT NULL
IDENTITY(1, 1),
Id as 'test'+cast(Identifier as varchar(100)),
Name varchar(50) NULL,
Addres varchar(100)
)
ON [PRIMARY]
go
SET IDENTITY_INSERT TempTable2 ON
go
IF EXISTS ( SELECT *
FROM TestTable2 )
INSERT INTO TempTable2 ( Id, Name,Addres )
SELECT Id,
Name,
Addres
FROM TestTable2 TABLOCKX
go
SET IDENTITY_INSERT TempTable2 OFF
go
DROP TABLE TestTable2
go
Exec sp_rename 'TempTable2', 'TestTable2'
oliver grace
27-Jul-12 5:46am
View
but i cant get like that
oliver grace
27-Jul-12 5:44am
View
yes
oliver grace
27-Jul-12 4:28am
View
for integer id its working fine...when i use varchar for id getting problem.
oliver grace
27-Jul-12 0:33am
View
existing table i have id varchar(100) how to set identity for id
oliver grace
27-Jul-12 0:01am
View
using stored procedure can we do this concept in single table ?
oliver grace
26-Jul-12 8:01am
View
same identity concept not working for id with varchar value
oliver grace
26-Jul-12 5:47am
View
can we set varchar id to auto generic
oliver grace
26-Jul-12 5:24am
View
my old table srlno is identity now i created ID id identity can i get both identity in a table...
oliver grace
26-Jul-12 5:13am
View
Thank you Very mach... i got the answer
oliver grace
26-Jul-12 4:45am
View
Where is the dbo.Names table are you already created this table
oliver grace
26-Jul-12 4:35am
View
Thank you...But my requirement is when i alter a table old column data also i need....is there anyother way.
oliver grace
26-Jul-12 4:31am
View
Thank you for your reply ..in this approach i can't retain the existing data..
when i alter a table i want to have my existing data also...is there anyother way.....
oliver grace
21-Jun-12 23:59pm
View
Amitgajjar thanks for your link its very useful for me...
oliver grace
21-Jun-12 23:57pm
View
Deleted
string myXML = "<Products><Product>Laptop</Product><Product>Printer</Product><Product>Mouse</Product></Products>";
Hi I have stored my XML file like this.can i call my file path here(myXML).when i call the path its not working
oliver grace
21-Jun-12 3:50am
View
public static void WriteLogInformation(string info1,string info2,string info3)
{
string filename = @"D:\sql\XMLDOCUMENTS\testlog2.xml";
//string filename = @"D:\sql\XMLDOCUMENTS\" + DateTime.Now.ToString("yyyy-MM-dd") + "Log.xml";
StringBuilder sbuilder = new StringBuilder();
using (StringWriter sw = new StringWriter(sbuilder))
{
using (XmlTextWriter w = new XmlTextWriter(sw))
{
//w.WriteStartElement("Root");
w.WriteStartElement("Username");
w.WriteElementString("Info1", info1);
w.WriteElementString("Time", "Logged at '" + DateTime.Now.ToString() + "'");
w.WriteEndElement();
w.WriteStartElement("UI");
w.WriteElementString("Info2", info2);
w.WriteEndElement();
w.WriteStartElement("Message");
w.WriteElementString("Info3", info3);
w.WriteElementString("Time", DateTime.Now.ToString());
w.WriteEndElement();
}
}
using (StreamWriter w = new StreamWriter(filename, true, Encoding.UTF8))
{
w.WriteLine(sbuilder.ToString());
}
}
Can I use this method for my application.i want to call this method into all the pages in my application.
If I set root for this method each & every page generate the root but i need common root for my application.
Thank you All
Show More