15,610,250 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 Python questions
View Javascript questions
View C++ questions
View Java 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 Anuj Banka (Top 71 by date)
Anuj Banka
13-Jun-14 8:11am
View
but it will give timezone for server not for client.
Anuj Banka
18-May-12 4:39am
View
Reason for my vote of 5
ok
Anuj Banka
4-May-12 0:24am
View
Please post your code dear. it will help us to understand your problem
Anuj Banka
25-Apr-12 7:30am
View
no that is not the problem.Check on some other server.It is problem Of IIS i think.something is cooking on server.So you can try on other server.
Anuj Banka
25-Apr-12 4:44am
View
check new mail that i have send you
Anuj Banka
25-Apr-12 4:18am
View
check you mail.And mark it as answer if it helps you.
Anuj Banka
25-Apr-12 3:21am
View
Please check your code carefully.Or jusr send your code to nsnitin200@gmail.com.i will check that .. And do not use fake ID's everyone is muture enough here.
Anuj Banka
25-Apr-12 2:45am
View
Then use debugger an check if on selection is it going to your "DropDownList1_SelectedIndexChanged" code.And on that code you need to rebind the grid.And place dropdown and grid view in the same updatepanal
Anuj Banka
25-Apr-12 2:38am
View
update your question post your code.and also use content templete and also tell us is it running or not. and if it is not running what problem your are getting then
Anuj Banka
25-Apr-12 2:36am
View
if(page.ispostback==false) { Gridview1.DataBind();
this code means you do not want to rebind your grid when your page doing postback.
it will bind your grid only for first time when your page will load.
Anuj Banka
25-Apr-12 2:33am
View
is it running code.You do not have "<contenttemplate>" tag in your code i don't think its running
Anuj Banka
25-Apr-12 2:28am
View
post your code.
Anuj Banka
25-Apr-12 2:20am
View
post your code what you have done so far.
Anuj Banka
25-Apr-12 2:16am
View
i have given you a link which will give you an idea..
Anuj Banka
24-Apr-12 8:02am
View
Deleted
He has changed the question completely.Before that he is adding the data in datatable in code..
Anuj Banka
24-Apr-12 7:15am
View
give me your email ID i will send you the demo code run it debug it then find it how it is working .
Anuj Banka
24-Apr-12 7:05am
View
You just have to add jquery files..And need to bind your control from database.You can download the source code for this example which will help you.
Anuj Banka
24-Apr-12 6:52am
View
do not use it after some time it will show you a warning to buy it.. And message on the TOP !!!
Anuj Banka
12-Apr-12 3:34am
View
http://datatables.net/download/
Anuj Banka
11-Apr-12 12:08pm
View
Just tell me what you want to do?
Means what you want to achieve with session.
Anuj Banka
11-Apr-12 5:35am
View
then try to put the table in div and apply the css to to div.Its just an idea :)
Anuj Banka
11-Apr-12 2:11am
View
Deleted
Krishna i have updated my solution.Please check may be it help you..
Anuj Banka
11-Apr-12 1:44am
View
Deleted
Check my updated solution and if it helps you mark AS answer Cheers :)
Anuj Banka
19-Mar-12 6:10am
View
DataTable dt; if (Session["CurrentData"] != null) { dt = (DataTable)Session["CurrentData"]; } else
{
DataTable dt = new DataTable();
dt.Columns.Add(new System.Data.DataColumn("Name", typeof(String)));
dt.Columns.Add(new System.Data.DataColumn("Address", typeof(String)));
dt.Columns.Add(new System.Data.DataColumn("Cell", typeof(String)));
}
Anuj Banka
19-Mar-12 5:57am
View
Then why you are creating datatable again create it only for first time as second time its taking from session or use this code after this code as i suggested.
Anuj Banka
19-Mar-12 5:50am
View
if (Session["CurrentData"] != null)
{
dt = (DataTable)Session["CurrentData"];
}
dt.Rows.Add(dr);
Anuj Banka
19-Mar-12 5:47am
View
dt = Session["CurrentData"];
dt.Rows.Add(dr);
Anuj Banka
19-Mar-12 5:45am
View
dt = Session["CurrentData"];
dt.Rows.Add(dr);
Anuj Banka
16-Mar-12 7:49am
View
Means two queries
query first will insert data in table 1
Query second will insert data in table 2
Anuj Banka
16-Mar-12 7:48am
View
or you can simply insert in both the two tables...
Like on inserting where you are using query insert into table.a here write the same query change the table name.
Anuj Banka
16-Mar-12 7:43am
View
Chseck these links for triggers
http://www.roseindia.net/sql/create-after-insert-trigger.shtml
http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/586d1944-7419-40c6-98d4-c69611fb9183/
Anuj Banka
16-Mar-12 3:34am
View
This is code for ur file browser button
<pre lang="vb">Private Sub btnBrowse_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnBrowse.Click
Try
Dim folder As New OpenFileDialog
Dim result = folder.ShowDialog
If result = 1 Then
txtfilename.Text = folder.FileName
mstrfilename1 = folder.FileName
mstrfilename = folder.SafeFileName
End If
Catch ex As Exception
End Try
End Sub</pre>
<pre lang="vb">''' <summary>
''' Code to save the file in database and also other fields
''' </summary>
''' <param name="sender"></param>
''' <param name="e"></param>
''' <remarks></remarks>
Private Sub btnsave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsave.Click
Try
If checkvalidation() = True Then
Dim imageBytes As Byte() = {0}
If Not String.IsNullOrEmpty(mstrfilename1) Then
Dim fiFileInfo As New FileInfo(mstrfilename1)
fileextension = fiFileInfo.Extension
If fiFileInfo.Length > "3072000" Then
MessageBox.Show("You can't upload file more then 3MB", "warning", MessageBoxButtons.OK)
mstrfilename1 = String.Empty
mstrfilename = String.Empty
Return
Else
imageBytes = File.ReadAllBytes(mstrfilename1)
'My.Computer.Network.UploadFile(mstrfilename1, Despath)
'fiFileInfo.CopyTo(Despath)
End If
Else
mstrfilename = "NoFile"
fileextension = ""
End If
objBO.Feedbacksubject = txtsubject.Text
objBO.FeedBackDescription = txtDescription.Text
objBO.FeedBackFileName = mstrfilename
objBO.FeedBackType = cmbtype.SelectedValue
objBO.FeebackProject = PropProjectName
objBO.FeedBackFileData = imageBytes
objBO.FeedBackContentType = fileextension
Dim dt As DataTable
dt = objBLL.SaveFeedBackData(objBO)
'Dim savefile As New IONAttendance.WS.WebSQL
'Dim Despath As String
'Despath = My.Computer.Registry.LocalMachine.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Uninstall\IONAttendance", False).GetValue("UpgradeLinkIntranet").ToString & "FeedBackFiles\" & mstrfilename
'savefile.UploadFile(imageBytes, Despath)
If dt.Rows.Count > 0 Then
MessageBox.Show("FeedBack Saved Sucessfully", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information)
End If
mstrfilename1 = String.Empty
mstrfilename = String.Empty
fileextension = String.Empty
filecontenttype = String.Empty
txtfilename.Text = String.Empty
txtsubject.Text = String.Empty
txtDescription.Text = String.Empty
cmbtype.SelectedValue = "0"
End If
Catch ex As Exception
End Try</pre>
Anuj Banka
14-Mar-12 8:05am
View
Deleted
<add name="cn3" connectionstring="Data Source=ION-202\SQLEXPRESS;Initial Catalog=IonIntranet_dev;Integrated Security=True ">
Anuj Banka
14-Mar-12 8:05am
View
add name="cn3" connectionstring="Data Source=ION-202\SQLEXPRESS;Initial Catalog=IonIntranet_dev;Integrated Security=True"
Use connection string and what is your button code ?
Anuj Banka
14-Mar-12 7:55am
View
See the proble, is you are unable to connect with SQL either you using wrong username or password or wrong server name..
Then please post the code which you are using to connect with database.
Anuj Banka
14-Mar-12 7:48am
View
First use Sql server management studio and use the credencials that you have given in web cinfig to login.i mean check are you able to connect with server from Sql server management studio
Anuj Banka
14-Mar-12 3:20am
View
Please post your code and error message you are getting.
Anuj Banka
14-Mar-12 3:19am
View
Your question is not clear.Actually what help you want?
Anuj Banka
4-Jan-12 7:00am
View
Then Use "\r \n" with string concatenation.
Anuj Banka
4-Jan-12 6:48am
View
Check the Example Or you can create Html string and you can send mail content as HTML
Anuj Banka
20-Dec-11 5:18am
View
i have updated my solution.And if you are doing correct you will get the id of place holder.Or else you can search how to add meta tag from code behind you will find it easily.
Anuj Banka
19-Dec-11 8:28am
View
Yes it is my mistake. i will take care of that for the next time.In active questions its was on top. i thought this is new question.
Anuj Banka
19-Dec-11 8:25am
View
Deleted
Ohh somebody replied.And thats why code project showing this question in active list. i hav 't seen the question date before answering this :)
Anuj Banka
19-Dec-11 8:22am
View
then why i am able to see it in active questions list.
Anuj Banka
19-Dec-11 7:50am
View
post your code..
Anuj Banka
19-Dec-11 6:22am
View
You Have to use the code of lines that i have given on page load of every page.what these code of lines will do if you are on page load of one page it will delete the cache data of the previous page.
Anuj Banka
14-Dec-11 7:26am
View
Post your code
Anuj Banka
14-Dec-11 7:07am
View
Are you running application on your local and your images are on webserver ??
Anuj Banka
13-Dec-11 8:06am
View
You want all these things in code behind or on client side
Anuj Banka
13-Dec-11 5:50am
View
iF it help you then don't forgot to mark as ans. and upvote it :) ;)
Anuj Banka
13-Dec-11 5:49am
View
friend this is an example you have to write youe code. If you want to convert this code use this link :
http://www.developerfusion.com/tools/convert/vb-to-csharp/
Anuj Banka
12-Dec-11 3:57am
View
What you want to do?? Your question is not clear
Anuj Banka
8-Dec-11 2:50am
View
show your code what you are doing
Anuj Banka
7-Dec-11 3:17am
View
Your requirement is not clear
Anuj Banka
6-Dec-11 6:00am
View
Welcome
Anuj Banka
6-Dec-11 5:43am
View
If you have some code then please show us.then we can help you better.
Anuj Banka
6-Dec-11 5:00am
View
Show us your code
Anuj Banka
6-Dec-11 4:56am
View
Thanks for down voting.Just post the code which you have tried and where you are facing problem then only i can help you.
Anuj Banka
6-Dec-11 4:38am
View
Check the new solution that i have given. This is just a overview efforts you have to do.. If it help you mark as a answer
Anuj Banka
6-Dec-11 1:00am
View
Yes just play with this code. And don't forgot to mark as answer :) :)
Anuj Banka
6-Dec-11 0:36am
View
You Can do If(File.Exist(Server.MapPath("~/") + filename))
I have given a link in my solution pls check that also.If its fulfill your requirement then Give me 5.Mark as ans :) :)
Anuj Banka
6-Dec-11 0:07am
View
Just go the folder where you have your file.And just right click and check if its readonly then uncheck the check box.And check permission for IIS users Also
Anuj Banka
5-Dec-11 7:11am
View
Show us code so that we can understand your problem
Anuj Banka
5-Dec-11 5:51am
View
Where is the error??
Anuj Banka
2-Dec-11 7:12am
View
tring to create a keyloger i think :))
Anuj Banka
1-Dec-11 6:09am
View
Means Your Column name which you want.Just give the column name of the table.And in one shot it will give you the sum
Anuj Banka
1-Dec-11 3:51am
View
Please Explain Clearly So that everone can help you
Anuj Banka
28-Nov-11 8:33am
View
Rating will be appreciated if you are satisfy with answer :)
Anuj Banka
28-Nov-11 8:23am
View
Subbu What Actually you are tring to do?
Do you want bulk update? You are looping through each row of the grid but your data for updation is same for each row.
Just tell me what output you want from this code
Anuj Banka
15-Nov-11 2:10am
View
Beacuse your code copy a file from one loaction to other.It is not creating the new file.If you will create a new file then it will show the time that you want
Anuj Banka
15-Nov-11 1:35am
View
Use <DIV id="Test" runat="server">Your Content <Div> Table you can't access On server side.
Show More