|
What is the problem ?
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 )
|
|
|
|
|
help sample
Boya - Badana - Tadilat ve Tamirat Isleri Bir Yudum Kahve Molasi (Coffee) Dügün Nisan ve Gelinlik (wedding)
Google Reklamlarinizi Sadece Siz Yönetin Elektrik Proje Tesisat Projesi Çizimi Illere Göre Nakliyat Firmalari Istatistik
http://www.evdenevenakliyatbul.com
|
|
|
|
|
help sample
İllere Göre Nakliyat Firmaları İstatistik
http://www.evturnakliyat.com
|
|
|
|
|
example:user select items like item1,item2,item5,item3, the last selected item is item3,how to get it with javascript?
One is never too old to learn
modified on Wednesday, February 20, 2008 8:56 PM
|
|
|
|
|
--Find the object in the form
var ddlObj = document.getElementById('ddlName');
--Find the selected Index
alert(ddlObj.selectedIndex);
|
|
|
|
|
To:mgr_2k7
Maybe you can't understrand what i mean. Here is a multiple dropdownlist as below:
<select id="sel_test" name="sel_test" size="5" multiple="multiple" onchange="javascript:checkSelectedCount(this);" width="100px"><br />
<option value="item1">item_A</option><br />
<option value="item2">item_B</option><br />
<option value="item3">item_C</option><br />
<option value="item4">item_D</option><br />
<option value="item5">item_E</option><br />
<option value="item6">item_F</option><br />
<option value="item7">item_G</option><br />
<option value="item8">item_H</option><br />
<option value="item9">item_I</option><br />
<option value="item10">item_J</option><br />
<option value="item11">item_K</option><br />
<option value="item12">item_L</option><br />
<option value="item13">item_M</option><br />
<option value="item14">item_N</option><br />
<option value="item15">item_O</option><br />
<option value="item16">item_P</option><br />
</select>
When user multiple selected as order: item1,item4,item2 -------------item2 is the last selected item
When user multiple selected as order: item2,item3,item1 -------------item1 is the last selected item
When user multiple selected as order: item4,item2,item3 -------------item3 is the last selected item
------------------Understrand????
So,how could i get the last selected item?
One is never too old to learn
modified on Wednesday, February 20, 2008 8:59 PM
|
|
|
|
|
I don't think you can find like this
"Legacy code" often differs from its suggested alternative by actually working and scaling.
—Bjarne Stroustrup
|
|
|
|
|
The following code properly replaces the node's text property with the value from the form. However,
I need to replace the CDATA section of the node. What would be the proper syntax to accomplish this
in VBScript?
Set objXMLDoc = Server.CreateObject("MSXML2.DOMDocument")
objXMLDoc.async = false
objXMLDoc.loadXML(sdata)
Set NodeList = objXMLDoc.getElementsByTagName("*")
For Each Elem In NodeList
If Elem.tagName = "comment" Then
Elem.Text = Request.Form("txtcomment")
End If
Next
|
|
|
|
|
I just require a clarification from people who know coz I find it hard to believe that I cannot do:
MyClass::MyFunction()
{
MyOtherClass * pMyOtherClass = &myOtherClassInstance;
pMyOtherClass->MyOtherClassFunction(void (*AnonymousMethod)(IN const MyClass * pClass)
{
doSomething(pClass);
});
pMyOtherClass = NULL;
}
Where MyOtherClassFunction is declared (in MyOtherClass) as:
MyOtherClass::MyOtherClassFunction(void (*AnonymousMethod)(IN const MyClass))
{
for(INT i = 0; i < endOfMyLoop; i++)
{
AnonymousMethod(arrayOfMyClassObjects[i]));
}
}
Or something similar...
I have to declare a member function in MyClass with the same signature as the anonymous method expected by MyOtherClass::MyOtherClassFunction , so that I can pass it as a member function pointer.
Love is the illusion that one kiss is different from another. - e.m
|
|
|
|
|
You're writing a web site with C++/CLI ?
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 )
|
|
|
|
|
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
|
|
|
|