15,886,362 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 Vinod Viswanath (Top 16 by date)
Vinod Viswanath
20-Nov-12 21:18pm
View
Central Reservation System (CRS) And Global Distribution Service (GDS).
Vinod Viswanath
6-Nov-12 20:37pm
View
Then how the alarm reminders works when phone is switched, am new to mobile app world..
Vinod Viswanath
21-Sep-12 4:55am
View
Reason for my vote of 5
Nice One..
Vinod Viswanath
15-Sep-12 12:53pm
View
Deleted
Hi,
No need to rearrange the Primary key, ListBox has two properties( value and text), bind the key field(ID) to value property and rebind the grid after deleting the records.
this.listBox1.DataSource = listToBind ;
this.listBox1.DisplayMember = "Text";
this.listBox1.ValueMember = "Id";
You can retrieve the selected value using the property.
ListBox1.SelectedValue
Hope this will help you.
Thanks!!!
Vinod Viswanath
15-Sep-12 12:12pm
View
It will lead to confusions.,Dnt do it.
Vinod Viswanath
8-Sep-12 1:29am
View
Are you converting String to int or integer to string question is not clear.. in code it seems like you are converting string to int. please reply.
Vinod Viswanath
6-Sep-12 23:45pm
View
HI,
First create a table which contain image_content column of datatype image and add the following code in upload button click event.
if (FileUpload1.PostedFile != null
&& FileUpload1.PostedFile.FileName != "")
{
byte[] myimage = new byte[FileUpload1.PostedFile.ContentLength];
HttpPostedFile Image = FileUpload1.PostedFile;
Image.InputStream.Read(myimage, 0,
(int)FileUpload1.PostedFile.ContentLength);
SqlConnection myConnection =
new SqlConnection("Data Source = ComputerName\\SQLEXPRESS;
Initial Catalog= dbname; Integrated Security= SSPI");
SqlCommand storeimage =
new SqlCommand("INSERT INTO Image_Gallery "
+"(Img_Id, Image_Content, Image_Type, Image_Size) "
+" values (3, @image, @imagetype, @imagesize)"
, myConnection);
storeimage.Parameters.Add("@image",
SqlDbType.Image, myimage.Length).Value = myimage;
storeimage.Parameters.Add("@imagetype",
SqlDbType.VarChar, 100).Value
= FileUpload1.PostedFile.ContentType;
storeimage.Parameters.Add("@imagesize",
SqlDbType.BigInt, 99999).Value
= FileUpload1.PostedFile.ContentLength;
myConnection.Open();
storeimage.ExecuteNonQuery();
myConnection.Close();
Respone.Write("successfully upload the image");
}
Thanks!!
Vinod Viswanath
6-Sep-12 1:07am
View
startupPath should be like "C:\personal\"
Vinod Viswanath
2-Sep-12 0:54am
View
OK friend am removing my comment
Vinod Viswanath
1-Sep-12 12:25pm
View
Deleted
It is new to Srinivasa who posted this question :)
Vinod Viswanath
1-Sep-12 10:23am
View
Hi,
Create a base class and check for session is null or Session.IsNewSession then remove the cookie cariable
public class SessionCheck: System.Web.UI.Page
{
override protected void OnInit(EventArgs e)
{
base.OnInit(e);
if (Context.Session == null)
{
//remove cookies data
}
}
}
public partial class _Default : SessionCheck
{
//your code here
}
Hope you understood the scenario..
Thanks!!
Vinod Viswanath
30-Aug-12 3:08am
View
Ya i have seen that, trying to resolve the issue, for time being you can find the MimeTeX.dll inside Eq2ImgWinForms\Eq2ImgWinForms\bin\Debug folder
Vinod Viswanath
30-Aug-12 2:27am
View
Sorry i was asking you the html code behind, not the code. i tried your code with my webpage it works fine for me.
Vinod Viswanath
30-Aug-12 1:24am
View
Hi, Can you paste your code behind here?
Vinod Viswanath
30-Aug-12 0:40am
View
See my below solution hope that will help you to iterate through content panels
Vinod Viswanath
29-Aug-12 9:50am
View
Are you using master pages? if so this code will not work.
Show More