c# 超链接控件:HyperLink

HyperLink 控件用于创建超链接。

eg:

1.aspx:

                            
                            
                                
                                    
                                
                            
2.cs:

HyperLink hlQuantity = e.Row.FindControl("hlVehicleSum") as HyperLink;
                hlQuantity.NavigateUrl = String.Format("NormativeAlarmSum_List.aspx?AlarmTime1={0}&EndTime2={1}&AlarmType={2}&AlarmState={3}&InternalId={4}&OwnerName={5}", dpAlarmTime1.Text, dpEndTime2.Text, ddlAlarmType.SelectedValue, ddlAlarmState.SelectedValue, ddlInternalId.SelectedValue, objQuantity.OwnerName);


你可能感兴趣的:(ASP.NET控件)