|
|
Basically I have created a Web page that allows our users to type in their IP address and their user name and click a button. The page then calls a .bat file which calls a .vbe file, and so on. The end result is that the users computer will be unlocked. I've tested the above page many times on my computer and it works, but once I put it on the webserver and rebuilt it, it does nothing. Even from the webservers own browser it does nothing. We have enven tried to give all access to all users, still nothing. You click the button and the page flashes and sits there. Is it possible the code behind has lost association with the event? If so how can I repair? Any help on this confusing issue is appricated.
Thanks,
Zach
|
|
|
|
|
You are unlocking the server, not the client. When you run it locally on your own computer it works, as it's acting both as server and client.
---
b { font-weight: normal; }
|
|
|
|
|
When I run it from my computer I can unlock other users across the network, not just my local machine.
|
|
|
|
|
Zach Burnett wrote: The page then calls a .bat file which calls a .vbe file, and so on.
Maybe I could be a bit more helpful by addressing what exactly the .bat and .vbe files are doing.
the first .bat file is used to pass the IP and User Name to the .vbe file
the .vbe file creates a connection to the remote computer using the administrator credentials, and then calls another .bat file
this .bat file passes the IP and User Name to the final .vbe
the final .vbe updates the lockout tag and unlocks the users pc
Process works great when using an access database that had been used. I am just trying to remove the access database because they were having to be updated manually at the sites where they were installed, which you could guess is not being done.
Hope that made it a bit more clear as to what's going on.
Zach
|
|
|
|
|
Guffa is right - it works when the machine you're browsing on is the server.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Oh. Well darn it. I thought that by running it from the server the server would call the scripts and send it out through the network sort of like it does when I run it from thet access database. So if it can't work like that any ideas on another approach I could take?
Thanks,
Zach
|
|
|
|
|
I'm also curious as to why it will not work. The way I was thinking was that once unlock was clicked and code executed on the server the server would call the the files that are in the drive which would take over away from the actual page and run like it did in the access program. Can someone point out my flaw please?
Thanks
Zach
|
|
|
|
|
This is a surprisingly difficult problem to find any resources on the internet about so hopefully someone here has a pointer on what to do.
I have many forms with a series of input fields.
They have to be in this format:
Label1:
Input field1
Label2:
Input field2
I.E. they have to be label on top of input field, not side by side due to localization and RTL/LTR locale issues.
The problem is spacing the label/inputfield pairs from each other.
If I put a <br> after the input field, I get a nice separatation in IE, a full blank line between them as in the way I typed it above, in FireFox or Opera though, I get no blank line separation, the second label appears directly beneath the first input field:
Label1:
InputField1
Label2:
InputField2
If I double up on <br> tags then it looks nice in Opera and FF but doublespaced in IE which is bad.
I know I could resolve this with a block level element, I.E. put each pair in a div, but I have 3 columns of these label/input pairs on most forms and anywhere from 5 to a dozen pairs on each form so I'm not sure if this is the optimal way to do it.
Any suggestions appreciated.
|
|
|
|
|
Can't you use CSS to specify a spacing that will then apply to all controls of the same type ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I took a look after reading your post, it seems that line-height is the most likely candidate for that and I've looked at line-height being defined for labels, but then I also use other controls that contain labels, so I guess I would have to make it a class then apply it only to the ones I want, which in turn results in more code. Someone else is in charge of styling the controls and I don't want to break what they've done, but I guess if I just mess with that one line-height setting the rest won't be obliterated from the theme.
I've also noticed a lot of samples where the author just puts a < P > tag at the start of a pair of items like in my example, that works, but not sure how kosher it is to do it that way and the spacing is greater than the < BR > tag that IE creates.
|
|
|
|
|
Make both the label and the input field into block elements, that way you don't have problems with the line breaks (that works a bit funny in IE).
If you put an element around the tags, you can address them from css:
<div class="FormItem"><br />
<label>Label1:</label><br />
<input type="text" name="InputField1" /><br />
</div>
In the css you might want to do something like:
.FormItem { margin: 5px 0; }<br />
.FormItem label { display: block; }<br />
.FormItem input { display: block; }
---
b { font-weight: normal; }
|
|
|
|
|
I was hoping for something with a little less work involved, but your solution seems the best and is more future proof as well.
I made a div css class that wraps each pair of label/input in that div and set the div to have bottom padding.
thanks for your help.
Cheers!
|
|
|
|
|
<ul>
<li>
<span class="label">Label 1</span><input .../>
</li>
</ul>
This will allow your style sheet to completely dictate the layout.
On two occasions I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. - Charles Babbage
|
|
|
|
|
I've ended up doing something similar with divs that wrap the label and input pairs then defined some bottom padding in the div.
Thank you for the reply.
Cheers!
|
|
|
|
|
I have a webpart that displays the current weather using a zip code. Currently user has to provide zip code every single time the page loads. I wanted to save the zip code provided by the user so that my webpart can display the weather withouht user input.
Would it be best to save the zipcode under user profile? Or does webpart save their information somewhere else?
Thanks.
|
|
|
|
|
robert110 wrote: Would it be best to save the zipcode under user profile? Or does webpart save their information somewhere else?
The WebPart can handle this by persisting the user input in its own personalization table, you can see the sample code from here[^].
http://msdn2.microsoft.com/en-us/library/z36h8be9.aspx[^]
|
|
|
|
|
Hi,
I'm writing a web server to retrieve images and loops from a database.
Since those objects are not standard multimedia format, I want to convert them on the fly to jpg or avi basing on some params.
To do this I have an isapi filter that in case of the right header, send the requested object in the requested format.
I'm using an img tag in my asp page and the source is dynamically set as another page of the webserver that grabs the params and fires the isapi putting the header.
What i need is to cache the responsed object in such a way I don't need to redo everything in case of reclick.
Thanks
|
|
|
|
|
Hi,
I have the problem of refreshing opening window with server side handling. I have 3 windows; window 1 (file 'CourseSettingPopupFrame.aspx') on it has a javascript button to open a window 2 (file 'EvaluativeEditCommentsPopup.aspx'). Next, window 2 opens window 3 (file 'EvaluativeEditCommentOfManyCourses.aspx') by also using a javascript button. The 3 windows are opened in their own or separate windows. On window 3, I use a server-side asp.net button called "OK" to save data users enter on it after the button is clicked and the button's event handler looks like.
private void btnOK_Click(object sender, EventArgs e){
// do some stuffs
...
// Execute database to save entered data
...
// refresh window 1; close window 2 and window 3 using client-side javascript codes
Page.RegisterClientScriptBlock("msc",
" "
+ " var url = 'CourseSettingPopupFrame.aspx?SessionID=" + Request["SessionID"] + "&SYTermID=" + requestedSYTermID + "&SYCaption=" + SYCaption + "';"
+ " window.opener.opener.location.href = url; " // refresh window 1 with newly user-entered data from window 3
+ " window.opener.close();" // close window 2
+ " window.close(); " // close window 3
+ " </" + "script>");
}
*** The PROBLEM is, for the first time when window 3 and window 2 are opened and the data is saved to database and window 1 hence is refreshed by code segments above, it is OK to refresh window 1. However, if I hit button on window 1 to open window 2, and then window 3, and users enter or change data on window 3 and save, and refresh window 1, then the refreshing process this time causes window 1 freezing or keep doing something (like deadlock) or the mouse cursor has the shape of a clock, that means something keeps doing doing and other web window who opens window 1 is frozen and I must close IE on my computer to start over the application.
Do you guys have any ideas about this problem and how to solve it?
Thanks in advance.
<div class="ForumSig">johnaspnet</div>
|
|
|
|
|
Hi,
This has been bugging me for a while now
I'm trying to save a date value into SQL2000 DB. It keeps on throwing this Exception Error:
System.FormatException: The string was not recognized as a valid DateTime. There is a unknown word starting at index 0.
I have been researching how to parse this datatype, but the sites I have been to have not been user-friendly. If you know a good site, or a suggestion or even sample code, please let me know.
Thank you in advance!
EDIT P.S. I would like my date to be inputted in this format (dd/mm/yyyy) into a textbox.
|
|
|
|
|
Are you passing a DateTime, or a string to the database ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thanks for replying,
I'm passing a string to the database.
|
|
|
|
|
OK - why ? You're surely not storing a string in the database ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi,
Sorry for not posting earlier, I was unable to load this website on my PC for days for some reason.
The problem is sorted. Even tho I was storing a date in the database, I had to format it into English format.
Thanks for your replies. I'm sure there are many ways to do this.
Take care.
|
|
|
|
|
hello there
i have problem
i made a sitemap file and include in it some nodes which it`s url had querystring
like that
[SiteMapNode title="mypage" url="MyPage.aspx?id=1"]
when i bind this file to SiteMapPath control the sitemappath doesnot appear in "MyPage.aspx" the page that i include in it`s node querystring
anyone can help please
|
|
|
|