Forum Array

Web Forms :: Call Javascript Function From Code Behind From Page.aspx.vb

how can i call javascript function from code behind from my Page.aspx.vb. in my Page i have a button i want to add this function to my button  onclick="refreshParent();"

View Answers

Very Similar Questions

Call Javascript Function From Code Behind After Server Side Code Executes
stackoverflow.com
I have an asp.net button, that when clicked calls a code behind function. The function does some evaluation, and then I want to call javascript from within this asp.net function.

Web Forms :: How To Generate HTML Code By Commands From The Code Behind Page
forums.asp.net
how to generate HTML code from the code behind? I would like to build a form that generate an html code inside a for loop. I will let the user enter the photo name and No. of photos Then I will generate an HTML code like this: <a href="http://www.mzinj.org/images/gallery/Photo%20(1).jpg" target="_blank"> <img src="http://www.mzinj.org/images/gallery/Photo%20(1).jpg" alt="" width="345" height="247" /> </a> <br /> <a href="http://www.mzinj.org/images/gallery/Photo%20(2).jpg" target="_blank"> <img src="http://www.mzinj.org/images/gallery/Photo%20(2).jpg" alt="" width="345" height="247" /> </a> <br /> <a href="http://www.mzinj.org/images/gallery/Photo%20(3).jpg" target="_blank"> <img src="http://www.mzinj.org/images/gallery/Photo%20(3).jpg" alt="" width="345" height="247" /> </a> <br /> depending on the No. of the photos the code will be duplicated in the loop Then I will display the result of the loop in label or in a textarea to let the user copy it any where The problem is that while compiling my code it considers the HTML code as a part of the behind file and gives errors on the single quote, the double quote and on the parentheses 

How To Call Code Behind Button Click Event Or A Code Behind Method From Javascript
www.vbforums.com
how do you call code behind button click event or a code behind method from javascript.

Web Forms :: List Box Value Is Not Populated And Reflected In Code Behind With JavaScript
forums.asp.net
I have a listbox that I am populating at runtime with javascript. After the listbox is populated I am using a button to get that value. on button click when I am trying to get the value it is the listbox item count is 0, Can anyone tell what's wrong after t he javascript populates the code,I have written the code in button click : for (int i = 0; listbox1.Items.Count - 1; i++) { string s = listbox1.Items[i].ToString(); } the value of count is showing as 0, though it has the values populated. What I am missing ?

Web Forms :: Remove Bad Code On Html Render Page
forums.asp.net
Im woking with aspx. And when I view source HTML I saw some code [Code].... I hate it. It's not clear and not validate.  When I working with PHP or ASP, I can get a pure HTML page. But can't with ASP.NET.

Web Forms :: Can't Reference An Html Element From Code Behind In A User Control
forums.asp.net
Here is the contents of my test.ascx file: <%@ Control Language="C#" AutoEventWireup="true" CodeFile="test.ascx.cs" Inherits="UserControls_test" %> <p id="XXX">aaa</p> and here is the contents of my test.ascx.cs file: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class UserControls_test : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { this.XXX.InnerHtml = "BBB"; } } I get an error when I refer to the id, "XXX" (underlined above) in code behind which reads: 'UserControls_test' does not contain a definition for 'XXX' and no extension method 'XXX' accepting a first argument of type 'UserControls_test' could be found (are you missing a using directive or an assembly reference?) I have tried XXX.InnerHtml and I have tried this.XXX.InnerHtml and get same problem. How do I successfully refer to ID'ed HTML elements in code behind?

