IT Community - Software Programming, Web Development and Technical Support

C# .Net Tips & Tricks

This is a discussion on C# .Net Tips & Tricks within the C# Programming forums, part of the Software Development category; hi sundram, Try to this code: Code: string Name_Image = UPLOAD_STORE_IMAGE.PostedFile.FileName; string Advertisers_RegId = Session["REG_ID"].ToString(); string ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #81 (permalink)  
Old 03-05-2008, 07:12 AM
Mramesh Mramesh is offline
D-Web Sr.Programmer
 
Join Date: Sep 2007
Location: Chennai
Posts: 106
Mramesh is on a distinguished road
Send a message via MSN to Mramesh
Default Re: C# .Net Tips & Tricks

hi sundram,

Try to this code:

Code:
string Name_Image = UPLOAD_STORE_IMAGE.PostedFile.FileName;
      string Advertisers_RegId = Session["REG_ID"].ToString();
      string strFileName = "";
      strFileName = Path.GetFileName(Name_Image);
      string savePath = Server.MapPath(@"UploadImage\");
      strFileName = "Reg" + "_" + Advertisers_RegId + "-" + strFileName;
      savePath += strFileName;
      UPLOAD_STORE_IMAGE.PostedFile.SaveAs(savePath);
      string Iname = "~/Registration/UploadImage/" + strFileName.ToString();
              comm.Parameters.Add(new SqlParameter("@IMAGE", SqlDbType.VarChar, 300)).Value = Iname;
         
          comm.Parameters.Add(new SqlParameter("@HTML_LINK", SqlDbType.VarChar, 50)).Value = TXT_STORE_HTMLLINK.Value;
__________________
M.Ramesh Kumar
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #82 (permalink)  
Old 03-13-2008, 09:15 AM
Mramesh Mramesh is offline
D-Web Sr.Programmer
 
Join Date: Sep 2007
Location: Chennai
Posts: 106
Mramesh is on a distinguished road
Send a message via MSN to Mramesh
Default Re: C# .Net Tips & Tricks

hi all,

Could you tell me How to convert the dynamic ArrayList in to a Fixed Size Array List?

Thanx in Advance..
__________________
M.Ramesh Kumar
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #83 (permalink)  
Old 03-13-2008, 09:19 AM
Sundaram Sundaram is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Location: chennai
Posts: 117
Sundaram is on a distinguished road
Send a message via MSN to Sundaram Send a message via Yahoo to Sundaram
Default Re: C# .Net Tips & Tricks

// Create an arraylist with initial capacity of 2 elements
System.Collections.ArrayList al = new ArrayList(2);

// Now, fix the size.

al = System.Collections.ArrayList.FixedSize(al);

//Add two elements to the arraylist

al.Add("ramesh");
al.Add("deeban");

// When you try to add another item, an exception is thrown.
al.Add("sundaram");
__________________
Regards,

Sundaram
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #84 (permalink)  
Old 09-24-2008, 03:20 AM
Balasubramanian.S Balasubramanian.S is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 182
Balasubramanian.S is on a distinguished road
Default Re: C# .Net Tips & Tricks

Hi,

We can get the records of particular row using javascript in GridView.
Attached Files
File Type: zip GridSampleDisplay.zip (3.0 KB, 1 views)
__________________
S.Balasubramanian
Nothing is impossible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #85 (permalink)  
Old 12-02-2008, 02:12 AM
Balasubramanian.S Balasubramanian.S is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 182
Balasubramanian.S is on a distinguished road
Default Re: C# .Net Tips & Tricks

This is the sample application to create trial version application and then register after some days.
Attached Files
File Type: zip TrialVersionApplication.zip (76.6 KB, 0 views)
__________________
S.Balasubramanian
Nothing is impossible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/c-programming/3129-c-net-tips-tricks.html
Posted By For Type Date
DiscussWeb IT Community - Technical Support and Technology Discussions This thread Refback 08-18-2007 04:01 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
SAP Tips & Tricks leoraja8 Operating Systems 0 03-29-2008 01:11 AM
BlueTooth tips and tricks devarajan.v Mobile Software Development 52 03-13-2008 10:46 PM
PHP Tips and Tricks Sabari PHP Programming 20 12-18-2007 06:26 AM
.NET tricks & Tips Karpagarajan VB.NET Programming 1 04-23-2007 09:17 AM
SEO Tips & Tricks spid4r Search Engine Optimization 0 03-09-2007 12:03 AM


All times are GMT -7. The time now is 05:02 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0