- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
28 Posted Topics
Re: Hi, There is no default rich text box in VS but many are available on net. you can use WYSIWYG editor as well, many are free, but read there license before using. | |
Re: Hi It's quite simple since image is stored in database you cannot just give its URL to tag img or ImageField in grid, you need to create a handler which will read the image from database and send you the image in response. I am pasting a code sample which … | |
Re: Hi, Here are mainly two ways to do this: 1. create thumbnail in same or another folder and load them first and later when licked show its corresponding image, you can create name of thumbnail and image in synchronization like image01.jpg and th_image01.jpg this method need maintenance but is quite … | |
Re: Hi, Widows service can be used to automate tasks and does not require a user to log in. OS loads and start the services by itself and as u install the service u give credentials and your service will run under these credentials. so you don't need to explicitly ask … | |
Re: Hi, Please read following this will surely help [url]http://www.hunlock.com/blogs/Mastering_The_Back_Button_With_Javascript[/url] | |
Re: Hi, First keep in mind grid is used to display data in tabular format and you can control formatting for each and every cell and it's data to be displayed in table. I think you should read more about formatting GridView and take help from designer. And in case you … | |
Re: Hi, There are many ways to achieve this: 1. You can use third party dlls to create charts, many are available in market, if you are lucky u will get something free. 2. You can use System.Drawing.Graphics in .net to create your own charts (I assume your requirement is very … | |
Re: Hi, You can throw Exception if both the elements are set by user while reading the value of elements, or I guess you can create your attribute to resolve this. | |
Re: Hi This is very simple just store user identity(eg userid) in session and every time get the data associated with user from database or in case you are working with file's like images just store the file name in database in association with user. | |
Re: Hi Just make response id calculated column and drive this with ID column. you can manipulate the value's to some extent as well. | |
| |
Re: Hi, Both PHP and asp.net have there strengths but definitely ASP.NET is better for big projects as it is rich in features and is very robust. PHP's strength is in its wide acceptance and freebies. So it's our choice | |
Re: Hi, Yes it is possible to create forum in PHP and use it for asp.net. You can get some dotnet forums as well. | |
Re: Hi, Try using caching or ajax, these are the only two ways you can solve this problem. | |
Re: Hi, You need to work with integrated windows authentication. Set your authentication to windows in web.config and use identity object to further authorise users. you can read more about this from: [url]http://msdn.microsoft.com/en-us/library/ms978378.aspx[/url] | |
Re: Hi, Can you provide some more details as I am not able to recreate the problem. I tried the following code and it seems to work fine [Code] .cs using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public … | |
Re: Hi, The character set you are trying to print are special character, so this should be creating problem, I tested the problem on my setup(IIS6- asp.net 2.0) it showed weird character in both IE and firefox. | |
Re: Hi, The only thing you need to do is get the next fname from database and set its value to textbox, Now you can solve this problem with more then one way. one of the way can be: you get fname list first time from database and store list in … | |
Re: Hi, Slovig it may be the asp.net control viewstate management that is creating problem or the code you did is having some mismatch with asp.net page working. Please send both page(aspx) and its code behind, then only I can solve the problem. | |
Re: Hi, try using this [Code] <ItemTemplate> <asp:Image ToolTip='<%# (DataBinder.Eval(Container.DataItem, "Title").ToString().ToLower() == "mr")? "High priority" : ((DataBinder.Eval(Container.DataItem, "Title").ToString().ToLower() == "ms")?"Medium priority":"Low priority" ) %>' runat="server" AlternateText="" ID="imgPriority" ImageUrl='<%# (DataBinder.Eval(Container.DataItem, "Title").ToString().ToLower() == "mr")? "/Testweb/images/Mr.gif" : ((DataBinder.Eval(Container.DataItem, "Title").ToString().ToLower() == "ms")?"/Testweb/images/Ms.gif":"/Testweb/images/Mrs.gif" ) %>' /> </ItemTemplate> [/Code] | |
Re: Hi, You can not achieve this by using following code in grid view [Code] <script language="javascript" type="text/javascript"> function AreYouSure(snumber) { alert("Hello : " + snumber); } </script> Aspx: <asp:TemplateField> <ItemTemplate> <asp:HyperLink NavigateUrl='<%# "Javascript:AreYouSure(\""+(DataBinder.Eval(Container.DataItem, "StudentNo").ToString() + "\")") %> ' Text='<%#DataBinder.Eval(Container.DataItem, "StudentNo") %>' ID="linkToTest" runat="server" /> </ItemTemplate> </asp:TemplateField> [/Code] you need to … | |
Re: Hi, There is no problem using your datasource with two tables, you can still define grid in aspx anyway you can use this code example [code] Aspx file <%@ Page Language="C#" AutoEventWireup="true" CodeFile="GridFormat.aspx.cs" Inherits="GridFormat" %> <!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>Untitled Page</title> … | |
Re: Hi, you can use ParameterizedThreadStart delegate and overloaded method Thread.Start(object) [Code] using System; using System.Collections.Generic; using System.Text; using System.Threading; namespace MultiThreading { class Program { static void Main(string[] args) { ParameterizedThreadStart paramThreadStart = new ParameterizedThreadStart(DoSomeThing); Thread newThread = new Thread(paramThreadStart); newThread.Start("this is test"); } static private void DoSomeThing(object objParam) { … | |
Re: Hi, You don't need to create a new page for every id, you just need to write HTTPhandler to handle this, this handler will redirect the requested page link to given page and you can use information in web URL to get query id like querystring and show user the … | |
Re: Hi, The requirement seems to be collecting information of about 300 item in a survey and each item has 4 columns attached to it and you are facing performance issue. If what I understand is correct you surely need to break form into multiple parts not pages, you can use … | |
Re: DataGrid.ItemCommand Event Occurs when any button is clicked in the DataGrid control. So to handle event of any other control binded to grid you can use controls own event handler. In this example you need to attach event handler to calendar event i.e aspx page: [code=asp.net]<ItemTemplate> <asp:Calendar ID="calendarCtr" runat="server" OnSelectionChanged="calendarCtr_SelectionChanged"></asp:Calendar> … | |
Re: [QUOTE=bharatshivram;827507]hi, i want the name of the image selected by a user when uploading an image to be changed to his username. wrote this code but the image stored gets corrupt every time.. [code] protected void Button1_Click(object sender, EventArgs e) { String imagefolder="images"; String path; String savepath; if (FileUpload1.HasFile) { … |
The End.