Web Forms :: Call A Code Behind Function Form Html Source Code?
forums.asp.net
I want to call a function present in code behind from front page (html : source code) i want to use like this: Source code <a href='<%# linkAlpha("B").ToString()) %>' title="B" id="B_List" runat = "server">B</a> Code Behind protected string linkAlpha(string value) { //  /market-research/<%#Eval("customname")%>/ string str = ""; if (Request.Url.DnsSafeHost == "localhost") {         // /market-reports/<%# Eval("customname")%>/ str = "Alpha_Category.aspx?q=" + value.ToString().Trim(); // Response.Redirect("Alpha_Category.aspx?q=" + value.ToString().Trim()); } else { //    str = "/market-reports/" + value.ToString().Trim() + "/"; str = "/Alpha_Category.aspx?q=" + value.ToString().Trim(); } return str; }

Web Forms :: Passing Multiple Parameters To VB.net Function
forums.asp.net
Im wonding what the correct syntax is to pass 2 parameters from a Ascx control into a Vb.net function? Heres what I currently have: <asp:Literal ID="CommentFooterLiteral1" Visible='<%# Eval("Approved") Or IsModerator() %>' Text='<%# FormatFooter(Eval("Anonymous"), Eval("DisplayName"), Eval("CreatedDate")) &#43; " " &#43; GetModeratorStatus(Eval("UserId")) %>' runat="server" /> The Function "FormatFooter", needs to pass in Anonymous and DisplayName parameters. Anyone know the correct syntax for doing this?

Web Forms :: Web Page That Allows Multiple Database Row Updates
forums.asp.net
We currently have a page with a listview control that has textboxes and an update button for each row. Users are able to update the database one row at a time.This is problematic in countries where the internet connections are very slow because a round trip is needed for each row update and this can become impossible to use.We need to create a page which allows multiple row updates so that each round trip is more productive.  There woudl be just one update button on each page and users could enter values into each row.  Clicking the update button would update each changed row of the database.We currently use linq 2 sql.  I would imagine that we could still use this in the above scenario??? Or is there a better data connection methode to use in this scenario.

Web Forms :: Page.IsPostback Versus Page.IsCallback
forums.asp.net
what the difference is. When will you use each? What Is the good use of IsPostback? Is this for to not loading data from database if Postback occurs to save on performance? It seems to be working for me, I only load data if not IsPostback. Is this correct? Is this because all my postbacks are generated by UpdatePanel? What is a difference between Postback generated by UpdatePanel versus regular Postback? Is the IsCallback true in this case? Should I check it instead? 

Web Forms :: Transfer Data From Gridview Row In Framed Aspx Page To The Other Page
forums.asp.net
I am not sure if this is possible (I am quite new at asp.net stuff but quite experience in VB ) I have managed to do the following, with no problems: I have a framed page, top page has a gridview and seach fields to query an Access database. Each record has 40+ fields The bottom framed page, has some textboxes. Once you do a search on top page (gridview), you are able to select whatever row it is shown. At this stage (when record is selected on top page) using "select" or whatever, I would like to transfer the data from the selected row and put them on the many textboxes on the bottom framed page. I know there are better ways to do this, however on the bottom page, users are able to ammend, add etc additional values, as well as doing some calculations, prior to transfering the info to (yet again) another form, so needs to do it this way as per request from my boss.

Web Forms :: Showing Excel On Web Page?
forums.asp.net
I want to show Excel objects and its functionality on my web page. Is there any way to do so? I want to show it the way google spreadsheet is.

Calling A Web Page From A Command Button.
visualbasic.ittoolbox.com
I am trying to call a web page from a command button click event base off ofthe user input into a textbox. I have made an Activex doc and it works finecalling the web page but I can not call the Activex doc from a form. Is itpossible to do it this way? I just need to be able to call it from anotherform.Thanks in advance for any help.

Web Forms :: How To Open Javascript Url Link In New Full Size Window
forums.asp.net
How can I change the follwoing code to open the link in a new full size window, I don't want to navigate there because they want to just view the next page and not leave existing page. lblProcessNum2.Text = "" & myDataTable.Rows(0)(4) & ""

Web Forms :: Masterpage Won't Display Picture If Page Is Not Saved In The Same Folder
forums.asp.net
i have a master page in a root and some pages in root and works perfectly, but now i need a different folder (secure) and in this folder i have an Admin page but doesnt show icons from master, only the placeholder. If i change the url from .css (url('images/page-bgglare.png') to (url('../images/page-bgglare.png') works the pages inside the folder but doesnt works the pages in root.

Web Forms :: When Clicking On Link Goes To The Bottom Of Page
forums.asp.net
I am having trouble with a  aspx page that when I click on the link to go to the page it opens/starts at the bottom. I want the page to open at the top like normal pages do.

Web Forms :: How To Avoid Page Flicker When Clicking On A Link
forums.asp.net
I have noticed that many new modern websites (and templates like themforest templates) are being built without any page flicker.What I mean by page flicker is that when you click on a link the hole screen flicker and then the new page is retrieved and viewed.Here are some examples of these new sites (templates) that do not have any page flicker. http://demo.post-interaktive.com/rubicon/html_templates/index.html http://pexeto.com/weblider/index.html http://ambi.crazypandagames.com/index.html I would like to know to make a website like above. I do realize that it must be ajax or javascript. However what I would like is some code.

Web Forms :: Send Mail Through A Html Page?
forums.asp.net
I want to send mail through a html page. My html page contains a form having ur name,phone,address etc... I want this content to be sent to an email id. I used the following code. [Code].... Its working but the way the form content is being sent is not good. sending the mail (form content) in a nice customized way. I cannot use any technology besides pure html.

.net - Call HTML Control In Code Behind?
stackoverflow.com
How can I get gridview HTML textbox value in .aspx.cs code?? E.g. : <input id="Frequency" name="customerName" type="text" style="width: 44px" />If i use the bellow code ,Then i can get the value on selectedIndex event. string n = String.Format("{0}", Request.QueryString['customerName']); I want to use bellow syntax.TextBox_Label1 = (TextBox)e.Row.FindControl("Frequency"); i don't want to user the runat="server" on HTML control .From Gridview i need to call a popup,Popup return a value ,I use the bellow code on javascript to do that window.opener.document.getElementById("customerName").value = val; window.close(); In my gridview .if i put the runat="server" then return value not set ,So i need to remove the runat="server".It also not work if i put the Asp:TextBox on Grid.Help me to Return popup value on gridview Asp:TextBox

Code Behind Doesn't Recognize Control ID's On HTML Page
forums.asp.net
I had a website with a few asp.net controls with id like: btnSave and tbAmount I renamed one of my controls and when I tried to use it in the code behind I get the following error. Error 5 Name 'tbAmount' is not declared.  I was messing around trying to add new controlls rather than rename, but nothing seems to work. And now, none of my controlls that were added to the page are recognized in the code behind. They all have the error: Error 5 Name 'tbAmount' is not declared. Or Error 3 Name 'hfNoteId' is either not declared or not in the current scope. E:NoteTenderNoteTenderMembersManageNote.aspx.vb 33 71 NoteTender Even my button click event handler gives me the following error: Error 2 Handles clause requires a WithEvents variable defined in the containing type or one of its base types. E:NoteTenderNoteTenderMembersManageNote.aspx.vb 27 91 NoteTender I have verified that my inherits is using the correct namespace and class name.

Web Forms :: Are Server.Htmlencode,Urlencode Useless Functions!
forums.asp.net
For protect against  XSS  we should make all input from textboxes thoht Server.Htmlencode function. 1) If i let a input go thorgh Server.Htmlencode and save it in database. But what happen if i letter show this input data from database on browerser ...if database input data have <script> it will then make Xss!!!!.  2) I use Server.Htmlencode.. and the user write <b>ss<b>...  (label.text = userinput.text;)  and i WANT to show ss in browser. What shuld i do for make this happen ?? 

Web Forms :: Use VB.net Code For Posting Transaction Info To Paypal Rather Then HTML Form Code?
forums.asp.net
I want to create a "buy it now" paypal button and post transaction info to the paypal server using asp.net/vb.net code rather then the common HTML form code provided by paypal. I want the flexibility that VB.NET code gives me For example to create a paypal "buy it now" button where an item is added to the paypal cart and transaction info posted directly to the paypal server you use the following HTML code. The user clicks on the button and is automatically redirected to the paypal shopping basket where they can purchase the product. This adds the item name, the shipping costs, the type of currency ect for an item the customer wishes to purchase to the shopping cart. <form action=[URL]> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="sales@bargainsonsale.co.uk"> <input type="text" name="quantity" size="2" value="1" /> <input type="hidden" name="item_name" value="Casio watch"> <input type="hidden" name="item_number" value="1"> <input type="hidden" name="amount" value="10.00"> <input type="hidden" name="shipping" value="3.20" > <input type="hidden" name="no_note" value="1"> <input type="hidden" name="currency_code" value="GBP"> <input type="hidden" name="lc" value="GB"> <input type="hidden" name="bn" value="PP-BuyNowBF"> <input type="image" src=[URL] border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> <img alt="" border="0" src=[URL] width="1" height="1"> </form> How do I post transaction information and redirect the user to the paypal server/site using vb.net code instead. <input type="hidden" name="shipping" value="<%myvalue%>" > I know I can use the above code but I want the whole form to be created and posted using asp.net/vb.net code rather then HTML. Not just single variables. The form must utilize the same names ( Item_name, amount, currency_code etc). I know the answer is simple but I have not yet worked it out.

Web Forms :: How To Share Master Pages / Ascx Files Across Applications
forums.asp.net
We are developing a framework which will be shared accross applications. What is the best way to share master pages, user controls accross applications by preventing other developers to modify the master pages and the user controls ? Is the following way suitable one ? Embedding masterpages and the user controls in a dll and using VirtualPathProvider to load the master pages and user controls dynamically. But in this approach developers can not view the design. Is there any other way to convert master pages and user controls to a different format as developers can able to view design?

Web Forms :: Doesn't Support The Format() Function?
forums.asp.net
var date1 = new Date(document.forms.a1.startDate.value); alert(date1.getDate() + '...' + date1.getDay() + '...' + date1.getMonth() + '...' + date1.getYear()); The startDate field has 10/18/2009 and the alert() gives 18...0...9...2009Why does getMonth() return 9 instead of 10??When I type in 101809 in the startDate field, how can I convert it to 10/18/2009?I google and see example of the format() function. I try date1.format('mm/dd/yyyy') but it gives error.It doesn't support the format() function.

Web Forms :: How To Show The Time Needed For A Page To Show
forums.asp.net
I wnat to evaluate the performance of my web page. How can I show the time comsued of a page?

Web Forms :: Dynamically Check Page Rank Of Website?
forums.asp.net
what i want is to have pr of each website listed in gridview. The gridview is populated through database. Is it possible in asp.net?

Web Forms :: Exception Handling - Transfer To New Page?
forums.asp.net
Is it possible to transfer to a prior web page when a "file not found" exception is thrown?  Currently, I'm using a try/catch scenario and would like to go back to the *home* page in the catch but my home page doesn't get displayed and never seems to fully exit the page where the error occurred.

Web Forms :: Hosting User Control In Page
forums.asp.net
I need a folder/file browser control in my ASP.Net page I have created a windows user control using C# and added it to my ASP.net page Here is the source code of it:    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head><title> Untitled Page </title></head> <body> <form name="form1" method="post" action="default.aspx" id="form1"> <div> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJNzgzNDMwNTMzZGTRhODPdkC39bBdueaWdgWCc3VlWQ==" /> </div> <div> <OBJECT id="MyWinControl1" height="200" width="200" classid="http:CISFolderFileBrowser.dll#CISFolderFileBrowser.UserControl1" VIEWASTEXT> <PARAM NAME="Title" VALUE="My Title"> </OBJECT>  </div> </form> </body> </html> I am running this page using ASP.Net Development Server But the control is not displayed in browser and no error message is displayed I have checked this url too: [URL]

Web Forms :: Onclick Rename Page And Insert Text?
forums.asp.net
is it possible to add an onclick event to button so when its clicked a page would be renamed from "a" to whatever is in a textbox . and also is it possible to make the onclick event insert some text into a textbox in this renamed page from a text that is already in an existant page.

Web Forms :: Find The Control In A Page?
forums.asp.net
I am having couple of check box in my web page.How to I find them using VB SCRIPT?I want to know which of them is selected?

Web Forms :: Master Page Wrap Is Not Visible?
forums.asp.net
Master pages wrap (with images) is not visible for some pages in the website. All pages in a members only folder are not inheriting the master page lay out. It looks like I need to specify the path somewhere due to the folder structure. What am I doing wrong? Thanks for your help. I have Images folder in the root, few pages that work as expected in the root and then couple pages in the Members only folder.Problem is with these members only webpages. 

Web Forms :: How To Find Url On Dynamic Page
forums.asp.net
I need to create a hyperlink to a dynamic page, based on search criteria.  I can get to the category by using http://www.mysite.com/AdvancedSearch.aspx?c=XXX.  I want to go deeper into the search criteria.  It goes like this 1. Category  2. Location  3. City.  My visible url only goes to the category level,even if the search includes location and city. How can I find the real url to specify category, location and city?

Web Forms :: How To Export Displayed Content Of Page To Pdf
forums.asp.net
is it possible to export displayed content of asp.net page to pdf.if yes how

Web Forms :: Calling A Console App Passing Parameters?
forums.asp.net
I want to call a .Net console app within a web form.  I need to pass a datatable  as a parameter to the console app. Someone mentioned in order to do this, you need to turn the datatable into xml, and serialize it and pass to the console app. 

Web Forms :: Multiple Validators Calling The Same Method?
forums.asp.net
Is it possible to access a control's attributes within a custom validation method? Lets say I'm validating a textbox called txtName.  Is it possible to access the ID of it or anything?  args seems to only give me access to the value.

Forms Data Controls :: How To Set Datalist Items And Obtain Value In Page Behind
forums.asp.net
 i want to use a Datalist to list products from sqldatasource. When i select the Product i would like to retrieve the associate Product value in the code behind page so that i may use it to display data in Grid.

Web Forms :: Page Scrolling Not Smooth?
forums.asp.net
I have a page with three tables, three charts and some other stuff. When I scroll up or down on the page it tries to jump to some other places, scrolling is not smooth. After a few minutes I also get this error popup: Error: Sys.WebForms.PageRequestManagerServerErrorException: The underlying connection was closed: An unexpected error occurred on a receive. The same behavior is noted on all pages with charts. aspx page code: <%@ Page Language="C#" AutoEventWireup="true"  MasterPageFile="AppMasterPage.master" CodeFile="ViewBG.aspx.cs" Inherits="ViewBG" %>

Web Forms :: Master Page Usercontrol Unable To Load ?
forums.asp.net
I am using vs2008 with Vb.My Master page has two usercontrols, one for the page logo and another for the site menu. I have been using the same design technic since vs 2003 and vs 2005, but now I am facing the following problem.After creating a web content form and associating it with the master page, I should be able to see my logo, my menu and the layout provided by the css stylesheet, but actually my page loads blank.

Web Forms :: Opening Treeview Item In A Blank Page
forums.asp.net
I need to open a tree view menu item(when clicked) in a blank web page. so I gave target="_blank".It doesn't work.

SQL Reporting :: How To Call An Existing Report In Reportviewer On A Web Page
forums.asp.net
I am trying to integrate an existing SSRS report in asp.net. 1. created the report and deployed it. 2. In the web page, have a reportviewer and trying to attach the same report. The report's url is :http://ReportServername/Reports/Pages/Report.aspx?ItemPath=%Clinical+ReportQ: What is my ReportPath and reportServerUrl? Is there something else I need to do? Should I copy over the rdl file to the report server?

Web Forms :: Accessing Javascript Variable In Label Control?
forums.asp.net
I have a javascript variable in the script tag. I am assigning a value to that variable and I want the same value to be assigned to the label control e.g. consider the sample code below : <body><script type="text/javascript"> var a=window.opener.parent.document.getElementById('description').DataValue; </script> < asp:Label ID="lblSubject" runat="server" Width="142px" Font-Bold="True" Font-Size="10pt" Font-Names="Arial" >SUBJECT</asp:Label> </body>  How do I assign the value of variable a to the label?

Web Forms :: Can Set Default Page Control's Property In Global.asax
forums.asp.net
I face some problem. I have default.aspx page, where user make some operations. There're available some panel on this page to show notifications. If exception will appear I want to handle it with Application_Error method in the global.asax file, but I don't want to redirect user to another page. I want to make notification area visible (on the default.aspx ) and show error message in that place. How can I make it? Can I set default page control's property in global.asax? Or there're some otheк solution?

Web Forms :: Turning Markup Into Codebehind Code
forums.asp.net
I have the following markup for a paypal button but i want to be able to set some variables from the code behind eg the cost/price and ammount, im new to aspx and im not sure weather i have todo the whole form from the code behind or weather or not i can access the form from the code behind, Code below. [Code]....

Web Forms :: How To Dynamically Create HTML File From The Code
forums.asp.net
Precisely and concisely, I have aspx page that has only one button "Generate". If the user clicked on this button, one HTML page should be created. The created HTML page should have title "Home" and the Body should contain "Hello World". 1) What is the code that should be written inside "Generate" button in order to accomplish this functionality? 2) Assuming the HTML page gets created, How to store it inside specific folder on the local drive? Or how to store it inside DB?

