Click here to Skip to main content
15,885,757 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to access the dynamically created control Pin
deepseeindeepsy16-Nov-09 0:37
deepseeindeepsy16-Nov-09 0:37 
Questionhow to send sms Pin
fak.kumar15-Nov-09 23:07
fak.kumar15-Nov-09 23:07 
AnswerRe: how to send sms Pin
Christian Graus15-Nov-09 23:15
protectorChristian Graus15-Nov-09 23:15 
AnswerRe: how to send sms Pin
Abhijit Jana15-Nov-09 23:41
professionalAbhijit Jana15-Nov-09 23:41 
AnswerRe: how to send sms Pin
Abhishek Sur16-Nov-09 0:03
professionalAbhishek Sur16-Nov-09 0:03 
AnswerRe: how to send sms Pin
sashidhar16-Nov-09 0:04
sashidhar16-Nov-09 0:04 
Questiondatalist1 Pin
mylogics15-Nov-09 21:50
professionalmylogics15-Nov-09 21:50 
AnswerRe: datalist1 Pin
Christian Graus15-Nov-09 22:15
protectorChristian Graus15-Nov-09 22:15 
"m workin as a web developer in a software company.
i work on asp.net using csharp....."

And you've been a member here for some time, but you still think that your use of horrible and worthless variable names is a good subject line and can't read an error message ?


mylogics wrote:
if (!IsPostBack) { DataTable dt = (DataTable)Session["cart"]; DataList1.DataSource = dt; DataList1.DataBind(); }


Things that suck about this code

1 - you have a datatable in the session
2 - your page will blow up if no table is found
3 - the prerender event is when you should bind to data sources. For example, you're rebinding PRIOR to the update event, which is probably going to screw you up.

You're REALLY paid to write web code ?

mylogics wrote:
string str="Update Home Set ProductQty=@ProductQty Where(ProductID=@Productid)"; SqlCommand cmd = new SqlCommand(str,conn); cmd.Parameters.Add("@ProductQty", SqlDbType.VarChar).Value = txtProductQty.Text; ; cmd.Parameters.Add("@Productid", SqlDbType.Int).Value = ProductID;


This is so, so hideous. I can only assume your clients are never people who have any idea about application development ?

mylogics wrote:
DataTable dt = (DataTable)Session["cart"]; DataList1.DataSource = dt; DataList1.DataBind();


Where in this mess, do you expect the value in your sesson to be updated by the SQL you ran ?

This is an utter disaster. I don't see much worth salvaging, you work in a company ? Are there more experienced developers who could help you start this task again, or are you the zenith of the skillset there ?

Christian Graus

Driven to the arms of OSX by Vista.

Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

AnswerRe: datalist1 Pin
Christian Graus15-Nov-09 22:49
protectorChristian Graus15-Nov-09 22:49 
AnswerRe: datalist1 Pin
Christian Graus15-Nov-09 23:03
protectorChristian Graus15-Nov-09 23:03 
AnswerRe: datalist1 Pin
Christian Graus16-Nov-09 8:56
protectorChristian Graus16-Nov-09 8:56 
QuestionLogin as different user in asp.net as in sharepoint Pin
dharam_hbtik15-Nov-09 21:19
dharam_hbtik15-Nov-09 21:19 
AnswerRe: Login as different user in asp.net as in sharepoint Pin
dharam_hbtik15-Nov-09 21:20
dharam_hbtik15-Nov-09 21:20 
AnswerRe: Login as different user in asp.net as in sharepoint Pin
dharam_hbtik15-Nov-09 21:22
dharam_hbtik15-Nov-09 21:22 
AnswerRe: Login as different user in asp.net as in sharepoint Pin
Abhishek Sur15-Nov-09 21:23
professionalAbhishek Sur15-Nov-09 21:23 
GeneralRe: Login as different user in asp.net as in sharepoint Pin
dharam_hbtik15-Nov-09 21:28
dharam_hbtik15-Nov-09 21:28 
GeneralRe: Login as different user in asp.net as in sharepoint [modified] Pin
Abhishek Sur15-Nov-09 21:36
professionalAbhishek Sur15-Nov-09 21:36 
GeneralRe: Login as different user in asp.net as in sharepoint Pin
dharam_hbtik15-Nov-09 21:45
dharam_hbtik15-Nov-09 21:45 
GeneralRe: Login as different user in asp.net as in sharepoint Pin
Christian Graus15-Nov-09 22:43
protectorChristian Graus15-Nov-09 22:43 
GeneralRe: Login as different user in asp.net as in sharepoint Pin
dharam_hbtik15-Nov-09 23:02
dharam_hbtik15-Nov-09 23:02 
GeneralRe: Login as different user in asp.net as in sharepoint Pin
Christian Graus15-Nov-09 23:04
protectorChristian Graus15-Nov-09 23:04 
GeneralRe: Login as different user in asp.net as in sharepoint Pin
dharam_hbtik15-Nov-09 23:10
dharam_hbtik15-Nov-09 23:10 
GeneralRe: Login as different user in asp.net as in sharepoint Pin
Christian Graus15-Nov-09 23:14
protectorChristian Graus15-Nov-09 23:14 
GeneralRe: Login as different user in asp.net as in sharepoint PinPopular
Richard MacCutchan15-Nov-09 23:09
mveRichard MacCutchan15-Nov-09 23:09 
GeneralRe: Login as different user in asp.net as in sharepoint Pin
dharam_hbtik15-Nov-09 23:12
dharam_hbtik15-Nov-09 23:12 

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.