|
Working on first web dev site in VWD 08. I can get the FormView control to sync w/ GridView control using the code below and ONLY for the first 10 records. When I click the pager link to page 2, I can't get the next batch of records to display in FormView, it stops at 10.
What Gives?
Question:
What code or property setting will make this function work?
Current Code:
Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged
FormView1.PageIndex = GridView1.SelectedIndex
End Sub
|
|
|
|
|
Gosh, you really did spam the site, didn't you ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
We have 2 asp.net sites (located on the same machine) :
• WebUI site:
o it's an ASP.NET application
o configured to run windows authentication
o II6 - configured application pool identity user as a valid AD user (part of the IWAM group)
• Webservice site:
o .net web service site,
o configured to run as anonymous in II6 , configured its own app. pool identity as a valid AD user (part of the IWAM group)
From WebUI we are making an internal call to the Webservice site.(we already are in production now).
Everything worked fine for about 1 week, then we started to get the following error (extras from our log file):
SOURCE: System.Web.Services
LOGGED AT: 2/17/2008 12:50:05 AM
MESSAGE: The request failed with an empty response.
FORM VALUES:
QUERYSTRING:
FUNCTION: System.Object[] ReadResponse(System.Web.Services.Protocols.SoapClientMessage, System.Net.WebResponse, System.IO.Stream, Boolean)
STACKTRACE: at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at WTIS.RCD.Ops.UserService.UserBSL.isValidIngresUserBSL(String userId) in e:\ccshare\GRIDLOCK_Genesis_RCD_view\base_dev\RCD\WTIS.RCD.Ops\Web References\UserService\Reference.cs:line 761
at WTIS.RCD.Ops.UserFCL.isValidIngresUser(String userId) in e:\ccshare\GRIDLOCK_Genesis_RCD_view\base_dev\RCD\WTIS.RCD.Ops\UserFCL.cs:line 323
at CaptchaImage._Default.checkAutoLogin()
REFERRER: INTERNAL
CREATED BY: login
USER TYPE: SYS
When we got this error we isolated the following:
• web service site was ok at the time (called with no issues from another production client located on external network)
• copy the whole WebUI site (caller of the webservice) on another site on :
o same machine - resulted in same error
o different machine - no error
We changed for the WebUI site the application pool identity to another user (part of the “admin” group on this time) , but after 1 day the error come back.
Now we are running the WebUI under “Network service” account, but we need to have a special account with special network permissions.
Any ideas pls.?
Thanks a lot
|
|
|
|
|
lu20_20 wrote: From WebUI we are making an internal call to the Webservice site.
By "WebUI" you mean the Server side code right? So you are making an out of process call to a web service when the software is installed on the same machine? Why don't you just use the component in process? Sounds like a complete abuse of Web Services to me.
led mike
|
|
|
|
|
I agree with you normally , but not this is the only scenario why we adopted this architecure.
The same web apps. is distributed on multiple deployments , this just happened to be one of them ..for the moment.
We are not changing the deployment configuration or application architecture...and actually not this is our issue here....
thanks anyway
|
|
|
|
|
So, technically I'm using JavaServer Faces and JSP, but if anyone has a solution in AJAX or anything else for that matter, I'm all ears...
-- Dropdown list.
-- Contents are pulled from database.
-- If the contents happen to be super long (which they do), the dropdown list size is automatically extended to the width of the largest select item. -- OK
-- Setting the size of the dropdown list using style="width:343px" correctly displays the size of the control inside the table it sits in.
**But I need the entirety of the select items displayed when you drop down the list items in the control.
In a perfect world this would just work. And in the brilliance that is Firefox -- IT DOES!!!!
However, it does NOT work in IE. The dropdown and the list contents (select items) are also truncated by the size of the control stated above.
Any ideas? Please and Thank you! in advance. This has been getting the better of me for a day and a half!
Aubrey
"Tarter Sauce" = a 7yr old's version of "WTF!"
|
|
|
|
|
aubndez wrote: However, it does NOT work in IE.
You have two choices then: 1) Recommend that your users avoid crappy browsers, or 2) write your own drop-down list entirely in HTML+JS, work around all the various display bugs in all supported browsers, and make it work exactly how you want it to. I've done #2, and i wouldn't recommend it for something like this.
But who is the king of all of these folks?
|
|
|
|
|
Hi All,
Stuck in a weird position. I have written a code which lists the various documents in a folder.
As soon as I click on the names of the documents they open up as they are. Word files in Microsoft Word, Excel in Excel etc...... The functionality works absolutely fine as long as I am debugging.
As soon as I fire the same Application from IIS 5.1, the listing is proper, but on the click of the names nothing happens. I have even checked the taskmgr and can c the respective processes like WINWORD.EXE, EXCEL.EXE running, but I cannot c the docs.
Can u guys help me plz?
|
|
|
|
|
Sounds like the processes are running in the background instead of focus being given to them.
"Tarter Sauce" = a 7yr old's version of "WTF!"
|
|
|
|
|
This is the sample code I used.....
Word.ApplicationClass oWordApp = new Word.ApplicationClass();
oWordApp.Visible = true;
Word.Document oWordDoc = oWordApp.Documents.Open(ref fileName,
ref missing, ref readOnly, ref missing,
ref missing, ref missing, ref missing,
ref missing, ref missing, ref missing,
ref isVisible, ref missing, ref missing,
ref missing, ref missing, ref missing);
oWordDoc.Activate();
Can u plz help me?
|
|
|
|
|
Hi All,
I have a html page in my project in which there is a link for a pdf file.
When i click(left) on that link it opens in brwser without showing the save file dialog box as it is showing when i do right click.
Thanks in advance,
Vijay Kumar
|
|
|
|
|
Use the content-disposition header like this:
<br />
Response.ContentType = "application/pdf";<br />
Response.AppendHeader("Content-Disposition","attachment; filename=document.pdf");<br />
Response.TransmitFile( Server.MapPath("~/files/document.pdf") );<br />
Response.End();<br />
|
|
|
|
|
Hi
I have done this and the Open and Download works fine. But if I click on the next link on my original Web part (MOSS2007) then it does not even do a Postback. If I refresh the page and click on the next link it opens correctly.
Any thoughts?
Thanks
|
|
|
|
|
Hi.
I am trying to change the title border of the web - parts in MOSS 2007.
(I am using Sharepoint Designer 2007)
I have managed to use 3 pictures - left, middle and right - to appear as border on the web - part title, but I have problems with alignment even though all the picture are same size. The problem is that the left and right pictures get 1 px under the middle picture.
I use this code wich I found on this site, but it doesn't work out for me.
.ms-WPHeader td { background: url('webpartBg.gif') top left repeat-x; padding-right: 0 !important; }
.ms-WPHeader h3.ms-WPTitle { background: url('webpartCornerLeft.gif') top left no-repeat; color: #BD8C2A; }
.ms-WPHeader .ms-HoverCellInActive, .ms-WPHeader .ms-HoverCellActiveDark { background: url('webpartCornerRight.gif') top right no-repeat; padding: 7px 5px 5px 5px; }
.ms-WPBody { padding: 0 5px 5px 5px; }
.ms-WPBorder { border-color: #FFECC5; }
.ms-partline { background: #FFECC5; }
.ms-WPTitle { padding: 7px 0 5px 10px; }
.ms-WPTitle a { color: #BD8C2A; }
http://www.thesug.org/blogs/kyles/Lists/Posts/Post.aspx?ID=9
Any suggestions ?
|
|
|
|
|
Hi,
I have a directory in which i have multiple images..
In javascript i want to reall all the image files from the directory and display it as a slie show.
The images can be added to the directory at the time when the slideshow is running, so that is the reason i dont want to specify any image name in the code.
What i am sure is that the image file extension will be ".Jpg"
Thanks in advance.
Deepak Surana
|
|
|
|
|
You can't do that. You have no access to the file system from Javascript.
What options do you have for running server side code? ASP.NET? ASP? PHP? JSP? CGI?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hello All,
I am trying to create a website using ASP.NET where an authorized person can change the contents of the entire website as he/she pleases. This person does not need to know how to program what so ever, all he/she needs to do is login and use the following tools.
1)I am planning to use text boxes to allow changes of text elements of any of the pages of the website.
2)For changing images of a webpage, I am going to allow this person to have the ability to upload images from his/her computer.
Can what I have mentioned be done? If so please elaborate, I tried to create the home page using ASP.NET but ran into trouble after launch. The page did not work, I asked my hosting company's tech support why it did not work and was told that it must be written using HTML. The primary reason I tried to write my home page using ASP.NET is the security features of ASP.NET. Is there a way around this problem? Any suggestions will be greatly appreciated, thank you in advance for your time.
|
|
|
|
|
Yes, it can be done. The best place to ask ASP.NET questions, is the ASP.NET forum.
ASPnoob wrote: I asked my hosting company's tech support why it did not work and was told that it must be written using HTML.
I guess that means your hosting company sucks.
ASPnoob wrote: Is there a way around this problem?
Get a decent host.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
As for editing a web page without knowing any HTML, this is an extremely complex task for any but the simplest of web sites/edits. It's very easy for a user to inadvertently screw up formatting, etc.
Your hosting company appears not to support ASP .NET pages. You should find one that does. This is slightly more expensive as a rule, but there are plenty that do it. Make sure the right version of ASP is supported - ASP differs from ASP .NET 1.0, which differs from ASP .NET 2.0, etc.
Steve
|
|
|
|
|
hi,
I m facing a problem from last week.
I've my own created Flash Movie which is use to play FLV files from FMS2.0. problem is that this Movie is placed on asp.net web Form. movie is accessing some parameters form javascript function which is written on web form.Its working fine on Mozill but on IE6 or IE7 it is not supported under form Tag. I m using ExternalInterface for Communication of JavaScript and Flash8.0. if some one can help me plz let me know.
rup
|
|
|
|
|
I've got two websites, one original, the other based off the original.
I like to diff/compare the websites using diff automatic comparison tools to see what text/information has changed. The problem is, the HTML code and layout has been changed drastically so I can't do a straight text file compare. What am interested in is purely the raw content (paragraphs, sentences, etc.). The original site has no javascript, onmouseover hovers, etc. The new revamped website has javascript, onmouseover hovers, popups, etc.
How can I create a script (Perl? C++?) so that it extracts the main text BODIEs from both sites? I guess also have to specify starting & ending delimiters. Once extracted, it would need to convert < p >paragraph tags, and strip out < a onmouseover... > anchor links (while maintaining the word inbetween the anchor link ofcourse). The new website uses two spaces after each full stop while the old website uses 1 space. Will this matter?
Once we got the plain text, how to wrap the paragraphs after 80 characters per line... so that we can easily do file compares.
And please do not suggest copying and pasting the text into NotePad or Word. I said 'website' which means they contain dozens of html files (probably 100s). Plus, I like a script to automate this compare process so I can repeat the process in future and remind myself of diffs....
modified on Friday, February 15, 2008 10:29 AM
|
|
|
|
|
Easiest way is to open 'em both in a browser, select all, and paste into a text document. Sure, you could write a few regexs to do the job, but why bother, it's already done...
|
|
|
|
|
A "quick and dirty" way to do all this is to use, say, JavaScript to recursively replace a node's innerhtml values with the innerhtml values of the node's children, e.g.
<x>asdf<y>g</y></x> -> <x>asdfg</x>
where the top node is the body tag. Use .replace, .innerHTML and .outerHTML.
I don't know if that'll even work, as I haven't used outerHTML a lot. I'm assuming it shows up in the same places as innerHTML.
If you didn't need to mess around with <p> tags, you could just use innerText.
There are similar methods you can use in ASP and VB - Perl and C++ are unfortunately poorly known to me.
Spaces at the ends of sentences will matter with most compares - just replace ". " with ". "
As for wrapping, remove all line breaks, then for loop through backwards and stick line breaks in every 80 characters.
|
|
|
|
|
I need a tool to get me the substring between delimiters then 79char
line wrap the result and then diff... for both oldsite/old1.htm and
newsite/new1.htm
As for web crawling, old site is local, new site is online. But I
rather hard code the URLs in a big list (mapping).
I think I'll use Perl (maybe Python), to:
1. for each item in mapping list
1.1 download newsite/html file
1.2 substring using newsite delimiters on newsite file
1.3 substring using oldsite delimiters on oldsite file
1.3 html2txt/hindent both oldsite & newsite file and line wrap 79char
and put into 2 separate new folders (diff1, diff2).
1.4 repeat through mapping list
After that I can use Beyond Compare to compare the diff1 & diff2
folders. Hopefully both corresponding text files will be 79char line
wrapped with whitespace down to 1 char (eliminating 2 or more
consecutive spaces, and tab spaces). Also maintain carriage returns?
|
|
|
|
|
Sounds good to me. A couple of things to watch out for:
1. Carriage returns - since these don't show up in the formatted site, I'd get rid of them.
2. Be wary of "<" and ">" signs when you're building your delimiter list - unless you are looking for a very limited list of tags, it would be better to split things by <...> and </...>, and deal with lone "<" and ">" signs than to program every possible tag in. It also doesn't rule out looking for <p...> tags.
Steve
|
|
|
|
|