Web Forms :: How To Remove Html Code In A Textbox
forums.asp.net
i pull out some of the data from sql server 2005 iinto a textbox. but it display the data incluced the html code.so, how to solve this issue?

Web Forms :: Should Go To Login Form After Clicking Link In Mail
forums.asp.net
I am sending a mail, in this Emailbody see the code below Emailbody += "<td nowrap=nowrap><a href=http://pms.winrock.org.in/SubContractFin.aspx?id=" + lblSubConNo.Text + "><strong>Click Here</strong></a></td>"; whernever user get thi mail there is a link (Click Here) in this mail which redirects to SubContractFin.aspx form with a query string id. thorugh this query string I am doing somthing on SubContractFin.aspx form.Now I want that if a user click this link it should goes to my login.aspx form and after successful user login it goes to SubContractFin.aspx form with same query string id.So how I need change my email body code.

Web Forms :: Fill Html Form And Send Mail?
forums.asp.net
the members are occuring html form and adding one submit  (id must btnPost) in fck editor. and saving. visitors are visting to this page and filling this form and click btnPost. I want to send mail this fill form . but texts, selects, radios must be  like fill form. how can I this.

Web Forms :: How To Access HTML Control Value From Server-side Code
forums.asp.net
I have to access my html control and get its value from my server-side code. Is there anybody who could suggest how I could do it? My html control is very simple: <input type=text> But the thing is: I can't make it <input type=text runat=server> cause in this case my jquery functionality (datepicker) does not work.

