asp.net

Get values from string?

How to get the error number and error description from this string s = "ERR: 100, out of credit"; error should equal "100" error description should equal "out of credit" ...

triggers in update panel - asp.net

Can i place more than one triggers for a single update panel? Is it possible to give multiple triggers for an update panel. Is there anything that i should take care if i am using multiple triggers( if it possible) ?? ...

please refer links for CSS and other simple styling ways used with Visual Studio c#

yes can search google but there are thousand of results by your experience which links give the best for a beginner who has to make some website using it within a month. i mean the styling, the ways to style the footer (you knw the copyright message) using vs08 c# aspx thankyou ...

Addressing from the root directory of website in action script

Hello you all , I have a flash banner in my website and it has some navigation links on it . Because I have several different folders in my website I need address them from the root . At the moment i use getUrl like this : getURL("ArticleList/Default.aspx"); But it doesn't work . Thanks in advance ...

checkbox - asp.net

I have a checkbox named cbSelct. In a botton_click event i wrote cbSelect.Checked=true is the above code in the code behind page causes for a cbSelected_CheckedChanged event? I created a new website and place a checkbox named cbSelect and a button. protected void cbSelect_CheckedChanged(object sender, EventArgs e) { Response.Wri...

ASP.NET how to display data without GridView

Hello, I am newbie in ASP.NET. I have prepared an arraylist of Product and want to display in the page. Easiest way is binding the arraylist to GridView. But I don't have flexibility there, since it will automatically generate a TABLE behind the scene. Is there any other way to give us flexibility to really control the HTML output, for ...

Paypal API and Paypal's Sample Code?

https://www.x.com/community/ppx/code_samples The sample code returns ACK, but where is the proper response? For example Getbalance, sample code returns ACK https://cms.paypal.com/cms_content/US/en_US/files/developer/nvp_GetBalance_cs.txt but the document shows it returns other values? https://www.x.com/docs/DOC-1186 ...

Asp.net add content automatically

Hi, For my site I want to have a page which I will call programatically to add content. The parameters that I will need are some strings and the content of a file. I will invoke that with WebRequest object form .net. How can I send the string parameters and the content of a file in a post request and read them in the aspx page? Is ...

IE not saving asp.net authentication token / cookies

I have an asp.net site. Its a mixture of web forms and MVC2. I have this on 2 different servers which I get to via different urls. On one server authentication works fine via all browsers (IE 8, FF 3.6, Chrome) On the other IE 8 fails, it doesn't send back the cookie on the request to the page after authenticating. Using Fiddler I ...

Adding a Copywrite message to images whatever size they are

i like help ways to add copy write footer on web page.aspx so that it always remains at the end no matter the size of image be. when my image increase in size, the copy write message appear on it ...

Jquery .load in asp.net

Hello Guys, I have a vertical left menu in my asp.net page. using jquery .load,i try to load other aspx page in the midlle div(content div) depending on the link click.Like this: $('#LeftMenu1_HyperLink1').live("click", function(event) { event.preventDefault(); $("#ContentDiv").load("mypage.aspx"); ...

file attachment form c#

hi, im creating a web form that requires a user to uplaod a file in doc,docxorpdf format on submit the form gets posted to an email address along with the attached file, ihave successfully implemented the posting of form to the email address but don't know how to attach the file with it ... plz help public void ProcessRequest(HttpConte...

Session loss analysis

Hi, our web application frequently losses it's session state (user is being logged out very often). I predict that the reason of such behavior are some exceptions thrown and unhandled in side threads of application or whole application restart. I'm pretty sure that it's not caused by recycle worker, because it happens in irregular peri...

asp.net repeater with usercontrol - setting commandargument

Hello I have the following repeater code: <asp:Repeater ID="repMain" runat="server" OnItemCommand="repMain_ItemCommand" EnableViewState="false"> <ItemTemplate> <dmg:testcontrol runat="server" MyData=<%#Container.DataItem %>> </dmg:testcontrol> </ItemTemplate> </asp:Repeater> The testcontrol usercontrol looks li...

Load tables in correct order when using ASP.NET MasterPages

I am making use of an ASP.NET Masterpage. I have 3 tables as Columns in my Masterpage. The first table load then the second table that contains my "ContentPlaceHolder" and then table 3. How or what must I do to load table 1 and then table 3 and then lastly the table 2 that contains the "ContentPlaceHolder"? ...

I am getting this error when I run the web application

I am getting error when I run the application, Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. This is the error I am getting when I run the application, I added the new dl...

Saving pictures on server

I'm programming site for ren-a-car company, and I need to save exactly three pictures for every car. What is better to store in database ( table description) path to images and images save in some folder OR to save pictures in table (MS SQL )? ...

data submission during form submission.

i have a form which has two textboxes and a submit button. on entering data and submitting data gets stored in the database.but if i again refresh the page the same data again gets stored. How should this be prevented? ...

How to I delete an unrequired user profile property from web.config and the database?

I use the default ASP.NET Profile Provider which lets me define user properties in web.config. I now no longer want to use one of these user properties. I want to delete all traces of it. I can remove the property from the list of properties in web.config however, I suspect, the stored values for this property will still be held in the...

recursive function for hierarchically data

my model using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace amief.Models { public class WebsiteModels { public static void getPagesForPage(int pageId, dbDataContext db, List<page> myPages) { var pages = (from p in db.pages where p.pageParent == ...