|
If you are moving the horizontal scrollbar then you don't need to do anything to header because moving X position doesn't affect to Y position.
|
|
|
|
|
Hello ... friends ....
I have following problem ....
I have two applications one is win application and other is web application ...
now if one user logged in using username & password in win application and through this win application if he/she want to visit site then they have to relogin in site but i want that they can login on site using that username & password which he/she had entered earlier. that means the user will be authenticate only once so they have to give there username & password twice or more as if they move from site to win application back ...
p;ease help .. me ..
thanking you in advance ...
Mihir
|
|
|
|
|
I tried to implement SSL on my local IIS. To do that I open the directory security tab in the site properties. But the "Server Certificate" button is disabled. Please let me know how to enable it. I am using IIS 5.1
Thanks,
Hogan
|
|
|
|
|
- Right-click on "Default Web Site" in IIS. (Not on sub-directories )
- Go to "Directory Security" (You will see "Server Certificate").
Hope it helps.
|
|
|
|
|
How to open a pop up window on clicking hyperlinkfield inside gridview,also i have to pass to querystrings to the second page.
<asp:HyperLinkField HeaderText="View Resume" Text="View" Target="_blank" DataNavigateUrlFields="cand_id,rrf_id" DataNavigateUrlFormatString="ResumeDetails.aspx?cand_id={0}&rrf_id={1}" >
</asp:HyperLinkField>
thnx for ny reply..
MiThuN NaRaYaNaN
|
|
|
|
|
mithun narayanan wrote: How to open a pop up window on clicking hyperlinkfield inside gridview
On RowDataBound event of gridview, find the hyperlink button and add Onclick attributes there.
|
|
|
|
|
thanx navaneeth....
But still prblm..
i have already tried with row command,but its not entering inside this function i tried putting break points.also thers no command name for hyperlink fields.also ia am not using hperlink buttons am using hyperlink field
Mithun Narayanan
modified on Tuesday, December 18, 2007 6:39:43 AM
|
|
|
|
|
mithun narayanan wrote: ia am not using hperlink buttons am using hyperlink field
Have you tried in Control collection ?
|
|
|
|
|
thnks Navneeth,that still not workd., i ve found alternate way for that
<asp:TemplateField HeaderText="View Resume">
<ItemTemplate>
<asp:Hyperlink Text="View" ID="Hyperlink2" NavigateUrl=<%#"javascript:my_window=window.open('ResumeDetails.aspx?cand_id=" + DataBinder.Eval(Container.DataItem,"cand_id").ToString() + "&rrf_id=" + DataBinder.Eval(Container.DataItem,"rrf_id").ToString() + "','my_window','toolbar=no, location=no, titlebar=no, linkbar=no, directories=no, status=yes, menubar=no, scrollbars=yes, resizable=yes, width=800, height=600, copyhistory=no');my_window.focus()" %> Runat="Server">
</asp:Hyperlink>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" />
</asp:TemplateField>
|
|
|
|
|
First you need an Itemplate in the GridView with Hyperlink as one of the required columns. I think you already have that. Then implement the row data bound event as below:
protected void GridView_RowDataBound ( object sender, GridViewRowEventArgs e )
{
LinkButton lnkBut = new LinkButton();
HyperLink hlnk = new HyperLink();
if ( (ListItemType)e.Row.RowType == ListItemType.Item ||
(ListItemType)e.Row.RowType == ListItemType.AlternatingItem )
{
hlnk = (HyperLink)( e.Row.FindControl("HyperLink1") );
string strPathFromDB = hlnk.Text; //NOTE: OR this can be a predetermined path hard-coded here if you wish to have the same path for all rows. You can add your query string after the path.
hlnk.NavigateUrl = String.Format("{0}", strPathFromDB.Replace("\\", "/"));
hlnk.Target = "_blank";
ALTERNATE WAY: Attach javascript to Hyperlink.
url = "DocumentLinkControl.aspx?TradeDate=" + tradeDate + "&CounterParty=" + counterParty
lnkBut.Attributes.Add("onclick", "window.open('" + url + "',null,'left=400, top=50, height=800, width= 650, status=no, resizable= no, scrollbars= yes, toolbar= no,location= no, menubar= no');");
}
}
Let me know if this didnt work..
Pankaj Chamria,
Software Programmer.
|
|
|
|
|
thnks Pankaj,that still not workd., i ve found alternate way for that
<asp:TemplateField HeaderText="View Resume">
<ItemTemplate>
<asp:Hyperlink Text="View" ID="Hyperlink2" NavigateUrl=<%#"javascript:my_window=window.open('ResumeDetails.aspx?cand_id=" + DataBinder.Eval(Container.DataItem,"cand_id").ToString() + "&rrf_id=" + DataBinder.Eval(Container.DataItem,"rrf_id").ToString() + "','my_window','toolbar=no, location=no, titlebar=no, linkbar=no, directories=no, status=yes, menubar=no, scrollbars=yes, resizable=yes, width=800, height=600, copyhistory=no');my_window.focus()" %> Runat="Server">
</asp:Hyperlink>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" />
</asp:TemplateField>
|
|
|
|
|
I want to send the ImageUrl fetching from the database to the Javascript function
<img onmouseover="javascript:doTooltip(event,0,'<%# DataBinder.Eval(Container.DataItem,"Image") %>')" onmouseout="hideTip()" id="myImage1" name="myImage1" src='<%# DataBinder.Eval(Container.DataItem,"Image") %>' Runat="server" Height="125" Width="125" />
But this piece of code throwing an Parser Error given below
The server tag is not well formed.
But if i give the path of a particular image then it works great....as given below
<img onmouseover="javascript:doTooltip(event,0,'Images/img1.jpg')" onmouseout="hideTip()" id="myImage1" name="myImage1" src='<%# DataBinder.Eval(Container.DataItem,"Image") %>' Runat="server" Height="125" Width="125"
|
|
|
|
|
Hi all,
I have asp page. In that I want to call a aspx page in the background.That called aspx pages will send and receive
mail in the background.The calling of the aspx pages should be hidden from the user.Is it possible
Thanks
Dana
|
|
|
|
|
You could hide the other page in an iframe, but overall, it sounds like your design is a mess. There are better ways of doing this sort of stuff, what's the point of a page you can't see that sends and recieves mail ( how ? To who ? ) only when the user is on another page and cannot see that it's even there.
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 )
|
|
|
|
|
Dear Christian,
Thanks for ur reply. What I am doing is it has to extact the mails from the server and to show the user.This sending and receiving module is done is aspx. But the calling page is asp page.How can I do this one ?
Dana
|
|
|
|
|
I have to pass user name and password for the LDAP authentication but during this process password is getting saved into the local machine RAM and which can be retrived later... So how I can use MD5 hash code for preventing this.
|
|
|
|
|
How do other programs access your RAM ?
The way an MD5 hash works is destructive, if you have an MD5, you cannot use it to get your original password back. They are used sometimes to store passwords, so the password sent is an MD5 hash of what is typed, and the MD5 hash is what is stored. The main idea here is that the actual password is not in the DB and in theory, people are not likely to work it out from the MD5. MD5 is not all that secure, nowadays.
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 )
|
|
|
|
|
Christian Graus wrote: people are not likely to work it out from the MD5. MD5 is not all that secure, nowadays
I agree, and I don't even bother treaching MD5 in my class. I stick to SHA-256 or better.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Who's on your server accessing the RAM?
|
|
|
|
|
Why does that question make me think pictures of cats inside computer cases?
|
|
|
|
|
Too much lunchtime wine??
|
|
|
|
|
|
Dear Programmers,
I am developing a website in which I have placed an imagebox in it. The pictures are stored in MS-SQL-SERVER 2000. From their they are showing me the right path. At loading time I again recheck them the values are correct but when I assign them to imagebox as its url, It does not display the image.
Please Note that I am using VB.NET as language in ASP.NET
MY Website is in ASP.NET.
Please help me friends as soon as possible.
Your Friends,
Zeeshan Ahmad Memon.
|
|
|
|
|
you set the image using a URL from the DB, is the URL wrong, or does it just not display ? ( well, if the URL is wrong, it won't display, but is the problem that the URL changes, or that what you think is a valid URL does not work ) ?
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 )
|
|
|
|
|
Thanx for giving reply so quick. My friend the path is write and during debugging it show me the path correct. I have also place some text with the image component button. I show me the text but it do not show me the picture. Please help me
|
|
|
|