DataSource Controls :: Binding An ObjectDataSource To A Property In Aspx Code, Not Code-behind
forums.asp.net
I want to bind an ObjectDataSource to a property in my asp page and I want to do it in the page's aspx code, not in code-behind. I've already done it in code-behind, as follows: [Code].... I'd prefer to get rid of the ugly code-behind and just do this in mark-up. Something like [Code].... This gives me a run-time error: Cannot create an object of type 'System.Object' from its string representation 'SelectedBook' for the 'DataSource' property.Is there a way of doing this declaratively and not in code-behind? Further, what if what I want is to actually use a child property of the property in question? For example, if my Book object has a ReaderComments collection, can I databind to it decaratively in the aspx mark-up?

Visual Studio :: Automatically Create The Asp Control Event Code In Code Behind
forums.asp.net
i want to use an event of an asp control.so i add it's html code in the markup view and name the event "OnChange": <asp:CheckboxList ID="MyCheckBoxList" runat="Server" OnSelectedIndexChanged="onChange" How can i automatically generate the event fuction code in the code behind (like in windows forms)

Forms Data Controls :: Searching For Code In VB That Mimics
forums.asp.net
I have a database which is being used to fill in fields in a paged formview.  I'm only intersted in looking at the data.  So far, using only ASP.net I've been able to add data to a label using the <%# Eval("") %> command. I would like to be able to use the same type of command in my .vb code.

Web Forms :: Use Windows Form To Authenticate Against Asp
forums.asp.net
I have a ASP.NET website which uses the standard ASP.NET Login Control for authenticating users. The user information is stored in a SQL Server database which is not accessible from client side. I want to write a standalone desktop windows form application which requires user to login with the same credential (username and password) used on the website. For the web-based form authentication, it's simple just to use the login control. Howerver, I have no idea for how to deal with the login for windows form application. My naive idea is to create a login web service which windows form application can utilize.

Web Forms :: Clear The OutputCache Across Web Applications?
forums.asp.net
Is it possible to clear the output cache of one asp.net web application from inside another asp.net web application? Reason being... We have several wep applications structured like... [URL] Pages in /area1/ and /area2/ are cached and are managed through /intranet/cms/. When a page is edited using /intranet/cms/ I want to clear it out of the cache in the appropriate /area#/ application. I already tried using a VaryByCustom that looks up a guid stored in the HttpContext.Cache but that seems to be cached per web application, that doesn't work. Really if there were any way of passing data between web applications on a single server, that would solve my problem, since I can use that + VaryByCustom. One thought was to create some file and useHttpResponse.AddFileDependency to make it a dependency in both applications- but this is less than ideal because I have many pages and therefore would need many files. Another idea is to create some URL in the /areaN/ apps that clears the cache for a given page and just make a request from the /intranet/cms/ app to that URL to clear the cache.  This would work, but seems a bit clunky.

Web Forms :: Fill The Data Into The Database - SqlException Is Unhandled By User Code
forums.asp.net
I am making a login page in asp.net. when am trying to fill the data into the database it can give the error..."Incorrect syntax near 'Password'." my code is SqlConnection sqlConnection = new SqlConnection("Data Source = DELLVOSTRO; Initial Catalog = ALPHA; User Id= sa; Password= intransit"); string queryString = ("INSERT INTO LOGIN(User_Id, Password, Confirm Password, E_Mail, Security_Question, Security_Answer) VALUES ('" + CreateUserWizard1.UserName + "','" + CreateUserWizard1.Password + "','" + CreateUserWizard1.ConfirmPassword + "','" + CreateUserWizard1.RequireEmail + "','" + CreateUserWizard1.Question + "','" + CreateUserWizard1.Answer + "')"); sqlConnection.Open(); SqlCommand cmd = new SqlCommand(queryString, sqlConnection); cmd.ExecuteNonQuery();

Web Forms :: Visual Web Developer 2008 Express Book By Eric Griffin
forums.asp.net
I am using the above book to learn ASP.NET 3.5 SQL server 2005 and C#. When I run the code as is given in Listing 5-7 I get 1 error message and 5 warnings. Language="C#" MasterPageFile="~/Admin/MasterPages/PersonalPorter.master" AutoEventWireup="false" CodeFile="Default.aspx.cs" Inherits="Main" <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="server" </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="PersonalPortalContent" Runat="server" </asp:Content> Error 1 The directive 'master' is unknown. C:UsersdavebeckinghamDocumentsVisual Studio 2008WebSitesPersonalPortal2Default.aspx 1  Warning 2 Validation (ASP.Net): This attribute name must be followed by an equal (=) sign and a value. If the value is in quotation marks, the quotation marks must match. C:UsersdavebeckinghamDocumentsVisual Studio 2008WebSitesPersonalPortal2Default.aspx 1 5 C:...PersonalPortal2...................

Web Forms :: Can't Delete Web Part?
forums.asp.net
I have custom user controls each with a SQLDatasource and a GridView in a DeclarativeCatalogPart.  When I try to delete a control from a WebPartZone I get the following error.The SqlDataSource control 'SDSOnCall' does not have a naming container.  Ensure that the control is added to the page before calling DataBind.

Web Forms :: Web Control - Multiple Selection Drop Down?
forums.asp.net
Am creating a user control for multiple selection drop down( i e dropdown with checkbox list) as shown. It works fine if i have only one instance of the control in a page. But it fails for more than one. I guess its java script client id issue. but i checked even that but unable to found :- This is my .ASCX file. [Code]....

