Click here to Skip to main content
15,890,506 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: use of session in aspx file. Pin
Vimalsoft(Pty) Ltd30-Aug-09 21:26
professionalVimalsoft(Pty) Ltd30-Aug-09 21:26 
QuestionRe: use of session in aspx file. Pin
Amit Patel198530-Aug-09 21:34
Amit Patel198530-Aug-09 21:34 
AnswerRe: use of session in aspx file. Pin
Vimalsoft(Pty) Ltd30-Aug-09 21:37
professionalVimalsoft(Pty) Ltd30-Aug-09 21:37 
GeneralRe: use of session in aspx file. Pin
Priyagdpl30-Aug-09 22:42
Priyagdpl30-Aug-09 22:42 
GeneralRe: use of session in aspx file. Pin
Vimalsoft(Pty) Ltd30-Aug-09 22:44
professionalVimalsoft(Pty) Ltd30-Aug-09 22:44 
GeneralRe: use of session in aspx file. Pin
Priyagdpl30-Aug-09 22:59
Priyagdpl30-Aug-09 22:59 
GeneralRe: use of session in aspx file. Pin
Vimalsoft(Pty) Ltd30-Aug-09 23:01
professionalVimalsoft(Pty) Ltd30-Aug-09 23:01 
GeneralRe: use of session in aspx file. Pin
Priyagdpl30-Aug-09 23:18
Priyagdpl30-Aug-09 23:18 
In aspx file,


function PikCode(textid)
{
String myval = document.getElementById(textid).value;
<%=Session["code"]%> = myval;
}






in the cs file,

if (!IsPostBack)
{
txtcode.Attributes["onblur"] = "PikCode('ctl00_ContentPlaceHolder1_txtcode')";

}





in the user control i m accessing this session, code is,


if (FileUpload1.FileBytes.Length > 0)
{

if (FileUpload1.HasFile == true)
{
string txtcode1 = Convert.ToString(Session["code"].ToString());
FileUpload1.SaveAs(Server.MapPath ("~/AdminSection/Products/Chemicals/"+txtcode1+FileUpload1.FileName.ToString()));

}
}


This is my code.
GeneralRe: use of session in aspx file. Pin
Amit Patel198530-Aug-09 23:51
Amit Patel198530-Aug-09 23:51 
GeneralRe: use of session in aspx file. Pin
Vimalsoft(Pty) Ltd31-Aug-09 0:01
professionalVimalsoft(Pty) Ltd31-Aug-09 0:01 
QuestionRich Text formatting is removed when we create a Word Document using XML and XSLT Pin
jpchauhan30-Aug-09 20:28
jpchauhan30-Aug-09 20:28 
Questionfixing the page focus, when timer get refresh the content..., Pin
Member 387988130-Aug-09 20:20
Member 387988130-Aug-09 20:20 
AnswerRe: fixing the page focus, when timer get refresh the content..., Pin
Inderjeet Kaur30-Aug-09 20:55
Inderjeet Kaur30-Aug-09 20:55 
GeneralRe: fixing the page focus, when timer get refresh the content..., Pin
Member 387988130-Aug-09 21:01
Member 387988130-Aug-09 21:01 
Questionmenu control Pin
kheer30-Aug-09 19:19
kheer30-Aug-09 19:19 
AnswerRe: menu control Pin
Abhijit Jana30-Aug-09 19:49
professionalAbhijit Jana30-Aug-09 19:49 
GeneralRe: menu control Pin
kheer30-Aug-09 19:52
kheer30-Aug-09 19:52 
AnswerRe: menu control Pin
sashidhar30-Aug-09 20:03
sashidhar30-Aug-09 20:03 
AnswerRe: menu control Pin
Inderjeet Kaur30-Aug-09 21:00
Inderjeet Kaur30-Aug-09 21:00 
QuestionOracleBulkCopy Pin
srikantha_nagaraj30-Aug-09 17:01
srikantha_nagaraj30-Aug-09 17:01 
AnswerRe: OracleBulkCopy Pin
Gaurav Dudeja India31-Aug-09 0:09
Gaurav Dudeja India31-Aug-09 0:09 
Questionhindi input Pin
Shuaib wasif khan30-Aug-09 13:15
Shuaib wasif khan30-Aug-09 13:15 
AnswerRe: hindi input Pin
Abhijit Jana30-Aug-09 19:51
professionalAbhijit Jana30-Aug-09 19:51 
GeneralRe: hindi input Pin
Shuaib wasif khan31-Aug-09 10:39
Shuaib wasif khan31-Aug-09 10:39 
Questionhow to know the user download information? Pin
Seraph_summer30-Aug-09 10:33
Seraph_summer30-Aug-09 10:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.