Click here to Skip to main content
16,005,339 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to Refresh the UserControl not the Whole Page In ASP.net Pin
Ramesh Swaminathan19-May-09 22:28
Ramesh Swaminathan19-May-09 22:28 
GeneralRe: How to Refresh the UserControl not the Whole Page In ASP.net Pin
Vimalsoft(Pty) Ltd19-May-09 22:43
professionalVimalsoft(Pty) Ltd19-May-09 22:43 
GeneralRe: How to Refresh the UserControl not the Whole Page In ASP.net Pin
Ramesh Swaminathan19-May-09 22:48
Ramesh Swaminathan19-May-09 22:48 
GeneralRe: How to Refresh the UserControl not the Whole Page In ASP.net Pin
Vimalsoft(Pty) Ltd19-May-09 23:17
professionalVimalsoft(Pty) Ltd19-May-09 23:17 
GeneralRe: How to Refresh the UserControl not the Whole Page In ASP.net Pin
Ramesh Swaminathan19-May-09 23:31
Ramesh Swaminathan19-May-09 23:31 
GeneralRe: How to Refresh the UserControl not the Whole Page In ASP.net Pin
Vimalsoft(Pty) Ltd20-May-09 0:07
professionalVimalsoft(Pty) Ltd20-May-09 0:07 
GeneralRe: How to Refresh the UserControl not the Whole Page In ASP.net Pin
Ramesh Swaminathan20-May-09 0:41
Ramesh Swaminathan20-May-09 0:41 
GeneralRe: How to Refresh the UserControl not the Whole Page In ASP.net Pin
Vimalsoft(Pty) Ltd20-May-09 1:17
professionalVimalsoft(Pty) Ltd20-May-09 1:17 
The grid is Binded from a SQlDataSource control defined like this
<asp:SqlDataSource ID="SqlDataSourceContacts" runat="server" ConnectionString="< %$ ConnectionStrings:DBConnectionString % >"
    SelectCommand="select distinct tbl_cntc.ID, tbl_cntc.CntcTyp, tbl_cntc.Number, tbl_cntc.Duration, count( distinct tbl_Actv.id ) [NumberOfActivities]&amp;#13;&amp;#10;from tbl_cntc&amp;#13;&amp;#10;left outer join tbl_actv on tbl_actv.cntcId = tbl_cntc.ID&amp;#13;&amp;#10;where tbl_cntc.modlID = @ModlID&amp;#13;&amp;#10;group by tbl_cntc.ID, tbl_cntc.CntcTyp, tbl_cntc.Number, tbl_cntc.Duration&amp;#13;&amp;#10;order by CntcTyp, tbl_cntc.Number" UpdateCommand="Update tbl_cntc &amp;#13;&amp;#10;   set CntcTyp = @CntcTyp,&amp;#13;&amp;#10;         Duration = @Duration&amp;#13;&amp;#10;   where ID = @CntcID" >
    < SelectParameters>
        < asp:ControlParameter ControlID="hfmodlID" Name="ModlID" PropertyName="Value" / >;
    < /SelectParameters >
    < UpdateParameters >
        < asp:Parameter Name="CntcTyp"  />
        < asp:Parameter Name="Duration" / >
        < asp:Parameter Name="CntcID" / >
    < /UpdateParameters >


and as Shown above the Page load in the UserControl is like this

protected void Page_Load(object sender, EventArgs e)
{
    string clientscript = "";

    // make available to all subcontrols a variable with the client ID of the textbox in which to store the selected activity IDs
    clientscript = "var txtbxActvClientID = '" + txtbxActvs.ClientID.ToString() + "'; ";
    // assign the current list of selected activities to the list for JavaScript here
    //clientscript += "var ActivityList = String(\"" + txtbxActvs.Text + "\"); ";
    ClientScriptManager cs = Page.ClientScript;
    cs.RegisterClientScriptBlock(this.GetType(), "txtbxlookupid", clientscript, true);

    // if a subject is not selected hide the controls/actions a user has
    if (!Page.IsPostBack)
    {
    }
    HighlightSelectedActvs();
    //LoadSubjectStructure(SubjectID);
}

Thanks

Vuyiswa Maseko,

Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

Questionproblem at mail Pin
prateekfgiet19-May-09 20:29
prateekfgiet19-May-09 20:29 
AnswerRe: problem at mail Pin
Ramesh Swaminathan19-May-09 20:43
Ramesh Swaminathan19-May-09 20:43 
QuestionMAC Addres of client system Pin
singh.sunder19-May-09 20:01
singh.sunder19-May-09 20:01 
AnswerRe: MAC Addres of client system Pin
Ramesh Swaminathan19-May-09 21:00
Ramesh Swaminathan19-May-09 21:00 
GeneralRe: MAC Addres of client system Pin
singh.sunder20-May-09 1:39
singh.sunder20-May-09 1:39 
QuestionConnecting Visual Studio to a Remotely Hosted App Pin
Roger Wright19-May-09 19:47
professionalRoger Wright19-May-09 19:47 
AnswerRe: Connecting Visual Studio to a Remotely Hosted App Pin
Ramesh Swaminathan19-May-09 21:13
Ramesh Swaminathan19-May-09 21:13 
GeneralRe: Connecting Visual Studio to a Remotely Hosted App Pin
Roger Wright19-May-09 21:43
professionalRoger Wright19-May-09 21:43 
GeneralRe: Connecting Visual Studio to a Remotely Hosted App Pin
Ramesh Swaminathan19-May-09 22:54
Ramesh Swaminathan19-May-09 22:54 
QuestionWindows Installer - Preparing to Install? Pin
AliAmjad19-May-09 18:16
AliAmjad19-May-09 18:16 
AnswerRe: Windows Installer - Preparing to Install? Pin
Ramesh Swaminathan19-May-09 19:23
Ramesh Swaminathan19-May-09 19:23 
QuestionEdit part of multi-upload file board. Pin
lsh486love19-May-09 15:16
lsh486love19-May-09 15:16 
QuestionAJAX call: JSON/WCF vs ASPX Pin
devvvy19-May-09 15:08
devvvy19-May-09 15:08 
QuestionSession Transfer between Classic ASP and ASP.Net Pin
medasatheesh19-May-09 10:00
medasatheesh19-May-09 10:00 
AnswerRe: Session Transfer between Classic ASP and ASP.Net Pin
Christian Graus19-May-09 12:27
protectorChristian Graus19-May-09 12:27 
GeneralRe: Session Transfer between Classic ASP and ASP.Net Pin
medasatheesh20-May-09 3:29
medasatheesh20-May-09 3:29 
Questiondatabase connection Pin
jainiraj19-May-09 7:01
jainiraj19-May-09 7:01 

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.