AJAX :: Web Services (learning), How To Call Web Method Without [ScriptService]
forums.asp.net
This thread is more about learning, actually I have a web service which just returns string. I have been calling this service from code behind and updating lable with the string received from the web service. Now I want to call web service using JavaScript. As far as I know, I have to add <asp:ScriptManager..../>. Second I have to add [ScriptService] to the web service. But I don't wat to add <asp:ScriptManager..../> and [ScriptService]. Is there any way to call web service using javascript without adding <asp:ScriptManager..../> and [ScriptService] Also, I am kind of lost in SOAP, JSON. I am not getting where I actually use SOAP, JSON. Using <asp:ScripManager../> and [ScriptService], I actually didn't see use of SOAP, JSON.

Web Forms :: Passing Multiple Parameters To An Exe From Web Application
forums.asp.net
I need to execute the following exe file with multiple arguments from asp.net web application "C:Program FilesSysteminvoke.exe" /project "UPLOAD" /app "Default App" /task "XMLGEN" /parm.OutputDirectory "c: emp" I tried the following asp.net code, [code]....

Calling Page Methods Of UserControl / Page Using MSAJax?
stackoverflow.com
Is it possible to call usercontrol methods/events using MSAJAX. I wanted to update my usercontrol by calling one of its events when a property from its parent page changes.

SetInterval Of Function - Called From Function - Display And Update
www.codingforums.com
I'm trying to make a time script for an app I'm making (this is not an HTML document; it's a .js file to be used with Titanium) however I'm having trouble getting the function to display and update. function updateClock() { setInterval ( 'kiTime()', 1000 ); } function kiTime () { //Get current date and time [Code]... If I use kiTime() under the text field I will get the current time (or at least the time the app was opened), however if I call updateClock() it's blank.

Web Forms :: How To Call HTML Control Via Code Behind ?
forums.asp.net
I already searched on Google and found that I do it just only add runat="server" However, the solution is OK if the HTML tags exist since page loading. In my case, my web page will generate textBox on client side only if an user inputs some data as example Some of code as follows. [Code].... How can I call HTML control via code behind.

Web Forms :: Rendering HTML Code From Code Behind C#?
forums.asp.net
I am using gridview to bind my data since GridView could not load more than 2000 records and also it takes long time to load the data. I decided to go with XSLT transformation. Here is the problem .... I am able to transform 6290 kb of data ( into a html table formated like grid view ) with in 5 seconds but to assign that HTML table back to the  innerHTML of a div tag is not responding... What is the best method to push large amount data(HTML Code) from c# into aspx web page? PS: I used DIV innerHtml and also Literal Control but both are very slow if the size of the table increases.

Web Forms :: Write A Html Code In The Code Behind?
forums.asp.net
i want to nkow ik i can write a html code in the code behind if yes show me how?

Forms Data Controls :: Radio Buttons / Property To Code In VB Behind Code?
forums.asp.net
I have a number of radio buttons on my page. When one is selected, I wish for certain controls to be made visible/invisible. Can anyone tell me the property to code in VB behind code?

Visual Studio :: Automatically Create The Asp Control Event Code In Code Behind..
forums.asp.net
<script language="javascript" type="text/javascript"> // <!CDATA[ function cmdSignOut_onclick() { / ]]> </script> instead, how do I get it to create the code behind?

Visual Studio :: Turning Off Default Code Behind
forums.asp.net
I have a file that I like to #include in my pages that I use to connect to the database.  I recently installed VWD to give it a try.  Before now, I never used the CodeBehind feature.  I just tried it and believe that I've determined that there is no way for me to include code from another file in the code behind file.  That being the case, I've determined that I do not want to use the code behind feature, I'd like to stick with the "everything in a single file" approach.  So, my question is this; How do I turn off VWD's setting the CodeFile feature on by default? Jesse

Create Code Behind Dynamically Created Button
www.xtremevbtalk.com
I have found numerous different ways to add dynamically generated buttons to a form (i.e., during runtime). However, how do I dynamically generate the code behind these buttons?Thanks in advance!

Command Button: Call Function And Wait Till It&#039;s Done
www.vbforums.com
How can I wait till a function if dome then continue i.e.Private Command1_Click() FirstThingToDo 'Wait till the first is done 'Then SecondThingToDoEnd SubThanks in advance.

Command Button: Call Function And Wait Till It&#039;s Done
www.vbforums.com
How can I make a command button wait till a function it called is done, only then continue?I.E.:Private Command1_Click()check-something-long()'wait till it's done then carry onmore things!End SubThanks in advance!

Calling Function For Command Button
www.vbforums.com
hi, i'm a newbie on programming. i am using smart card reader and have the sdk(gsdkpcsc.dll) for programming.then, i already wite down all the declaratiion for the module.i also have made the command button.my project is, i) when click at the READ button, it will start communication with smart card in the card reader, then it'll get the identification number from the smart card, 12 digit.then, the number appeared at text boxii) by clicking verify buuton,the 12 digit number is compared with the database with m Accessiii) if matches with databse, then it will send a unique charachter such as AEI at the serial port of my microcontrooler. this project is for 2 user.iv) if not match, then it says, access is denied.my problem s, i need help on the code lines for READ and VERIFY..can anyone help?READ > open session, commnubication, get dataVERIFY > match with database and send AEI(user 1), IOU(user 2) to serial port i need to get 12 digit numb for this function Declare Function JPN_IDNum Lib "gsdkpcsc.dll" _my module code :/********************************************************Option Explicit'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@' General Declaration'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@VB Code:Declare Function OpenReader Lib "gsdkpcsc.dll" Alias "_OpenReader@0" _() As Integer    ' open communication session with the card reader Declare Function cardConnect Lib "gsdkpcsc.dll" Alias "_CardConnect@12" _(ByVal port As Integer, ByVal Rdrname As String, ByVal nRdrLen As Integer) As Long' open communication session with the card in the reader Declare Function CardDisconnect Lib "gsdkpcsc.dll" _Alias "_CardDisconnect@0" _() As Integer' Closes communication session with the card in the reader Declare Function CloseReader Lib "gsdkpcsc.dll" Alias "_CloseReader@0" _() As Integer' Closes communication session with the card reader Declare Function CardDetect Lib "gsdkpcsc.dll" Alias "_CardDetect@4" _(ByVal pcExplanation As String) As Integer' Checks if card is in card reader Declare Function ResetCard Lib "gsdkpcsc.dll" Alias "_ResetCard@0" _() As Long' Reset the card Declare Function GetError Lib "gsdkpcsc.dll" Alias "_GetError@0" _() As Integer' returns information on last error that occured Declare Function SelJPNApp Lib "gsdkpcsc.dll" Alias "_SelJPNApp@0" _() As Integer' select JPN to read JPN data Declare Function SelJPJApp Lib "gsdkpcsc.dll" Alias "_SelJPJApp@0" _() As Integer' select JPJ to read JPJ data Declare Function SelIMMApp Lib "gsdkpcsc.dll" Alias "_SelIMMApp@0" _() As Integer'Select IMM to read IMM data '*************************************************************************'                            JPN section'************************************************************************* Declare Function JPN_OrgName Lib "gsdkpcsc.dll" _Alias "_JPN_OrgName@4" _(ByVal pbOrgName As String) As Integer'original name in 150 bytes Declare Function JPN_MyKadName Lib "gsdkpcsc.dll" _Alias "_JPN_MyKadName@4" _(ByVal pbMyKadName As String) As Integer' 3 lines of name stored in blocks 0f 30+30+20=80 Declare Function JPN_KPTName Lib "gsdkpcsc.dll" _Alias "_JPN_KPTName@4" _(ByVal pbKPTName As String) As Integer' KPTName is 40bytes , 2 lines of name stored in blocks of 20+20=40 Declare Function JPN_IDNum Lib "gsdkpcsc.dll" _Alias "_JPN_IDNum@4" _(ByVal pbIDNum As String) As Integer' ID number in 13bytes Declare Function JPN_Gender Lib "gsdkpcsc.dll" _Alias "_JPN_Gender@4" _(ByVal pbGender As String) As Integer' Gender is 1 byte(L for lelaki , P for perempuan) Declare Function JPN_OldIDNum Lib "gsdkpcsc.dll" _Alias "_JPN_OldIDNum@4" _(ByVal pbOldIDNum As String) As Integer' Old ID Number is 8 bytes Declare Function JPN_BirthDate Lib "gsdkpcsc.dll" _Alias "_JPN_BirthDate@4" _(ByVal pbBirthDate As String) As Integer' Date of birth is 4 bytes (numeric) Declare Function JPN_BirthPlace Lib "gsdkpcsc.dll" _Alias "_JPN_BirthPlace@4" _(ByVal pbBirthPlace As String) As Integer Declare Function JPN_DateIssued Lib "gsdkpcsc.dll" _Alias "_JPN_DateIssued@4" _(ByVal pbDateIssued As String) As Integer Declare Function JPN_Citizenship Lib "gsdkpcsc.dll" _Alias "_JPN_Citizenship@4" _(ByVal pbCitizenship As String) As Integer Declare Function JPN_Race Lib "gsdkpcsc.dll" _Alias "_JPN_Race@4" _(ByVal pbRace As String) As Integer Declare Function JPN_Religion Lib "gsdkpcsc.dll" _Alias "_JPN_Religion@4" _(ByVal pbReligion As String) As Integer Declare Function JPN_EastMsian Lib "gsdkpcsc.dll" _Alias "_JPN_EastMsian@4" _(ByVal pbEastMsian As String) As Integer Declare Function JPN_RJ Lib "gsdkpcsc.dll" _Alias "_JPN_RJ@4" _(ByVal pbRJ As String) As Integer *******************************************************/Edit: Added [vbcode][/vbcode] tags for clarity. - Hack

