44 Posted Topics
Re: try this [code] if (fuResume.HasFile) { string ext = System.IO.Path.GetExtension(fuResume.PostedFile.FileName); if (ext == ".doc" || ext == ".txt" || ext == ".rtf" || ext == ".pdf") { //do something here } } [/code] | |
Re: if the values coming from db having duplicates then use distinct keyword.otheerwise clear the dropdown items every time before adding like in c# [code] ddlCountry.Items.Clear(); [/code] | |
Re: use Textchanged event for first text box with autopostback property set to true.and in that event populate textbox2 values and assign.use update panel if u dont want to refresh the page up on postbacks. | |
Re: that wont work in mozilla .....i even trid with javascript but no use. :( | |
Re: use timer control in ajax.with updatepanel ....i.e place adrotator in updatepanel...and for timer targetcontrol id as updatepanel triger evnt as pagelaod( tick something is there ) so page will not be refressed bt ad rotator will change its ads..... mistakes are common.let me know if i make a mistake.thank u........ | |
Re: hi bavana, i think u r using template field for hyper link so u can do like this [code] <asp:Hyperlink id="something" text="more" navigateurl='<%# "~/moredetails.aspx?id="+Eval("uniquekey") %>' target="_bank"/> [/code] use this hyper link in itemtemplate and unquekey is the id in db which u want pass as querystring to nxtpage...in next page … | |
Re: i think the code should work.are you binding data to checkbox again after that foreach statement anywhere...? | |
Re: use SelectedIndex.Value instead of SelectedValue directly.it will solve that issue.and regarding wrong answers i thinkthere might be error with your logic. | |
Re: if you are using dataset or datatable to retieve the data from database you can use pageddatasource.it is very simple to use.just you need give data to it,set the properties like page count,pageindex,currentindex,allowpaging(not remember all proporties but u can easily find the required ..)....let me know if you need more … | |
Re: in button clcik event you can get the dropdown seleclted value and write the code according to your requirement?let me know if u face any problem? | |
Re: what type of object is that dtRecords.is it DataTable class's object.then finally u will bind this datatable to gridview or datalist control isn't it.thre u can specify the date format. set DataFormatString property if it is a boundfield if it is itemtemplate then give format string as second argument to … | |
Hi All, i want send sms to any mobile in india through my application.i tried using webservice in weservicex.net(not sure?) .bt it's not working.i dont want pay money as this is is very small project.so can any one plz help hw to send sms.any free gateway providers. thanks in advance. … | |
[code] SqlCommand cmd = new SqlCommand(); cmd.Dispose(); System.GC.Collect(); cmd.CommandText = ""; cmd.Dispose(); [/code] can please explain why this code is not showing error....... | |
Re: try like this for gridview same will work for any databoundcontrol with small changes [code] <asp:TemplateField > <ItemTemplate > <asp:Image ID="Image1" runat="server" ImageUrl ='<%# "~/Images/"+Eval("filenamefromdb") %>' /> </ItemTemplate> </asp:TemplateField> [/code] | |
Re: [code] <asp:TemplateField> <ItemTemplate> <%# Container.DataItemIndex + 1 %> </ItemTemplate> </asp:TemplateField> [/code] | |
Re: just use any javascript calender control rather than .net control .and usage details willl based on control u r gng to use.so read the manual before using js calender . | |
| |
Re: debug the code...if that event is not raising then check for atuoeventwireup in page directive...it should be true... | |
Re: enable /disable the delete button in gridview based on the row selection.then this same code will works for u.let me know it works for u? | |
Re: use like this [code] TextBox txt =(TextBox)Gridview.findcontrol("txt1"); txt.so and so.... [/code] let me know it is working? | |
Re: Try with DateTme.TryParse method .let me know it is working for u. | |
Re: [code] int i, j, k, m, a, y; for (i = 1; i <= 5; i++) { if (i % 2 != 0) { for (j = 1; j <= i; j++) { printf("@"); } printf("\n"); } else { for (k = 1; k <= i; k++) { printf("*"); } … | |
Re: hi, user is sql keyword..so if u want use user as table name then in query you need to mention like [user].in your code dr.close() comes at 2 places .so it is trieng to close the dr which is already close ...romeve the second dr.close or use it in else … | |
Re: no need to use Response.Redirect if u r using formsauthentication .just set the default url in web.config.if returnurl query string presnt in the requested url then redirectfromlogpage will redirect page to return url otherwise it will redirect to default url.. | |
Re: the same code will work if te interger varible(row_cnt) declared as static or store in a viewstate.let me know it works for u? | |
Re: [QUOTE=cVz;816094]How can i set a text box's text to this format '[COLOR="Green"]0,000,000.00[/COLOR]' rather than '[COLOR="Red"]0000000.00[/COLOR]' ???' Thanks[/QUOTE] try with masked textbox in ajax control tool kit. let me it will work for u.... | |
Re: [code] onpaste="return false;" oncopy="return false;"[/code] use these events where you want to diable the copy.you can use it for form also if you want your page secured.try this it will work tahnk you! | |
Re: hi, in this code errors are, [icode] da.fill(ds,"logintable"); [/icode] here where did u create object da for dataadapter.so create object then ur problems will be solved. [icode]suggetion:[/icode] if (TextBox2.Text == ds.Tables["Tablename"].Rows[i][1]) { // create session for user which can be useful in throughout the appication Server.Transfer("reservation.aspx"); } hope it will … | |
Re: hi, can u try to write that whole code in row updating instead of rowupdated. | |
Re: hi, use fixed widths for tables and controls instead of % s.... ![]() | |
| |
Re: hi rasmi , u can use treeview SelectedNodeChanged event just like selected indexchanged in dropdown list. below is the example. [code] <asp:TreeView ID="TreeView1" runat="server" ImageSet="Contacts" NodeIndent="10" OnSelectedNodeChanged="TreeView1_SelectedNodeChanged"> <ParentNodeStyle Font-Bold="True" ForeColor="#5555DD" /> <HoverNodeStyle Font-Underline="False" /> <SelectedNodeStyle Font-Underline="True" HorizontalPadding="0px" VerticalPadding="0px" /> <Nodes> <asp:TreeNode Text="java" Value="java"></asp:TreeNode> <asp:TreeNode Text="sap" Value="sap"></asp:TreeNode> <asp:TreeNode Text=".net" Value=".net"></asp:TreeNode> </Nodes> … | |
Re: hi , if u r using datalist the child control events will not raised directly.so use itemcommand(bubble event) of datalist to raise image button click event. below is the eg iam giving hope this will help u.... [code] <asp:DataList ID="DataList1" runat="server" OnItemCommand="DataList1_ItemCommand"> <ItemTemplate> <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/progressAnimation.gif" CommandArgument ="uniquecolumn" CommandName … | |
Re: hi, in template field take link button instead of hylerlink.raise the linkbutton_click write switch/if condition for navagation based on the other filds value. hope this will work........ | |
Re: hi, in projects table there should be a coloumn like clientid.so if u click on client naem just pass client id.and write query like this [code] select * from project where clientid=@clientid[/code] ...so this will filter the projects according to client.hope this wil help you,.thanking you. | |
Re: use regular expression validator with validation expression="\d{1,10}" for min 1 char and max 10 chars | |
Re: [COLOR="Red"][/COLOR] [code]hi[/code] | |
Re: it should work.use target="_blank" for hyperlink and try agin. | |
Re: hi, i think you are aware of sql queries.so ultimately you need to depend on sql query to filter the data. my advice is: suppose in your search page if keyword field(may be comma saparated) and button .and after click on search button you need to to display related data … | |
Re: in for loop only create required field validators.and for each text box give [code] tb.id=somevalue(btr to use int so that u can increment); rf.controltovalidate=somevalue; [/code] i think it will work.let me know it iam correct or not.thank you, -srikanth kadem | |
Re: hi , this is very simple .use update panel for label and in page load you change the string to display in label(i think you can write the code.and use one timer control for which you need to set target control id as update panel.event will be page_load.and set the … | |
| |
Re: create a empty data template as yours wish |
The End.