Web Forms :: Who Give Output That Which Hypelink Is Click
Dec 14, 2010may i know javascript function who give output that which hypelink is click?
View 4 Repliesmay i know javascript function who give output that which hypelink is click?
View 4 Repliesi am having one image and Show high Resolution image on the same page...
now i am opening the new window and showing the big image in that window...
but now instead of opening the new window and showing the image i have to give download Image option to the user..
I have a gridview control with a details column. I want the user to click details and it give me a pop-up showing details of the particular row. Any idea on how to do this using JQuery?? Looking for an example with code..
View 1 RepliesI have create a masterpage and add content page include user (firsname,lastname,password,new password,confirm new password adn etc..)detail update field. i try to give a client side validation all the function work,but in confirm password its not hide wen give a correct password.. anybody give correct solution..code are below..
[Code]....
First off, suggest better ways if you want rather than patch up this code. I am just starting this project and it is first time I have tried to code a web site so anything you suggest is very much welcomed. I have spent the last 2 and 1/2 days trying to find workable answers to this but none I have found and tried seem to fit. If needed I can email screens shots or code. I am trying to construct a website that will have the same main theme throughout as far as the header, navbars sitemap, and footer go. Naturally the content will vary from page to page. I want to use a single master page and css stylesheet for this main theme and I will change the content format as needed per page because each page may vary somewhat.
However, about 15 of the pages will all use the same format for their content and this format will differ from the rest of the site but the format of the main theme will stay the same. So I am trying to create a nested master page to use to format the just the content area for all these pages while retaining the main theme for the header, etc.. I believe I should use a separate css file with the nested master page to handle the formatting of the content areas for these 15 pages. I have code that looks like it works when viewed in web developer but design view but does not work when viewd through a browser (IE, Chrome, Firefox). So far I have the following done in web developer.
If it helps the code and screen shots follow. Master Page called "Parent.master". For all theme throughout site Nested Master Page called "Lab.master". For the 15 like pages Primary stylesheet file for main theme called "StylesheetNew.css" For site theme Secondary stylesheet file to syle the 15 like formatted pages. It is called Labmaster.css Labs.apsx file to use as first of the 15 like pages.
Finally screens shots from web developer and browser. Sorry try as I might I could not capture screenshots and put them into this post. The problem is that web developer shows all the area (many lines high) with gray background and with the XXX text that I want to allocate for content in the 15 pages. Yet all the browser show is one line of text o a white background followed by the footer. It looks like the LabStyleSheet works in Web Developer but not in a browser.
Parent.master
<%@ Master Language="VB" CodeFile="Parent.master.vb" Inherits="MasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]">
<html xmlns="[URL]">
<head id="ParentHeader" runat="server">
<title>HX5</title>
<asp:ContentPlaceHolder runat="server" id="headerPlaceHolder" />
<link href="~/StyleSheetNew.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div id="wrapper" >
<div id="Header" >
<table class="hdrtbl1" >
<tr>
<td id="hdrtd1" style="width:175px; height:100px;" >
<img id="logo" alt="Logo" src="../Images/logo.png" style="width: 136px; height: 87px" />
</td>
</tr>
</table >
<table class="hdrtbl2" >
<tr><td id="hdrtbl2td1"><b> Providing Professional Technical, Manangement and Business Solution</b></td></tr>
<tr><td id="hdrtbl2td2"> <b> Services since 2004 </b></td></tr>
<tr> <td id="hdrtbl2td3" align="center" ><img id="rdln" alt="RedLine" style=" height:3px;" src="../Images/RedLine.png" /></td></tr>
<tr><td id="hdrtbl2td4" > <b>Committed to Excellence In All We Do</b></td></tr>
</table>
</div>
<div id="navbardiv">
<ul id="topnav">
<li><a href="../pages/about.aspx" >About Us <img style=" border: none; " src="../Images/arrow-down.gif" /></a>
<!--Subnav Starts Here-->
<span>
<a style="font-weight:lighter; " href="#" >Who We Are </a> |
<a href="#">Locations</a> |
<a href="#">Business Classifications</a> |
<a href="#">Contact Us</a> |
</span>
</li>
<!--Subnav Ends Here-->
<li><a href="../pages/services.aspx">Services <img alt="arrow" style="border: none; " src="../Images/arrow-down.gif" /></a>
<!--Subnav Starts Here-->
<span>
<a style="font-weight:lighter; " href="#" >Capabilities</a> |
</span>
<!--Subnav Ends Here-->
</li>
<li><a href="#">Customers <img style=" border: none; " src="../Images/arrow-down.gif" /></a>
<span>
<a style="font-weight:lighter; " href="#" >Subnav Link</a> |
<a href="#">Customer Locations</a> |
<a href="../pages/labs.aspx">Labs</a> |
</span>
</li>
<li><a href="#">Careers <img style=" border: none; " src="../Images/arrow-down.gif" /></a>
<!--Subnav Starts Here-->
<span>
<a style="font-weight:lighter; " href="#" >Joining the HX5 Team</a> |
<a href="#">Current Opportunities</a> |
</span>
</li>
</ul>
</div>
<div id="subnavbar" >
<!-- <asp:SiteMapPath ID="SiteMapPath" runat="server">
</asp:SiteMapPath> -->
</div>
<div id="topContent" style="border-bottom:solid 1px #191970;">
<table>
<tr><td style="height:30px; width:900px;" >
<asp:ContentPlaceHolder id="TopPlaceHolder" runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
</table>
</div>
<!-- <div id="mainContent"> -->
<asp:ContentPlaceHolder id="MainPlaceHolder" runat="server" />
<!-- </div> -->
<!-- <div id="lowerContent"> -->
<asp:ContentPlaceHolder id="LowerPlaceHolder" runat="server">
</asp:ContentPlaceHolder>
<!-- </div> -->
<div id="footerContent" style=" height:50px; width:900px; text-align: right; background-color: #ccc; ">
<span style=" font-family: Arial, Helvetica, sans-serif; font-size: xx-small; font-weight: bold; color: #000080; margin: 30px 20px 0px 0px;"> Copyright 2010 HX5, LLC All rights reserved</span></div>
</div>
</form>
</body>
</html>
I'm Using Ajax POP UP Extender Control ... and The Panel Which will appear in The POP UP Has Data List ... Inside That DataList i have Image Button For Each Item In Data List.... When I click in any Image Button in That DataList ......I Get That Error At run time Microsoft JScript runtime error: 'this._postBackSettings.async' is null or not an object
... My ASPX Code is
[Code]....
And I put that code inside update panel and ToolkitScriptManager
How would I create a list then on click add data to the list which is then stored into a session variable, then on another page retrieve the variable and output them? Currently I have:
Page Load:
List <myClass> listName=new List<myClass>
OnClick:
listName.add(3);
listName.add(4);
Session["IDs"]=listName;
Second Page
I need to get the whole list and add output the list so I can output (hopefully) the '3' and '4'.
I am new to Asp.net MVC. How to give validations for my forms.
View 2 Repliesin my web application i want to give theme or css dynamically sal for example there are 5 radiobuttons each with some different theme user will choose any one and than that theme should apply to his page.i don't want give class name dynamically i want to give entire theme dynamically.
View 2 Repliesthis might be a little bit random but im wondering how do i give each registered user his own page that is only editable by him but at the same time viewable by other users like :
1- user registers and gets his own page and then lets say he can add some text .
2- other users can view the page but not customize or edit it.
I know in javascript, you can provide an EVENTARGUMENT AND EVENT TARGET when doing a __POSTBACK. This is great, however in ASP buttons, such as:
<asp:LinkButton ID="TIABC_1" runat="server">TI ABC</asp:LinkButton>
subsequently, doing this: string ctrlname = page.Request.Params.Get("__EVENTTARGET"); will get a control called TIABC_1 however, when I do: string ctrlname = page.Request.Params.Get("__EVENTARGUMENT"), i get nothing.so how can I embed this control with an event argument?
i am using one linkbutton here i did used accesskey is "S" when did i click on that key on keyboard focus is going there but no action is not working.. ....
i want to give one key like Alt + S the action was performed.... casusvalidation property is not working..
I have an optional DropDownList. If the user dosen't select any value the top most value is "0" unfortunatly the only way to send DBnull.Value to the database is check if the value is 0 and if it is then send dbnull. Is there a way you can do this within the dropdownlist without having to check for each and every dropdown?
View 5 RepliesHow to give a label Autopostback abilty
what i tried is lblarr.Attributes.Add("AutoPostBack","AutoPostBack");
I have a web page where I have formview and grid view. The formview's default mode is in update mode. The user needs to enter a value or modify a value and then needs to click update button. I want to show them a message when they enter or modified something but not clicked the Update button. The message will be like: "Do you want to save the changes"
View 3 Replieswriting name space as URI instead of HTTP URL in WebServie like this [WebService(Namespace = "http://www.samplesite.com/somepath/sth100/Service1.asmx", Name = "STHDBtoXMLWebService")]
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="soonthyehang.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
How to give the Permissions to the users & Administrator in the asp.net...For example : I just want to give the permissions to the users that screens only appear for User remaining will be hide in the menu. What are the proper steps for the permissions in asp.net ....
View 1 RepliesAfter about 10 mins my web app will give me an error when i logout or try to save page. I have the sessions set and dont understand why I get this problem.in webconfig i have this.
<system.web>
<sessionState mode="InProc" timeout="60"/>
login
username 01
pswd 1 .
go to any page and sit there for 10-20mins or just leave it logged in and try to logout after 10-20mins[URL]
[Code]....
i have following requirement.
1) A website will send a get request with a message and callback url as a query.
i want to generate an image and save it on my server and give a url to the calling server on the callback url as a query paramater.I already have the code to generate the image.I want to know how to save it on my server to be available to the calling server.and he should have no access to other images in the folder.
2)Can any one also tell me how to send an image to a url in a POST request.
im developing website for my college.I have Recent updates in my home page in that i want to display newly added or updated things in recent updates.
sourcecode and Instructions for how to create link and how to redirect that to corresponding forms and how to create forms for particular updates dynamically then i want to make scroll the updates in GridView using Vb.net.
I have bind DropDownList from database. I want to give facility to user such that, when user type in DropDownList ,it behave like textBox.
View 2 RepliesI have read about Ajax Control Toolkit that should solve pop-up window requirements, but I need a solution that doesn't involve me downloading this. I have an editable FormView from where I want to pop a "warning window" whenever the user clicks a button that closes the Form. This "warning window" should have the following controls:
Label: "Do you want to save changes?"
btnPopSave: "Yes" >> triggers databinding of FormView fields to datasource, then closes warning window and the FormView
btnPopClose: "No" >> closes warning window, and FormView without databinding
If this is not possible (or too complicated), I think I can settle for just a warning window with:
Label: "Make sure you've saved changes." and no other controls
btnPopClose: "OK" >> closes warning window, and FormView
I have a XSD file in my website. I need to give its path in code.
using (XmlTextReader textReader = new XmlTextReader
(@"C:VS2008ProjectsInterfaceSchema.xsd"))
But, If my website move to dev server, QA server, Prod server, I need to change the path here. Can we do any other way instaed of whole path. Like example for css file, we just name of <link href="filen.css">.
I tried to replace the path with "/Schema.xsd" but getting exception file not found. I tried eith ~ root symbol also. No use.
I also can do by keeping the value in webconfig. Even though, i need to change it every time.
How can i give validation to all controls (like textbox, radiobuttonlist, checkbox, fileupload) in my aspx form in server side.... and also validation for controls with regular expression in serverside...
View 3 RepliesHow could I user some feedback, using AJAX or progress bar, of the loading of web parts on the initial page load ?
View 6 Replies