Calling Function For Command Button
www.codeguru.com
hi, i'm a newbie on programming. i am using smart card reader and have the sdk(gsdkpcsc.dll) for programming.then, i already wite down all the declaratiion for the module.i also have made the command button.my project is, i) when click at the READ button, it will start communication with smart card in the card reader, then it'll get the identification number from the smart card, 12 digit.then, the number appeared at text boxii) by clicking verify buuton,the 12 digit number is compared with the database with m Accessiii) if matches with databse, then it will send a unique charachter such as AEI at the serial port of my microcontrooler. this project is for 2 user.iv) if not match, then it says, access is denied.my problem s, i need help on the code lines for READ and VERIFY..can anyone help?READ > open session, commnubication, get dataVERIFY > match with database and send AEI(user 1), IOU(user 2) to serial port i need to get 12 digit numb for this function Declare Function JPN_IDNum Lib "gsdkpcsc.dll" _my module code :/********************************************************Option Explicit'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@' General Declaration'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Declare Function OpenReader Lib "gsdkpcsc.dll" Alias "_OpenReader@0" _() As Integer ' open communication session with the card readerDeclare Function cardConnect Lib "gsdkpcsc.dll" Alias "_CardConnect@12" _(ByVal port As Integer, ByVal Rdrname As String, ByVal nRdrLen As Integer) As Long' open communication session with the card in the readerDeclare Function CardDisconnect Lib "gsdkpcsc.dll" _Alias "_CardDisconnect@0" _() As Integer' Closes communication session with the card in the readerDeclare Function CloseReader Lib "gsdkpcsc.dll" Alias "_CloseReader@0" _() As Integer' Closes communication session with the card readerDeclare Function CardDetect Lib "gsdkpcsc.dll" Alias "_CardDetect@4" _(ByVal pcExplanation As String) As Integer' Checks if card is in card readerDeclare Function ResetCard Lib "gsdkpcsc.dll" Alias "_ResetCard@0" _() As Long' Reset the cardDeclare Function GetError Lib "gsdkpcsc.dll" Alias "_GetError@0" _() As Integer' returns information on last error that occuredDeclare Function SelJPNApp Lib "gsdkpcsc.dll" Alias "_SelJPNApp@0" _() As Integer' select JPN to read JPN dataDeclare Function SelJPJApp Lib "gsdkpcsc.dll" Alias "_SelJPJApp@0" _() As Integer' select JPJ to read JPJ dataDeclare Function SelIMMApp Lib "gsdkpcsc.dll" Alias "_SelIMMApp@0" _() As Integer'Select IMM to read IMM data'*************************************************************************' JPN section'*************************************************************************Declare Function JPN_OrgName Lib "gsdkpcsc.dll" _Alias "_JPN_OrgName@4" _(ByVal pbOrgName As String) As Integer'original name in 150 bytesDeclare Function JPN_MyKadName Lib "gsdkpcsc.dll" _Alias "_JPN_MyKadName@4" _(ByVal pbMyKadName As String) As Integer' 3 lines of name stored in blocks 0f 30+30+20=80Declare Function JPN_KPTName Lib "gsdkpcsc.dll" _Alias "_JPN_KPTName@4" _(ByVal pbKPTName As String) As Integer' KPTName is 40bytes , 2 lines of name stored in blocks of 20+20=40Declare Function JPN_IDNum Lib "gsdkpcsc.dll" _Alias "_JPN_IDNum@4" _(ByVal pbIDNum As String) As Integer' ID number in 13bytesDeclare Function JPN_Gender Lib "gsdkpcsc.dll" _Alias "_JPN_Gender@4" _(ByVal pbGender As String) As Integer' Gender is 1 byte(L for lelaki , P for perempuan)Declare Function JPN_OldIDNum Lib "gsdkpcsc.dll" _Alias "_JPN_OldIDNum@4" _(ByVal pbOldIDNum As String) As Integer' Old ID Number is 8 bytesDeclare Function JPN_BirthDate Lib "gsdkpcsc.dll" _Alias "_JPN_BirthDate@4" _(ByVal pbBirthDate As String) As Integer' Date of birth is 4 bytes (numeric)Declare Function JPN_BirthPlace Lib "gsdkpcsc.dll" _Alias "_JPN_BirthPlace@4" _(ByVal pbBirthPlace As String) As IntegerDeclare Function JPN_DateIssued Lib "gsdkpcsc.dll" _Alias "_JPN_DateIssued@4" _(ByVal pbDateIssued As String) As IntegerDeclare Function JPN_Citizenship Lib "gsdkpcsc.dll" _Alias "_JPN_Citizenship@4" _(ByVal pbCitizenship As String) As IntegerDeclare Function JPN_Race Lib "gsdkpcsc.dll" _Alias "_JPN_Race@4" _(ByVal pbRace As String) As IntegerDeclare Function JPN_Religion Lib "gsdkpcsc.dll" _Alias "_JPN_Religion@4" _(ByVal pbReligion As String) As IntegerDeclare Function JPN_EastMsian Lib "gsdkpcsc.dll" _Alias "_JPN_EastMsian@4" _(ByVal pbEastMsian As String) As IntegerDeclare Function JPN_RJ Lib "gsdkpcsc.dll" _Alias "_JPN_RJ@4" _(ByVal pbRJ As String) As Integer*******************************************************/

