Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
40% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
1
0 Endorsements
Ranked #1K
~13.0K People Reached
Favorite Tags

44 Posted Topics

Member Avatar for love_dude1984

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]

Member Avatar for Dhanya_1
0
2K
Member Avatar for fawadkhalil

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]

Member Avatar for sup1991
0
1K
Member Avatar for shsh_shah

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.

Member Avatar for LP...
0
270
Member Avatar for rksh
Member Avatar for priyamsc

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........

Member Avatar for questpond
0
295
Member Avatar for bhavna_816

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 …

Member Avatar for rickyenjohns
0
225
Member Avatar for alexymasilamani

i think the code should work.are you binding data to checkbox again after that foreach statement anywhere...?

Member Avatar for shibbard
-1
81
Member Avatar for fawadkhalil
Member Avatar for ariez88

use SelectedIndex.Value instead of SelectedValue directly.it will solve that issue.and regarding wrong answers i thinkthere might be error with your logic.

Member Avatar for srikanthkadem
0
181
Member Avatar for yara.008

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 …

Member Avatar for srikanthkadem
0
133
Member Avatar for twilitegxa

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?

Member Avatar for srikanthkadem
0
123
Member Avatar for brightline

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 …

Member Avatar for amar_interface
0
100
Member Avatar for srikanthkadem

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. …

Member Avatar for virtuelabz
0
192
Member Avatar for srikanthkadem

[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.......

Member Avatar for IdanS
0
353
Member Avatar for Ennio

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]

Member Avatar for dnanetwork
0
536
Member Avatar for mangesh5588

[code] <asp:TemplateField> <ItemTemplate> <%# Container.DataItemIndex + 1 %> </ItemTemplate> </asp:TemplateField> [/code]

Member Avatar for srikanthkadem
0
321
Member Avatar for web_developer

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 .

Member Avatar for Hsus
0
949
Member Avatar for alex stevens
Member Avatar for reachb4

debug the code...if that event is not raising then check for atuoeventwireup in page directive...it should be true...

Member Avatar for greeny_1984
0
107
Member Avatar for julseypart

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?

Member Avatar for greeny_1984
0
115
Member Avatar for emilio

use like this [code] TextBox txt =(TextBox)Gridview.findcontrol("txt1"); txt.so and so.... [/code] let me know it is working?

Member Avatar for greeny_1984
0
112
Member Avatar for foxypj

Try with DateTme.TryParse method .let me know it is working for u.

Member Avatar for foxypj
0
150
Member Avatar for chriscross86

[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("*"); } …

Member Avatar for srikanthkadem
0
86
Member Avatar for Derice

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 …

Member Avatar for ema005
0
334
Member Avatar for chriscross86

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..

Member Avatar for srikanthkadem
0
192
Member Avatar for preethi_ga

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?

Member Avatar for srikanthkadem
0
756
Member Avatar for cVz

[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....

Member Avatar for srikanthkadem
0
89
Member Avatar for ebabes

[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!

Member Avatar for salvea
0
456
Member Avatar for santhanalakshmi

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 …

Member Avatar for JackyGZ
0
158
Member Avatar for priyamsc
Member Avatar for priyamsc
0
676
Member Avatar for pranav_jog
Member Avatar for rajarajan2017
0
112
Member Avatar for guptaalok12
Member Avatar for rashmigs84

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> …

Member Avatar for rashmigs84
0
124
Member Avatar for komodo891

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 …

Member Avatar for srikanthkadem
0
607
Member Avatar for someoneelse

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........

Member Avatar for srikanthkadem
0
95
Member Avatar for fayenot

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.

Member Avatar for fayenot
0
79
Member Avatar for MaseYo

use regular expression validator with validation expression="\d{1,10}" for min 1 char and max 10 chars

Member Avatar for srikanthkadem
0
76
Member Avatar for hwa
Member Avatar for bhavna_816
Member Avatar for some one

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 …

Member Avatar for some one
0
129
Member Avatar for majestic0110

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

Member Avatar for majestic0110
0
445
Member Avatar for ebabes

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 …

Member Avatar for ebabes
0
128
Member Avatar for umarqadir
Member Avatar for srikanthkadem
0
96
Member Avatar for Kusno

The End.