|
Mark Nischalke wrote:
Have you looked at HttpRequest.Browser
Yes .But the client size does not exist there.Are you sure about it?
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
Mazy,
You are really going to have to go into some detail.
Is this the same function you wanted to write in javascript? There's no way you can run something on the client before you run Page_Load on the server. The server builds the page, sends it along with any Javascript and the browser picks that up and translates it.
What exactly are you trying to do?
Paul
|
|
|
|
|
Mazdak wrote:
I want to get clients window size and pass it to sever before page load.
The best thing I can think of (and there may be a better way) is to have a "hidden" input field on the form of the previous page then use JavaScript to populate it when the button/link is clicked. Then you should be able to pick that up at the server side.
Paul
|
|
|
|
|
Hi, I need to create an CHM Help System file for my application.
I created some HTML files using MS WORD 2000. In these files there are a lot of jpeg images. Some of them are not displayed on the final chm I cannot figure out why .
Can anyone advise please?
Black ghost
|
|
|
|
|
Just do not create HTML files with Word. Word adds a lot of his stuff into HTML. Use the FrontPage instead.
Also check the links in CHM file, try to navigate by yourself to the images, see if they are included in CHM
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
|
|
|
|
|
I'm trying to construct a subclass of the ASP.NET DataGrid with
automatical filter functionality. The idea is as follows:
The page that uses the DataGrid uses the SetQuery function to tell the
grid what It's main query is. This happens in the Page_Load and it
splits the query in 2 to seperatie the SELECT ... WHERE clause and the
ORDER BY clause...
The Grid subclass adds an empty row at the top of the row and puts
dynamically created comboboxes in them with all unique values from that
column that come from the query. When the user selects an item form one
of those comboboxes, the grid refreshes itsself by binding the old query
with some self-constructed restrictions...
The PROBLEM is that I can't find the right place to do this 'requery'.
If I put my code in the OnLoad function it's to early, because the
selected value of the combobox isn't known yet. And if I put my code
in the selectedIndexChanged event handler of the dynamically created
combobox, it's to late to bind the grid, because when I do a DataBind
with the new dataset (the dataset is OK!), the old data is still shown
on the screen...
I've been trying to fix this for about 2 days now, but can't get it to
work. It is really important to me that this works, because if it
doesn't, I'm going to have to place filters on every page manually
instead of using this generic solution.
Structured programming vs. chaotic mind boggling
|
|
|
|
|
I have a COM component DLL created in Visual C++/ATL and used on an ASP page. When I make changes and recompile I get a link error saying that it can't open the DLL for writing. The web server still has access to it. How do I stop and restart the web server?
This is on Windows NT4 Workstation + Option Pack.
I vaguely remember that I must do
net stop xxx
net start xxx
Kevin
|
|
|
|
|
net stop IISAdmin
Server will then moan about stopping W3SVC etc.
Once it has stopped everything (if everything goes off without a hitch), then do whatever you want with the DLL, and restart W3SVC etc.
You can also do this using the 'Services' dialog (I think - been a while since I looked at an NT workstation machine).
Cheers
|
|
|
|
|
i do'nt know how to add a tree control to a web form
kindly help me out in this regard
|
|
|
|
|
Install the iewebcontrols and simply drag it from the toolbox to your form
|
|
|
|
|
How can I set a default language for a control?For example I want when user enter in a textbox it enter farsi charachter if it is installed on their windows.What is java or .net code?
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
I want to overriden OnLoad of an ASP.NET component like TextBox.I define it in my aspx page like this:
asp:TextBox id="TextBox1" style="Z-INDEX: 103; LEFT: 135px; POSITION: absolute; TOP: 376px" runat="server" Width="256px" Height="33px" Visible=True OnLoad="TextBoxLoad"
Now I want to define this function in my aspx with javascript code,not c# code.How can I do it?
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
You can't (at least not as far as I know). That OnLoad event is strictly server-side.
You can put an onload event on the BODY tag which would have the effect you want.
Paul
|
|
|
|
|
Thanks.I think you are right.
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
I have two question,I prefered to do these in ASP.NET way but if somebody tell me javascript code for it,I can use it too,
1.How can I get the width and height of client browsers?
2.How can I get screen resolution of clients?
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
In IE the following are available...
document.body.clientWidth
document.body.clientHeight
document.body.offsetWidth;
document.body.offsetHeight;
window.screen.width
window.screen.height
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Thanks.
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
|
Thanks,I'll check it.
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
<%
Do While Not RS.EOF
Response.Write ""
Response.Write RS("Skill")
RS.MoveNext
Loop
%>"><% Response.Write (Session("strSkill"))%>
The option i wish to be selected is that value which is obtained from a previous form. this value is StrSkill. it is a string value. however, when adding the record to a database(in the next form), i need SkillID, which is an integer value. i am trying to obtain this by means of the SQL statement but it is not working. what is the problem, or is there an alternative soln? (note: the table is Skills : Skill(text), SkillID(int))
thank you!
|
|
|
|
|
Use CInt() in VBS to convert it.
Paul
|
|
|
|
|
my explanation was very vague-im sorry! in the next form ,i wish to add a record to a table, which requires the skillID RELATING to strSkill. this can be derived via a SQL statement (which reads the value from the database)
|
|
|
|
|
Looking again at your original message, it seems I missed the point completely, doesn't it?
I think this is the fix you're looking for:
<select NAME="Skills">
<%
Do While Not RS.EOF
Response.Write "<option VALUE='" & RS("SkillID") & "'"
If RS("Skill") = Session("strSkill") Then
Response.Write " selected"
End If
Response.Write ">" & RS("Skill") & </option>
RS.MoveNext
Loop
%>
</select> What you were trying to do would have produced:
<select NAME="Skills">
<option value="1">Skill 1
<option value="2">Skill 2
<option value="3">Skill 3
<option value="4">Skill 4
<option value="5">Skill 5
<option selected="4">Skill 4</option> (or something like that) But what you really want is
<select NAME="Skills">
<option value="1">Skill 1</option>
<option value="2">Skill 2</option>
<option value="3">Skill 3</option>
<option value="4" selected>Skill 4</option>
<option value="5">Skill 5</option>
</select>
Paul
|
|
|
|
|
Where is a good cross reference for all major broswers...?
IE, NS and Opera...???
I came up with a stellar idea for that web dev contest, but I will require a cross reference to properly implement it...
Any sites...?
Thanx.
p.s-Old browser which supported DHTML right up to cutting edge would be great...Mainly IE and Nestacape are my concerns.
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
I've always liked the book "The JavaScript Bible." I have the first edition, which doesn't cover Opera, but the newer edition(s) may - I just haven't seen it to verify.
Also, developer.netscape.com is a good start too, but it won't cover Opera.
Jeremy Falcon
Imputek
<nobr>"C# is the answer to a question nobody asked." - Chris Losinger
|
|
|
|