Web Forms :: Function To Remove Html Code From Text?
forums.asp.net
if I have a bunch of HTML code in my variable is there some function that could remove all the HTML and output only the "clean" text? For example [Code]....

Web Forms :: How To Use Link Button And Get Link Of A Page And Make The Button To Redirect To That Page
forums.asp.net
In my gridview i am returning values from database in which 'filelocation' is containing location of pages over my server and i want to use coustom linkbutton in templete field to raise a event and set session variable and then redirect to that page . My question is how to get value fron 'filelocation' coloum in gried view when a linkbutton in clicked and onclick is fired and also set session value at taht point.

Cant Get Class In App_Code To Work In Code Behind Page For Simple Page?
forums.asp.net
just a quick question -i cant get my class in App_Code to work in my code behind page for simple .net page, some light what doing wrong?  [Code]....

Send Mail Through JavaScript In HTML Page Secretly?
stackoverflow.com
I am using a mailTo command. On posting it displays Outlook Express on my computer. But I want to send secretly, data to my email form client end.

How To Access HTML Control From Code Behind
forums.asp.net
my application runs on the client side.  I have to access a display on the asp page via javascript.  I have the following code working properly: ClientSript.RegisterStartupScript(this.GetType(), "allMessages", "<script>document.forms[0].tbDisplay.value='Messages'; </script>"); tbDisplay is a "text box" asp:textbox control.  I need to replace de 'Messages' for avariable.  so instead of printing "Messages" all the time, I can change the information on the variable prior to display the message.  how to change 'Messages' to a variable.

Call SQL Function With Multiple Parameters From C# Web Page?
stackoverflow.com
I have an MS SQL function that is called with the following syntax: SELECT Field1, COUNT(*) AS RecordCount FROM GetDecileTable('WHERE ClientID = 7 AND LocationName = ''Default'' ', 10) The first parameter passes a specific WHERE clause that is used by the function for one of the internal queries. When I call this function in the front-end C# page, I need to send parameter values for the individual fields inside of the WHERE clause (in this example, both the ClientID & LocationName fields) The current C# code looks like this: String SQLText = "SELECT Field1, COUNT(*) AS RecordCount FROM GetDecileTable('WHERE ClientID = @ClientID AND LocationName = @LocationName ',10)"; SqlCommand Cmd = new SqlCommand(SQLText, SqlConnection); Cmd.Parameters.Add("@ClientID", SqlDbType.Int).Value = 7; // Insert real ClientID Cmd.Parameters.Add("@LocationName", SqlDbType.NVarChar(20)).Value = "Default"; // Real code uses Location Name from user input SqlDataReader reader = Cmd.ExecuteReader(); When I do this, I get the following code from SQL profiler: exec sp_executesql N'SELECT Field1, COUNT(*) as RecordCount FROM GetDecileTable (''WHERE ClientID = @ClientID AND LocationName = @LocationName '',10)', N'@ClientID int,@LocationID nvarchar(20)', @ClientID=7,@LocationName=N'Default' When this executes, SQL throws an error that it cannot parse past the first mention of @ClientID stating that the Scalar Variable @ClientID must be defined. If I modify the code to declare the variables first (see below), then I receive an error at the second mention of @ClientID that the variable already exists. exec sp_executesql N'DECLARE @ClientID int; DECLARE @LocationName nvarchar(20); SELECT Field1, COUNT(*) as RecordCount FROM GetDecileTable (''WHERE ClientID = @ClientID AND LocationName = @LocationName '',10)', N'@ClientID int,@LocationName nvarchar(20)', @ClientID=7,@LocationName=N'Default' I know that this method of adding parameters and calling SQL code from C# works well when I am selecting data from tables, but I am not sure how to embed parameters inside of the ' quote marks for the embedded WHERE clause being passed to the function.

