13,153 Topics
![]() | |
Hi Guys I have a problem.I have a GridView with a LinkButton. I need to click in this Linkbutton to open a Modal Pop Up but I need to send the ID field together to recover it in the next page (modal pop up). How can I do it, please? … | |
here in this block i am creating cookie protected void Button1_Click(object sender, EventArgs e) { String employerEmail = Request.QueryString["employerEmail"]; HttpCookie employerEmailCookie = new HttpCookie("empEmailCookie", "defaulfCookieValue"); employerEmailCookie["employerEmail"] = employerEmail; employerEmailCookie["CurrentDate"] = DateTime.Now.ToString(); employerEmailCookie.Expires = DateTime.Now.AddMinutes(30); Response.Cookies.Add(employerEmailCookie); Response.Redirect("https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_xclick&business=smile2_1355775057_biz@yahoo.com&item_name=MemberShip&amount=20¤cy=USD&return=http://127.0.0.1:57135/Online%20Recruitment%20System-Final/paymentSuccessful.aspx?emailAdmin='"+employerEmail+"' &cancel_return=https://www.google.com/" ); } and then when i return back to the page that i … | |
i am trying to access a query string value from .cs page to aspx page but cann't bcz i am retrieving it within Page_load function , so its been local to this event and cannot be accessed outside so what to do ? code: protected void Page_Load(object sender, EventArgs e) … | |
i have hashed password using SHA1 and for login i am using same algo, so when user enters password, both hased gets matched and he/she logs in, thats ok and working , quite happy :) but problem is that sha1 cannot reversed , its a one way algo, and i … | |
My website is using asp.net with c#. Recently i am adding a new function by adding a flash webcam photo capture. In local it can function well, it can capture photo, save into database, and display the photo. However, after deploy it cannot funtion well on my server. The webcam … | |
Hi I am new to ASp.net. I don't know how to uses of Slide show extender and images sliding. I am using HTMl Programing .Please suggest me ... Thanks in Advance. | |
how can i make vs 2010 dropdown list editable? | |
when developing a web application both above mentioned technologies can be used. LINQ to Entity Framework is good for Quick development while Pure ADO.net needs lots of Codes. but want to know for Small/Mediam web application which approach is best. I'm considering only performace and adding new component so frequently. | |
I have been editing one html template in Microsoft Expression web 4,and right now I wish to bring all I have done into Visual Studio in order to start coding on it. But when I copy everything into a webpage in Asp.net some parts of my template will change,I could … | |
Error : SERVER TAG NOT WELL FORMED, why ? <%@ Page Language="C#" AutoEventWireup="true" CodeFile="employerView_ScrutinyMembers.aspx.cs" Inherits="employerView_ScrutinyMembers" %> <!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 runat="server"> <title>Scrutiny Members</title> </head> <body> <form id="form1" runat="server"> <div> <asp:TextBox ID="txtboxMemberName" runat="server"></asp:TextBox> <asp:Button ID="btnSearch" runat="server" Text="Search" onclick="btnSearch_Click" /> Or <asp:Button ID="btbViewall" runat="server" Text="View … | |
**i have consumed a webservice (shown below) from webservicex.net into my client C#.NET application but it is returning this whole bunch of XML. Please, how do i get values of only <wind> and <temperature> elements into my application's textbox? Thanks** <string><?xml version="1.0" encoding="utf-16"?> <CurrentWeather> <Location>Madrid / Cuatro Vientos, Spain (LEVS) … | |
I have a question about asp dot net.....how much masterpage we can use in making a website in asp dot net???? | |
Hi guys, how would I translate the functionality of this anchor: <a style="font-size: small;" href="javascript:void(0)" onclick="document.getElementById('info').style.display='block';document.getElementById('fade').style.display='block';return false;">Blahblah</a> To an asp.net imagebutton control? This is what I have come up with: <asp:ImageButton ID="ImgBtn" runat="server" ImageUrl="~Images/Go.gif" OnClientClick="<script type='text/javascript'>document.getElementById('info').style.display='block';document.getElementById('fade').style.display='block';return false;</script>" /> But its not coming out the same way. Can anyone help me … | |
Hi.. I am designing a GUI for which I need effect as images are ahown in one vertical row. When mouse points on a particular image, that image should appear enlarged along with hyperlink for details and add to cart(just as similiar to google images).. The only difference is that … | |
How to add Sub menus in menu item.Main Menu item is Horizontal, Sub menu item are also getting Horizontal but i wont Menu item are Horizontal and Sub menu items are vertical | |
Hi i nedd to update a datatable binded in a gridview here is the code: protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e) { ds.Tables[0].Rows[e.RowIndex]["n1"] = Convert.ToInt32(((TextBox)(this.GridView1.Rows[e.RowIndex].Cells[3].Controls[0])).Text); this.GridView1.DataBind(); GridView1.EditIndex = -1; GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); } The problem is that when i change a value in the cell 3 and i click … | |
hello, I am using Visual Web developer 2008. I am using loginname control. there it displays name as admin. How to get that value to textbox or label. Simply i want to get that value as string. Thanks | |
My linq query won't insert my data. What am I doing wrong? class Query { musicEntities db = new musicEntities(); public bool findArtist(string artist) { bool status = db.Artists.Any(w => w.Name.Contains(artist)); return status; } public void insertArtist(string artist) { if (findArtist(artist) == false) { Artist art = new Artist { … | |
hi i have a dropdown which is connected with a database and containing some sort of items, and a gridview. i want to show only those values into the gridview which is select from the dropdown. for example if i have the following values in to the database: value item … | |
hi here's how i have my sharepoint site setup. root is http://sharepoint2010 this is on port 80. I have my homepage setup on http://sharepoint2010/sites/intranet how can i create a redirect so that when people access http://sharepoint2010 they get redirected to http://sharepoint2010/sites/intranet ? when i access http://sharepoint2010 i just get a … | |
`insert into table1 (Wicket,Run,Catch) values (Wicket+2,Run+22,Catch+5)` This statement is used to insert data using StoredProcedure. How can i insert data same way without using storeprocedure but using LinqToSql. What will be code for it. | |
I have a button that when clicked produces a PDF report. However I have validation on the page so that if the required fields are left empty when the button is clicked a validation summary appears. This doesn't work though. When the buttons clicked if fields are left empty it … | |
i have a problem on how to code for automatic generate an employee id whenever i registered an account in my system. i used asp.net as my front end and Sql Server Database 2005 as my back end.. thnx a lot! | |
I have made a application X1 with Visual Studio 2008 (visual basic) .NET Framework 3.5 and deployed on Windows 7 desktop System. Works fine. The Same application X1 i have now made with Visual Studio 2012 (visual basic) .NET Framework 4.5. What must i do to ensure that the application … | |
Hi guys, I haven't been able to get a definite answer on this. I've been very kindly put on to resources regarding ViewState but they only talk about saving the state of controls - not C# objects. I've also had a thorough look through my ASP.NET book & no joy … | |
protected void Page_Load(object sender, EventArgs e) { if (Session["UserName"] != null) { if (Session["roles"].ToString() != "Admin") { ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", "alert('Only Admin Can Access this Page');window.location ='HomePageAdmin.aspx';", true); } } else { ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", "alert('Please Login To Proceed');window.location ='HomePageAdmin.aspx';", true); } } protected void btnRegister_Click(object sender, EventArgs e) { … | |
I would like to create a countdown column in a gridview, based on a date in another BondFiled column in the same gridview. | |
i have a textbox and a button in list view ! now i would like to get the text/value of the textbox on btnClick event ! can some one tell me how i can get it? | |
hi all, i am sending mail through exchange server version Exchange2010. below is my code: static void Main() { try { string owausername = string.Empty; string owapassword = string.Empty; string mailFrom; string mailTo; string mailSub; string mailBody; ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack; ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010); EmailMessage email = new EmailMessage(service); … | |
I have a table that has information of fire departments around the state. I am trying to set up the gridview so that the address is a hyperlink with google maps. For example, In my address column, I have an address such as 745 W Colfax Ave Denver CO 80204, … |
The End.