Click here to Skip to main content
15,919,178 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how to change caption of alert or confirm Pin
UsmanMunier1-Jan-08 3:05
UsmanMunier1-Jan-08 3:05 
GeneralAdd externallink in rectangle Pin
Krupa31-Dec-07 20:42
Krupa31-Dec-07 20:42 
GeneralRe: Add externallink in rectangle Pin
Michael Sync31-Dec-07 20:55
Michael Sync31-Dec-07 20:55 
GeneralRe: Add externallink in rectangle Pin
Krupa31-Dec-07 21:00
Krupa31-Dec-07 21:00 
GeneralRe: Add externallink in rectangle Pin
Michael Sync31-Dec-07 21:12
Michael Sync31-Dec-07 21:12 
Questionhow i can convert the text entered in the text box to sentence case Pin
jagan12331-Dec-07 18:32
jagan12331-Dec-07 18:32 
AnswerRe: how i can convert the text entered in the text box to sentence case Pin
Michael Sync31-Dec-07 21:07
Michael Sync31-Dec-07 21:07 
GeneralUpdate GridView from ASP.NET Code Pin
SSNTails31-Dec-07 11:00
SSNTails31-Dec-07 11:00 
Hi,

Here's what's going on:

*) User clicks on a location of the website, firing off a .NET function (in a .cs file)
*) This routine comes up with a particular database key that is used to link a related table to another one.
*) Next, take that key and re-populate a GridView with the information it found in the related table.

Problem is, the GridView doesn't post-back or refresh or whatever they call it (I'm traditionally straight Win32 C so this is rather frustrating!).

Here's the code that I'm using thus far. Any help would be appreciated. Thanks!



GridView rd = relPanel.FindControl("GridView1") as GridView;
if (rd != null)
{
SqlDataSource relatedDataSource = Page.FindControl("SqlDataSource1") as SqlDataSource;
if (relatedDataSource != null)
{
// This gives us the Site_ID that we need for our query.
// dtr["SITE_ID"].ToString()
// Our command
string myquery = String.Format("SELECT SITE_ID, PLANTTYPE, BARCODE, TIMESTAMP FROM Samples WHERE (SITE_ID = '{0}')", dtr["SITE_ID"].ToString());
SqlConnection myConnection = new SqlConnection(relatedDataSource.ConnectionString);
SqlDataAdapter ad = new SqlDataAdapter(myquery, myConnection);

DataSet myds = new DataSet();

ad.Fill(myds, "Samples");
rd.DataSourceID = null;
rd.DataSource = myds;
rd.DataBind();
GeneralProblem with Report (rdlc) Pin
mehrdadc4831-Dec-07 9:56
mehrdadc4831-Dec-07 9:56 
GeneralRe: Problem with Report (rdlc) Pin
Paul Conrad31-Dec-07 10:32
professionalPaul Conrad31-Dec-07 10:32 
AnswerSet the DropDownList AutoPostBack property for some items Pin
Luay.Essa31-Dec-07 2:52
Luay.Essa31-Dec-07 2:52 
GeneralRe: Set the DropDownList AutoPostBack property for some items Pin
SABhatti31-Dec-07 8:48
SABhatti31-Dec-07 8:48 
GeneralRe: Set the DropDownList AutoPostBack property for some items Pin
UsmanMunier1-Jan-08 3:02
UsmanMunier1-Jan-08 3:02 
QuestionHow to get the values of dynamic fileupload Pin
Elena200631-Dec-07 1:50
Elena200631-Dec-07 1:50 
AnswerRe: How to get the values of dynamic fileupload Pin
Abhijit Jana31-Dec-07 2:13
professionalAbhijit Jana31-Dec-07 2:13 
AnswerRe: How to get the values of dynamic fileupload Pin
Scott Dorman31-Dec-07 7:02
professionalScott Dorman31-Dec-07 7:02 
GeneralRedirect in AJAX Pin
rajanandal31-Dec-07 1:00
rajanandal31-Dec-07 1:00 
GeneralRe: Redirect in AJAX Pin
DotNetXenon31-Dec-07 5:07
DotNetXenon31-Dec-07 5:07 
AnswerRe: Redirect in AJAX Pin
UsmanMunier31-Dec-07 23:32
UsmanMunier31-Dec-07 23:32 
GeneralSystem.Security.SecurityException: That assembly does not allow partially trusted callers. [modified] Pin
Mogaambo31-Dec-07 0:59
Mogaambo31-Dec-07 0:59 
GeneralRe: System.Security.SecurityException: That assembly does not allow partially trusted callers. Pin
Colin Angus Mackay31-Dec-07 1:07
Colin Angus Mackay31-Dec-07 1:07 
GeneralRe: System.Security.SecurityException: That assembly does not allow partially trusted callers. Pin
Mogaambo31-Dec-07 1:25
Mogaambo31-Dec-07 1:25 
GeneralRe: System.Security.SecurityException: That assembly does not allow partially trusted callers. Pin
Colin Angus Mackay31-Dec-07 1:29
Colin Angus Mackay31-Dec-07 1:29 
GeneralRe: System.Security.SecurityException: That assembly does not allow partially trusted callers. Pin
Mogaambo31-Dec-07 1:42
Mogaambo31-Dec-07 1:42 
GeneralRe: System.Security.SecurityException: That assembly does not allow partially trusted callers. Pin
N a v a n e e t h31-Dec-07 1:44
N a v a n e e t h31-Dec-07 1:44 

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.