Javascript - Callback Function With Parameters
stackoverflow.com
I'm using AJAX Page Methods, but I can't seem to be able to pass the needed parameters: function getFavStatus() { //favs is a list of DOM <imgs> that I want to modify their img.src attribute for (i = 0; i < favs.length; i++) { PageMethods.isFavorite(favs[i].alt,setFavImg(favs[i])); } } function setFavImg(fav, response) { fav.src = response; } The problem that I can't figure out is how to use the "response" from PageMethods, AND pass the DOM object to the callback function. I've also tried doing something like this: function getFavStatus() { for (i = 0; i < favs.length; i++) { PageMethods.isFavorite(favs[i].alt, function (response) { favs[i].src = response;}); ); } } In this case, the response works properly, but i is always > favs.length, because it has already iterated through the loop... Edit: My PageMethods.isFavorite signature is: [System.Web.Services.WebMethod] public static string isFavorite ( string p_id )

Get Data From Previous Page For Search Function And Display Returned Data Into Gridview
www.vbforums.com
I implemented PreviousPage to get data from previous page for my search function and display the returned data into a gridview. The gridview's allowpaging is enabled, but every time I go to next page, my previous page data is lost... how can I resolve that?

Web Forms :: Transferring Data From One Page To Next Page Using Contect.Item?
forums.asp.net
I am transferring data  from one page to next page using contect.Item concept like this in first page protected void Page_Transfer(object sender, EventArgs e) { Context.Items["UN"] = UserName.Text; Context.Items["UserPhone"] = UserPhone.Text; Response.Redirect("Result.aspx"); } I want to get this values in result.aspx page for that i am writting like    public void Page_load(object obj, EventArgs e) { string s =(string) this.Context.Items["UserName"]; string s1 = (string)Context.Items["UserPhone"]; } But  iam getting s  and s1 as null values . what did i write wrong ?

C# - Copy Several Textboxes Data Into Target Textbox Calling Same Function
stackoverflow.com
I have several input textboxes with different id and class name. I want to track changes in any of the input textboxes, and reflect it into target textbox, but don't want to replicate the function for every individual textbox. Is it possible to use one function for all?

Getting Error Message While Calling Web Service Method From Application
forums.asp.net
i am getting this error message while calling a web service method from my application The underlying connection was closed: The connection was closed unexpectedly i am using asp.net 2.0.

Web Forms :: VB Script To Obtain The Value Of The Textbox On Page Load To Pass To Another Textbox?
forums.asp.net
I have a text box on page load, loads a text value. I would like on the first instance of the page load for another textbox to equal to this value.  As I have a gridview on the same page to update the textbox value does not get updated.  Essentially, if provide me with a VB script to obtain the value of the textbox on page load to pass to another textbox default value only on the same page.

Change Border Properties Of ASCX From Code Behind?
stackoverflow.com
I am building a library of asp.net user controls which I am deriving from a custom UserControlBase class which further derives from actual UserControl class. Hierarchy looks like this : ASCX -> UserControlBase : UserControl I have this requirement to put a border around all the ASCX's. So, I thought if I can modify UserControlBase it will apply to all ASCXs. I tried following code in Page_Load of UserCOntrolBase but its not working this.Attributes.Add("style", "border-color:#FFFF66;border-width:4px;border-style:Dashed;");

Web Forms :: Accessing Hosted Page Base Page From A Usercontrol?
forums.asp.net
I have a base page (_BasePage) that all the pages in my application are inheriting from, the base page has serveral methods. I also have a usercontrol that can be placed in several pages. I wold like to write a method inside the usercontrol that can call a method in the base page (_BasePage) in runtime.

How To Get The Reference Of GridView FooterRow In A JavaScript Function
bytes.com
I've a gridview with a footer row contains two textboxes and one button for inserting the new records to the gridview. I want to validate the values of these text boxes on client side before entering into the database .im decided to add one javascript function..but how can i get the reference to the textboxes which are there in the footertemplate.

GetXML From A Table Adapter In Code Behind?
forums.asp.net
I have a TableAdapter coFW_OrderDetails_Details_SPTableAdapter that exposes the method GetData. GetData accepts numerous parameters. I would like to return the data using dataset.getXML for a webservice. The code I am using to fill the table adapter is below.

How To Pass Object To Function Called With SetInterval
www.webdeveloper.com
I want to pass the object to a function that is called with a setInterval, like so: Code: function Test(obj) { divTest.innerText = obj.id; } function ClickMe(obj) { itv = setInterval( 'Test(' + obj + ')' , 10 ); } So when I click a link I want to execute every 10 msec a test. This off course does not work.

JQuery :: .toggle() Called By Window.setInterval() Not Functioning
stackoverflow.com
I am trying to alternate between two logos every 5 seconds using the following code: window.setInterval( function () { //breakpoint 1 $("#logo").toggle( [Code].... I can get a simple toggle to work, but when I introduce the toggle within window.setInterval(), the toggle's two handlers won't fire. I set breakpoints on the lines directly beneath the comments in the code above. Breakpoint 1 hits every 5 seconds. However, Breakpoint 2 and 3 never hit. Why are neither of the toggle function's handlers firing?

Jquery :: Timing - Setup A Worker Function Thats Called Every 5ms By SetInterval
stackoverflow.com
Im working on processing data. I setup a worker function thats called every 5ms by setInterval. I'm calculating the amount of time it takes the function to run, its 0 to 1ms. I'm also calculating the speed at which the function is actually invoked and its about 80ms. My question is, if it takes only 1ms to run through the function, and I'm calling it every 5ms, why is it invoked every 80ms? I do have a second worker function updating the canvas based on the current data the processing function is doing, but its run in its own setInterval. These numbers were taken while in Chrome. I've tested in Opera, Safari, FF3 and FF4 as well and the issue is the same, though the invoke time is different. (all this on a mac) I know this code does not yet work in IE. I know parts of this are ugly.. I haven't started to clean up the code yet... Lines 77 to 84 are the setInterval calls. You can see a working example here:

Call Database Row Into A Function?
stackoverflow.com
I am writing a function which is called into a page, but I am not sure how to call information form database into the function in order to use them. Basically I am doing some calculation in the function where I need information form database to do them. From a comment... What I am trying to do is this: I have a page in php which retieves some info from database and all works fine. I am writing a function that needs to make some calculation based on some fields in the database. What I cannot solve is how to get this information form the database into my function. I have tired this: function CalculateCost () { $low_season = $row_rsbooking['cost']; etc. etc. then making some calculations but I am getting nowhere. I am not sure if the function is getting the information form database in order to make calculation.

Error: Call To A Member Function Add_current_page()
www.phpfreaks.com
OK, im not too crash hot on classes, so hoping someone can help me with this error: QuoteFatal error: Call to a member function add_current_page() on a non-object in /path/to/includes/application_top.php on line 312 This is from an osCommerce application (I know someone will probably tell me to post in 3rd party scripts, but I am more interested in whats generally causing the error). The thing that confuses me is that application_top.php is only 236 lines long.

Javascripts And MySQL In A PHP Page
bytes.com
I have some pages which perform Javascript calculations etc. and end up with a number in a box at the bottom of a page. The pages themselves are PHP, but with Javascripts embedded in them. How can I get the results of these calculations (which are in text boxes), and place them into a mysql database?I gather that it may not be possible to do this directly, but is there any way around it? I dont want to have to rewrite the scripts in another language!

Call To Undefined Function Hash() In /var/www/site/
stackoverflow.com
I have called hash function in my code like (php version 5.2.14 ) $username =hash("sha256",trim($_POST['username'])); $password =hash("sha256",trim($_POST['password'])); but I got error like Call to undefined function hash() in /var/www/site/

Retrieve A Function From Another Page?
www.phpfreaks.com
So I have this function that retrieves a picture, and it needs to be in a separate page because I can't call a header function if I have an echo in front of it.. Is it possible to call a function from another page so that I can display the picture in my page that has a lot of echo's in front of it? Or is there a better solution out there?

Call A Js Function On Pressing Enter Key?
stackoverflow.com
I'd like to know how I can initiate a javacsript function when pressing the enter key. I'm trying to create a function called handleEnter(event, fn). I want to use the function on an input field eg code...

JQuery :: Allow Calling Function To Override Default Options
stackoverflow.com
I want the calling Function to be able to override the default options provided in the showDivPopUp function. function calling(){ showDivPopUp("title of pop up box", "message to show", { buttons:{ Yes: function () { $(this).dialog("destroy"); }, No :function () { $(this).dialog("destroy"); }}});} function showDivPopUp(title,msg,options){ var mgDiv = $("#msgDiv"); mgDiv.attr("innerHTML", msg); return mgDiv.dialog({ modal: true, buttons: { Ok: function () { $(this).dialog("destroy"); }}, resizable: true, show: "explode", position: "center", closeOnEscape: true, draggable: false, title : titl, open: function (event, ui) { $(".ui-dialog-titlebar-close").hide(); } });} So, the above code should show two buttons viz. Yes and No instead of just OK. I don't want to do if check for each option. In options parameter there might be options for which default is not applied. So the calling function may specify size option which is not mentioned in the showDivPopUp function.

Call A Function And Get The Error?
www.phpbuilder.com
If I do not have anything in a sql database and I call a function will I get this error?

Call COM Function With OLE_COLOR As An Argument?
stackoverflow.com
I am trying to call a COM object from PHP using the COM interop extension. One function requires an OLE_COLOR as an argument? Is there any way to pass this kind of value from PHP? I have tried passing a simple integer value with no success. $this->oBuilder->Font->Color = 255;