Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Showing results 26 to 50 of 133
Search took 0.02 seconds.
Search: Posts Made By: gaurav_jain2403
Forum: Classic ASP Databases August 7th, 2007, 11:59 AM
Replies: 3
Views: 1,338
Posted By gaurav_jain2403
You are welcome.

You are welcome.
Forum: ASP.NET 1.x and 2.0 Application Design August 7th, 2007, 11:56 AM
Replies: 3
Views: 1,944
Posted By gaurav_jain2403
You are most welcome.

You are most welcome.
Forum: ASP.NET 1.x and 2.0 Application Design August 7th, 2007, 09:47 AM
Replies: 3
Views: 1,944
Posted By gaurav_jain2403
Change your code as follow and tell me if it...

Change your code as follow and tell me if it works:


3 public static void DisplayDataTable(
4
5 DataTable myDataTable
6 )
7 {
8 SqlConnection...
Forum: Pro Java August 7th, 2007, 09:37 AM
Replies: 2
Views: 1,710
Posted By gaurav_jain2403
I would be very glad and pleased if someone tells...

I would be very glad and pleased if someone tells the solution for avoiding this message. What I think is you cannot stop this message from being displayed as it is Browser's function.
Forum: Classic ASP Databases August 7th, 2007, 09:28 AM
Replies: 3
Views: 1,338
Posted By gaurav_jain2403
Yes it is incorrect. Change it to follow: ...

Yes it is incorrect. Change it to follow:

sql= "update customerlogin Set logincount = logincount + 1 " & "WHERE email='" & email &"'"
Forum: ASP.NET 2.0 Professional August 7th, 2007, 09:24 AM
Replies: 6
Views: 834
Posted By gaurav_jain2403
Use following query: Select...

Use following query:

Select CONVERT(int,minDistance) + ':' + CONVERT(int,maxDistance) from tableName
Forum: ASP.NET 2.0 Professional August 7th, 2007, 07:40 AM
Replies: 3
Views: 1,135
Posted By gaurav_jain2403
No problem. The above code will work with...

No problem. The above code will work with smalldatetime(database type) also.
Forum: ASP.NET 2.0 Professional August 7th, 2007, 04:57 AM
Replies: 3
Views: 1,135
Posted By gaurav_jain2403
Write following code in DataGrid_ItemDataBound...

Write following code in DataGrid_ItemDataBound event:

DateTime dt = Convert.ToDateTime(e.Item.Cells[5].Text);
string smallDate = dt.ToShortDateString();
e.Item.Cells[5].Text = smallDate;
...
Forum: Visual Studio 2005 August 7th, 2007, 04:46 AM
Replies: 6
Views: 1,031
Posted By gaurav_jain2403
One more thing, change your datareader loop to ...

One more thing, change your datareader loop to

If dr.HasRows Then
While dr.Read()

If strpassword = dr.Item("password") Then

valid = True

End If
Forum: Visual Studio 2005 August 7th, 2007, 04:44 AM
Replies: 6
Views: 1,031
Posted By gaurav_jain2403
I have checked your code. It's fine as far as I...

I have checked your code. It's fine as far as I think. Check the string you are using for Connection.

Add these two lines in your code:
Dim g_login As String
Dim connection As String =...
Forum: ASP.NET 2.0 Basics August 6th, 2007, 01:31 PM
Replies: 5
Views: 1,272
Posted By gaurav_jain2403
Look at this thread: ...

Look at this thread:

http://p2p.wrox.com/topic.asp?TOPIC_ID=63720
Forum: General .NET August 6th, 2007, 01:30 PM
Replies: 10
Views: 6,509
Posted By gaurav_jain2403
Imar, your previous article for saving and...

Imar, your previous article for saving and retrieving files from the database was great.
Forum: General .NET August 6th, 2007, 01:28 PM
Replies: 10
Views: 6,509
Posted By gaurav_jain2403
I have not worked with FormView. But can give you...

I have not worked with FormView. But can give you the idea. Add commandArgument=<%# Bind('DataTableID') %> to linkbutton "InsertButton". when this button is clicked and file for that corresponding...
Forum: ASP.NET 1.0 and 1.1 Basics August 6th, 2007, 12:37 PM
Replies: 12
Views: 1,945
Posted By gaurav_jain2403
I have check your code, it's also giving correct...

I have check your code, it's also giving correct output. Ok, try and change your code with that below:

For Each ctrl As Control In form.Controls
If TypeOf ctrl Is TextBox Then
Dim txt As TextBox...
Forum: General .NET August 6th, 2007, 12:20 PM
Replies: 10
Views: 6,509
Posted By gaurav_jain2403
First of all, datatype of image cannot be...

First of all, datatype of image cannot be varchar. I think it should be image. Or, you can store the path of image file in database table. For uploading the file in some folder on server, use...
Forum: Visual Studio 2005 August 6th, 2007, 10:27 AM
Replies: 7
Views: 1,513
Posted By gaurav_jain2403
Peter, The requirement that I have observed is...

Peter,
The requirement that I have observed is that:
Suppose I have two tables,
Table1
Id Name Phone
1 A 9999999999
2 B 9843242343

Table2
IDFromTable1 Address
Forum: Visual Studio 2005 August 6th, 2007, 10:17 AM
Replies: 6
Views: 1,031
Posted By gaurav_jain2403
Can you tell whether it is going in catch block...

Can you tell whether it is going in catch block or not.. If it is going in catch, what is the error??
Forum: ASP.NET 2.0 Basics August 6th, 2007, 09:55 AM
Replies: 10
Views: 2,143
Posted By gaurav_jain2403
Use Server.Transfer instead of Response.Redirect....

Use Server.Transfer instead of Response.Redirect. But there are some drawbacks with using Server.Transfer . Search and read those drawbacks before using it.
Forum: ASP.NET 2.0 Professional August 6th, 2007, 09:51 AM
Replies: 5
Views: 880
Posted By gaurav_jain2403
Explain clearly what you want to achieve. what...

Explain clearly what you want to achieve. what query you are writing and how you want data to be displayed in datagrid.
Forum: ASP.NET 2.0 Professional August 6th, 2007, 04:41 AM
Replies: 8
Views: 5,129
Posted By gaurav_jain2403
Edit ItemTemplate as follow: ...

Edit ItemTemplate as follow:

<asp:TemplateField>
<ItemTemplate>
<input name="myRadio" onclick="return function1();" type="radio" value='<%# Eval("Value") %>' />
</ItemTemplate>...
Forum: C# August 6th, 2007, 04:34 AM
Replies: 11
Views: 2,098
Posted By gaurav_jain2403
I think Peter's solution is correct. you can call...

I think Peter's solution is correct. you can call another user defined function from btn_click event handler and return true or false from this function according to whether textbox value is...
Forum: ASP.NET 1.0 and 1.1 Basics August 6th, 2007, 04:31 AM
Replies: 12
Views: 1,945
Posted By gaurav_jain2403
Sorry, I don't agree with your solution. You are...

Sorry, I don't agree with your solution. You are right that this is one of the other way to perform the same thing as rsm42 was doing but that will take longer only as it will try to find all...
Forum: ASP.NET 2.0 Basics August 4th, 2007, 05:53 AM
Replies: 4
NaN
Views: 1,340
Posted By gaurav_jain2403
You are most welcome.

You are most welcome.
Forum: ASP.NET 1.0 and 1.1 Basics August 4th, 2007, 05:42 AM
Replies: 12
Views: 1,945
Posted By gaurav_jain2403
In code-behind, you have to do this thing. But if...

In code-behind, you have to do this thing. But if you like, you can also use javascript to check it on client side. for e.g. if user enter the " in textbox, undo the keyboard click event. But then...
Forum: ASP.NET 1.0 and 1.1 Basics August 4th, 2007, 05:07 AM
Replies: 4
Views: 1,423
Posted By gaurav_jain2403
Change the code to: Sub...

Change the code to:

Sub btnSubmit_Click(sender As Object, e As EventArgs)
txtInput.Text = txtInput.Text.Replace("\"", "")

UpdateDB(txtInput.Text)

Response.Write("Details submitted -...
Showing results 26 to 50 of 133

 




Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.