Search Results

Showing results 1 to 40 of 68
Search took 0.01 seconds.
Search: Posts Made By: srikanthkadem
Forum: ASP.NET 16 Days Ago
Replies: 2
Views: 254
Posted By srikanthkadem
gridview will do.
Forum: ASP.NET 16 Days Ago
Replies: 1
Views: 332
Posted By srikanthkadem
use SelectedIndex.Value instead of SelectedValue directly.it will solve that issue.and regarding wrong answers i thinkthere might be error with your logic.
Forum: ASP.NET 16 Days Ago
Replies: 3
Views: 286
Posted By srikanthkadem
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...
Forum: ASP.NET 16 Days Ago
Replies: 3
Views: 292
Posted By srikanthkadem
The logic will be same irrespective of languages!.the sample code will be like

//in button click event
int index=Convert.ToInt32(DropDownList1.SelectedIndex);
if(index=0)//swim
{...
Forum: ASP.NET 16 Days Ago
Replies: 3
Views: 292
Posted By srikanthkadem
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?
Forum: ASP.NET 16 Days Ago
Replies: 9
Views: 390
Posted By srikanthkadem
try this

if (fuResume.HasFile)
{
string ext = System.IO.Path.GetExtension(fuResume.PostedFile.FileName);
if (ext == ".doc" || ext == ".txt" || ext == ".rtf" || ext...
Forum: ASP.NET 16 Days Ago
Replies: 6
Views: 295
Posted By srikanthkadem
i think the code should work.are you binding data to checkbox again after that foreach statement anywhere...?
Forum: C# Jun 30th, 2009
Replies: 13
Views: 734
Posted By srikanthkadem
thanks for all,
still i didn't get clarification.

SqlCommand cmd = new SqlCommand();
cmd.Dispose();
System.GC.Collect();
cmd.CommandText = "";


in the above code...
Forum: C# Jun 24th, 2009
Replies: 13
Views: 734
Posted By srikanthkadem
SqlCommand cmd = new SqlCommand();
cmd.Dispose();
System.GC.Collect();
cmd.CommandText = "";
cmd.Dispose();


can please explain why this code is not showing...
Forum: ASP.NET Apr 2nd, 2009
Replies: 2
Views: 1,305
Posted By srikanthkadem
<asp:TemplateField>
<ItemTemplate>
<%# Container.DataItemIndex + 1 %>
</ItemTemplate>
</asp:TemplateField>
Forum: ASP.NET Mar 17th, 2009
Replies: 11
Views: 8,774
Posted By srikanthkadem
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 .
Forum: ASP.NET Mar 16th, 2009
Replies: 2
Views: 419
Posted By srikanthkadem
please post the query clearly..
Forum: ASP.NET Mar 16th, 2009
Replies: 2
Views: 1,204
Posted By srikanthkadem
that wont work in mozilla .....i even trid with javascript but no use. :(
Forum: ASP.NET Mar 16th, 2009
Replies: 2
Views: 593
Posted By srikanthkadem
debug the code...if that event is not raising then check for atuoeventwireup in page directive...it should be true...
Forum: ASP.NET Mar 12th, 2009
Replies: 7
Views: 1,271
Posted By srikanthkadem
if the values coming from db having duplicates then use distinct keyword.otheerwise clear the dropdown items every time before adding like
in c#

ddlCountry.Items.Clear();
Forum: C# Mar 4th, 2009
Replies: 4
Views: 566
Posted By srikanthkadem
sorry ! i though it was Asp.net forum....
Forum: C# Mar 4th, 2009
Replies: 4
Views: 566
Posted By srikanthkadem
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...
Forum: C Mar 4th, 2009
Replies: 3
Views: 290
Posted By srikanthkadem
int i, j, k, m, a, y;

for (i = 1; i <= 5; i++)
{
if (i % 2 != 0)
{
for (j = 1; j <= i; j++)
...
Forum: C# Mar 4th, 2009
Replies: 19
Solved: Validation
Views: 942
Posted By srikanthkadem
Hi Foxipj,

dateValue.ToString("dd MMMM,yyyy");
use this line in if condition .where datevalue is datetime object in ur code.

and u can play with this Tostring method as well for different...
Forum: C# Mar 3rd, 2009
Replies: 19
Solved: Validation
Views: 942
Posted By srikanthkadem
i put in 22/03/09 originally then the program works out whether the day needs a nd, st, rd or th at the end of it and then outputs like this;

i did not get this words..can u explain indetails so...
Forum: C# Mar 3rd, 2009
Replies: 19
Solved: Validation
Views: 942
Posted By srikanthkadem
Try with DateTme.TryParse method .let me know it is working for u.
Forum: ASP.NET Mar 3rd, 2009
Replies: 5
Views: 884
Posted By srikanthkadem
it is better to close the objects ...but not mandatory as clr will take care of it..if ur concern is to close dr then in else part write that line dr.close()......
Forum: ASP.NET Mar 3rd, 2009
Replies: 5
Views: 629
Posted By srikanthkadem
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...
Forum: ASP.NET Mar 3rd, 2009
Replies: 9
Views: 35,230
Posted By srikanthkadem
try like this for gridview same will work for any databoundcontrol with small changes

<asp:TemplateField >
<ItemTemplate >
<asp:Image ID="Image1" runat="server" ImageUrl...
Forum: ASP.NET Mar 3rd, 2009
Replies: 2
Views: 1,689
Posted By srikanthkadem
use like this

TextBox txt =(TextBox)Gridview.findcontrol("txt1");
txt.so and so....

let me know it is working?
Forum: ASP.NET Mar 3rd, 2009
Replies: 5
Views: 884
Posted By srikanthkadem
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...
Forum: ASP.NET Mar 3rd, 2009
Replies: 3
Views: 558
Posted By srikanthkadem
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?
Forum: ASP.NET Mar 3rd, 2009
Replies: 4
Views: 2,196
Posted By srikanthkadem
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?
Forum: ASP.NET Mar 3rd, 2009
Replies: 1
Views: 923
Posted By srikanthkadem
try with masked textbox in ajax control tool kit. let me it will work for u....
Forum: ASP.NET Jun 5th, 2008
Replies: 9
Solved: Login page
Views: 1,426
Posted By srikanthkadem
hey,
glad that u got soln....please mark the thread as solved....
Forum: ASP.NET Jun 5th, 2008
Replies: 4
Views: 964
Posted By srikanthkadem
hi,
use fixed widths for tables and controls instead of % s....
Forum: ASP.NET Jun 5th, 2008
Replies: 15
Views: 3,132
Posted By srikanthkadem
hey priya,
first dont say sir.
second to get checkbox value first u need to get the checkbox reference that ur not getting.(u r getting null there).ones u have reference to that control ..then u...
Forum: ASP.NET Jun 5th, 2008
Replies: 2
Views: 518
Posted By srikanthkadem
hi,
just send ur requirement clearly..
Forum: ASP.NET Jun 5th, 2008
Replies: 2
Views: 518
Posted By srikanthkadem
hi ,
y not u can do anything.....
Forum: ASP.NET Jun 5th, 2008
Replies: 15
Views: 3,132
Posted By srikanthkadem
hey,
everything is fine.in that code....in edit mode did u get the checkboxes in interface...did u write ur code in rowupdating event only..did u declare cdr as checkbox object globally...?check...
Forum: ASP.NET Jun 4th, 2008
Replies: 14
Views: 7,992
Posted By srikanthkadem
hi bavana,
i think u r using template field for hyper link so u can do like this

<asp:Hyperlink id="something" text="more" navigateurl='<%# "~/moredetails.aspx?id="+Eval("uniquekey") %>'...
Forum: ASP.NET Jun 4th, 2008
Replies: 15
Views: 3,132
Posted By srikanthkadem
hey priya,
can u ones post the .aspx page code...i will check 1s so that i will get some idea....
Forum: ASP.NET Jun 4th, 2008
Replies: 15
Views: 3,132
Posted By srikanthkadem
Note:iam not intrested in case sensitivity...use proper cases as c# is case sensitive....
Forum: ASP.NET Jun 4th, 2008
Replies: 15
Views: 3,132
Posted By srikanthkadem
hey priya,
try like this
checkbox cb=(checkbox)gridview1.findcontrol("checkbox1");
if(cb.checked)
{
//so so
}
else
{
//so so
Forum: ASP.NET Jun 4th, 2008
Replies: 9
Solved: Hi all
Views: 1,346
Posted By srikanthkadem
hey rasmi,
check the case for session..it should be Session["Text1"].Tostring();
in form 1 also modify.....that....sorry this mistake is due to me only....i always neglect this case sensitivity......
Showing results 1 to 40 of 68

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC