|
Ctrl+F1 for specific help
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
After he trips from the floor, how about CTRL+Z, CTRL+Z, CTRL+Z, CTRL+Z?
|
|
|
|
|
|
Hello Everybody,
I am unable to get that thw opened page is secure or nonsecure.
Actually i want know that page url is starting with http or https
regards
Rahul
rahul saini
|
|
|
|
|
u can use it..
url = Request.ServerVariables("HTTP_REFERER")
in url u will get whole url from addressbar.
now u can check it. whether it's starting from http or https
Thanks,
Sun Rays
|
|
|
|
|
Hello Sun Rays
Thanks for rplying me.
the code you have written is not working
Can you please explain me more clearly
Thanks
Rahul
rahul saini
|
|
|
|
|
That method may not work as the referrer isn't always passed by the browser (the user can disable it if they want) and it wont exist if you type the address directly into the address bar.
Check out my earlier reply on the Request.Url.OriginalString method.
|
|
|
|
|
Rahul,
u try this
write this on your page load event.
Dim str As String
str = Request.Url.OriginalString
in str it will give u whole path of addressbar.
Dim http As Boolean
If str.StartsWith("http:/") Then
http = True
ElseIf str.StartsWith("https:/") Then
http = False
End If
Thanks,
Sun Rays
|
|
|
|
|
Hello Sun Rays
Issue is solved
with
url = Request.Url.AbsoluteUri.ToString
Thanks
RAHUL
rahul saini
|
|
|
|
|
Try parsing the Request.Url.OriginalString path
|
|
|
|
|
Hi All,
I have a page in which javascript is used for validation of client side. There is a textbox which bydefault invisible. When some one select a checkbox that textbox appears. Now when that checkbox is unchecked the javascrit cant recognize the textbox by getElementById.
Can any body help in that wht shoud I do for that.
Thanks in Advance.
|
|
|
|
|
hi,
if u are using asp.net textbox then from page source u can see that textbox's id will be changed. so when u are trying to find textbox from javascript find id by that new id which is coming in page source in html page. hope it will help.
Thanks,
Sun Rays
|
|
|
|
|
Can u plz give me example of that. How can i find that id. That will be same , i think it will not change.
|
|
|
|
|
in java sript write this.
var test = document.getElementById('ctl00_testLBL');
var testValue = test.value;
testLBL = my label's ID
so it will changed to this 'ctl00_testLBL'.
so one run your application and from html page source see label's ID. it will similar to this......
Thanks,
Sun Rays
|
|
|
|
|
Thank u very much for ur help.
|
|
|
|
|
Are you setting the visibility on client-side or server-side with AutoPostBack for the CheckBox? Controls with Visible = false set on the server-side do not exist on the client-side.
|
|
|
|
|
I m making visibility true on server side.
|
|
|
|
|
hello
i just wanna ask why this error comes ? it comes when i write this code
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
txtErr.Text = ""
Me.SmartNavigation = True
'Page.SetFocus(DgEmpList)
Me.MaintainScrollPositionOnPostBack = True
If Me.IsPostBack = False Then
FillDeptCombo()
End If
End Sub
??????
|
|
|
|
|
i have run same code u have written here . i am not getting any error here.
may be problem in FillDeptCombo() function. please check it again..
Thanks,
Sun Rays
|
|
|
|
|
thanks for ur reply, but iam sure that the error in that code cuz i tried to commit the maintainScrollBarPostionOnPostBack and i dunt have the error. i think that the problem occurs when Smartnavigation and MaintainScoll exists tpgather. is that right ? any whay this is th FillDeptCombo code :
Sub FillDeptCombo()
Dim objAtteandance As New ClsDaCompanyInfo
Dim ds As New DsEmpAttendanceInfo.DepartmentDataTable
Dim dr As DsEmpAttendanceInfo.DepartmentRow
dr = ds.NewDepartmentRow()
dr.DepartmentName = ""
dr.ID = -1
ds.Rows.Add(dr)
ds.NewDepartmentRow()
cmbDept.DataSource = objAtteandance.GetDepartments()
cmbDept.DataTextField = "DepartmentName"
cmbDept.DataValueField = "ID"
cmbDept.DataBind()
end Sub
while: cmbDept is a dropDownList
|
|
|
|
|
Though I don't know why the overflow occurs (and don't think it could be figured out from just this sample), I'd like to point out that Page.SmartNavigation and Page.MaintainScrollPositionOnPostBack mostly refer to the same thing. 2.0 introduced the latter, and declared the former as deprecated.
"The SmartNavigation property has been deprecated. Use the SetFocus method and the MaintainScrollPositionOnPostback property instead." - From the MSDN documentation
|
|
|
|
|
hi
thanks for ur reply too, i know that they do the some thing and the Smartnavigation is a method in .NET2003 and MaintainScrollBar is a .NET2005 method, But is that a reason for an error.
but do u know somthing, i forget to tell you that its not a compilation error it occurs at runtime as an alert but the data appears and nothing wrong. sorry for that mistake
|
|
|
|
|
Hi,
I am trying to find a grid / table which will let me set the cols/rows from the code behind file, and which will raise a server side event (with cell details) when a cell is clicked. Is this possable? and if so could someone point me in the right direction?
Thanks
Tim
|
|
|
|
|
i did't get u properly
Thanks,
Sun Rays
|
|
|
|
|
Hi,
I am trying to set a grid or tables properties (num of rows, num of Cols, cell text, etc) from the server side before the page is displayed to the user. Then when the user clicks on a cell I need an event to fire on the server side so I can perform a database lookup.
Thanks
Tim
|
|
|
|