|
|
How to get a selected value from Grid view and what are the properties i have to set in the aspx page for the checkbox field
-
|
|
|
|
|
you can get many examples related to gidview
Here[^].
Best Regards,
Apurva Kaushal
|
|
|
|
|
Fetching location of 5 Km Distance from google map based on zip code or pin code and retriving the value back to the web form.
I am using Google Web service.It is showing the error of Invalid key .
The code as follows:
Dim ProxyHost As String = "192.168.0.100"
Dim ProxyPort As Integer = 8080
Dim ProxyUser As String = ""
Dim ProxyPassword As String = ""
Dim ProxyDomain As String = "http://api.google.com/search/beta2"
Dim oWebProxy As System.Net.WebProxy = New System.Net.WebProxy(ProxyHost, ProxyPort)
oWebProxy.Credentials = New System.Net.NetworkCredential(ProxyUser, ProxyPassword, ProxyDomain)
' obj_wrr.Proxy = oWebProxy
'obj_wrr.Credentials = New System.Net.NetworkCredential(feedid, password)
Dim s As localhost.GoogleSearchService = New localhost.GoogleSearchService
s.Proxy = oWebProxy
Dim r As localhost.GoogleSearchResult
r = s.doGoogleSearch("", TextBox1.Text, 0, 10, False, "", False, "", "", "")
Dim strFile As String = "C:\\result.html"
Dim sw As StreamWriter = File.CreateText(strFile)
sw.WriteLine("" & Microsoft.VisualBasic.Chr(9) & "BODY { font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; font-size : 9pt; color : #000000; SCROLLBAR-FACE-COLOR: white; SCROLLBAR-HIGHLIGHT-COLOR: #003366; SCROLLBAR-SHADOW-COLOR: #003366; SCROLLBAR-3DLIGHT-COLOR: #f9f9f9; SCROLLBAR-ARROW-COLOR: #003366; SCROLLBAR-TRACK-COLOR: white; SCROLLBAR-DARKSHADOW-COLOR: #f9f9f9 }")
For Each dc As localhost.DirectoryCategory In r.directoryCategories
sw.Write("Category : ")
sw.WriteLine(dc.fullViewableName)
sw.WriteLine("
")
Next
For Each re As localhost.ResultElement In r.resultElements
Dim strTitle As String = "" + re.title + " "
sw.WriteLine(strTitle)
Dim strSnippet As String = re.snippet + " "
sw.WriteLine(strSnippet)
Dim strLink As String = "" + re.URL + " - " + re.cachedSize + "
"
sw.WriteLine(strLink)
sw.WriteLine("
")
Next
sw.Close()
Label1.Text = TextBox1.Text + " 's web search"
Dim estResults As Integer = r.estimatedTotalResultsCount
Dim ldTime As Double = r.searchTime
Label1.Text = "Total " + Convert.ToString(estResults) + " " + "1 - 10 seach result Total time:" + Convert.ToString(ldTime)
Dim obj As Object = Nothing
Dim di As DirectoryInfo = New DirectoryInfo(Environment.CurrentDirectory)
Dim strFilePath As String = di.FullName + "\" + strFile
WebBrowser.Navigate(strFilePath, obj, obj, obj, obj)
-- modified at 5:42 Friday 20th October, 2006
|
|
|
|
|
Hello,
I'm developing a web application, and at the beginning, I've put a login box in the main window. From this window, users will be redirectionated to different interfaces depending on their profiles. If you are the root, you will be send to a window with different options than if you are a visitor.
I know how to do this in Java (struts), with profiles, but I don't know how to do it in .NET.
Is there somebody who can help me?
Sorry if you don't understand correctly my English .
|
|
|
|
|
create on table in database, having to columns.........namely
1. User_ID
2. Url_Path(Specify path of the .aspx page here)
So that, through this table u can get the url for that particular user,
So after getting Use_ID from login page, u can easily redirect that user to the respective Url.
Try it out.
May be it will solve ur problem.
|
|
|
|
|
I will think about your solution, but I wonder if there are something in .NET similar to Java. In Java, working with struts, you have a xml file where you can configure the different options or components that your page is going to have. There you can use roles. Then, if some item is defined to role root, it will only be available if you login the system as root.
Here is an example:
<menu name="MenuIntegrado" title="Menu integrado" action="/welcome">
<item name="Option1" title="Insert" roles="Citizen" action="/agenda?method=new">
<item name="Option2" title="Delete" action="/delete">
<item name="Option3" title="Quit" action="/logout">
With this code, we can use the same jsp page for all users, but, if they are "Citizen", they will have an insert option plus the delete and quit option that other people will have.
Is there any solution like this in .NET?
PD. I still have to create the table to have the users, their roles and their passwords, but I would have only one .aspx page.
|
|
|
|
|
Hi all,
Iam developing web application in C#.Net, VS 2005. In this, I want to use Print dialog box, to take the print out. Is there any facility available as in the case of Windows Form( drag and drop Dialog Controls from the tool box).
If source code is available, then it would be much helpful for me.
Kannapiran S
|
|
|
|
|
I think you can use javascript for this purpose. There you can use window.print for this purpose.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi
Guys my application on server is logging the following message in the event log
aspnet_wp.exe (PID: 4100) was recycled because it was suspected to be in a deadlocked state. It did not send any responses for pending requests in the last 600 seconds. This timeout may be adjusted using the <processmodel responsedeadlockinterval=""> setting in machine.config.
what can be the reasons of the dead lock ?
|
|
|
|
|
May be the request what is being executed would have been taking so much of time. You can increase that execution time in the config file of the application.
Best Regards,
Apurva Kaushal
|
|
|
|
|
i am using an application in which i have a google map in which i want to retrive a movie theatres within in a particular distance(5 to 10 Km.) and location is based on the zipcode of that particular area.
i am using visual studio 2003.
Aashutosh kumar
|
|
|
|
|
The reason questions like this don't get answered is because you are asking for someone to provide you with an entire solution to your problem. You need to break out your problem into smaller segments and ask specific questions. What would you think if I were to log into Code Project and say "Can someone provide me with source code for a financial application similar to Quickbooks?" You would think that was a ridiculous request. Well, your request may not be as ridiculous, but nobody here is going to write your code for you. Google's API is well documented and there are other tools for doing geo-location. Try to do what you want first and then ask specific questions.
Also, this is an ASP .NET forum. The question you are wanting an answer for would be better categorized in the Web Development forum since it is not specific to ASP .NET.
-Matt
------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
|
|
|
|
|
I want to Fetch a particular location from google map of 5 km distance using zip code basis
I am using Google Web service.It is showing the error of Invalid key .
The code as follows:
Dim ProxyHost As String = "192.168.0.100"
Dim ProxyPort As Integer = 8080
Dim ProxyUser As String = ""
Dim ProxyPassword As String = ""
Dim ProxyDomain As String = "http://api.google.com/search/beta2"
Dim oWebProxy As System.Net.WebProxy = New System.Net.WebProxy(ProxyHost, ProxyPort)
oWebProxy.Credentials = New System.Net.NetworkCredential(ProxyUser, ProxyPassword, ProxyDomain)
' obj_wrr.Proxy = oWebProxy
'obj_wrr.Credentials = New System.Net.NetworkCredential(feedid, password)
Dim s As localhost.GoogleSearchService = New localhost.GoogleSearchService
s.Proxy = oWebProxy
Dim r As localhost.GoogleSearchResult
r = s.doGoogleSearch("", TextBox1.Text, 0, 10, False, "", False, "", "", "")
Dim strFile As String = "C:\\result.html"
Dim sw As StreamWriter = File.CreateText(strFile)
sw.WriteLine("" & Microsoft.VisualBasic.Chr(9) & "BODY { font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; font-size : 9pt; color : #000000; SCROLLBAR-FACE-COLOR: white; SCROLLBAR-HIGHLIGHT-COLOR: #003366; SCROLLBAR-SHADOW-COLOR: #003366; SCROLLBAR-3DLIGHT-COLOR: #f9f9f9; SCROLLBAR-ARROW-COLOR: #003366; SCROLLBAR-TRACK-COLOR: white; SCROLLBAR-DARKSHADOW-COLOR: #f9f9f9 }")
For Each dc As localhost.DirectoryCategory In r.directoryCategories
sw.Write("Category : ")
sw.WriteLine(dc.fullViewableName)
sw.WriteLine("
")
Next
For Each re As localhost.ResultElement In r.resultElements
Dim strTitle As String = "" + re.title + "
"
sw.WriteLine(strTitle)
Dim strSnippet As String = re.snippet + "
"
sw.WriteLine(strSnippet)
Dim strLink As String = "" + re.URL + " - " + re.cachedSize + "
"
sw.WriteLine(strLink)
sw.WriteLine("
")
Next
sw.Close()
Label1.Text = TextBox1.Text + " 's web search"
Dim estResults As Integer = r.estimatedTotalResultsCount
Dim ldTime As Double = r.searchTime
Label1.Text = "Total " + Convert.ToString(estResults) + " " + "1 - 10 seach result Total time:" + Convert.ToString(ldTime)
Dim obj As Object = Nothing
Dim di As DirectoryInfo = New DirectoryInfo(Environment.CurrentDirectory)
Dim strFilePath As String = di.FullName + "\" + strFile
WebBrowser.Navigate(strFilePath, obj, obj, obj, obj)
|
|
|
|
|
Did you sign up for a Google Maps API key here: http://www.google.com/apis/maps/[^]?
If so, you have to make sure you are using the key from the server that you typed into the API key signup page. If you are running it from your local system, then you need to generate a key for "localhost".
-Matt
------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
|
|
|
|
|
Yes I sign up for a Google Maps API key for local host .But Same Error . Is there any other option to fetch a particular location from Map using zip code of 5 km Distance
|
|
|
|
|
Hi,
I am using ajax(anthem,also am new to this).I am using a ajax button control on click event of this i am validating the text entered and at the same time calling a method in cs file to check whether data exists in DB.However this method is not called and only the validations r performed.
Is it that if i use ajax button control i cannot call a method from cs file and only use javascript?
Herez my code:
private void btn_Login_Click(object sender, System.EventArgs e)
{
Anthem.Manager.AddScriptForClientSideEval("EnterText()") ;
this.Panel1.Visible = ! this.Panel1.Visible;
this.Panel1.UpdateAfterCallBack = true;
BindDataSource();//method written to chk whether username exists
}
is there any alternative way of calling the method
Thanks,
Mini
|
|
|
|
|
how can i make URLs clear ,avoiding dirty query strings As used in google (SEO) www.google.com/hpdir , www.google.com/hpdir/atrs . Not in this way www.google.com/hpdir?catid="arts" please help
wajeeh ahmed
|
|
|
|
|
You can rewrite the URl to make that clean. Here[^] you will get how to do that.
Best Regards,
Apurva Kaushal
|
|
|
|
|
I'm working on an ASP.NET 2.0 web app using C# and SQL Server 2000.
I assign my user informations to Profile.id,Profile.name,profile.email etc.
Now when I run application I'm getting a Provider.ProviderException stating "This property cannot be set for anonymous users". What does it mean and how can I fix it ?
thx,
www.behzadi.net
|
|
|
|
|
SIR,
Can u please tell me something about STA in VB.Net.
|
|
|
|
|
It stands for Single Threaded Apartment IIRC
|
|
|
|
|
Hi
I am working on web application using ASP.NET,vb.net & backend as SQL SERVER 2000.
1- I want construct a web page where any user can send an sms to US phone numbers only. The sms willbe send to around 6 gateways & the sms will be sent only through the correct gateway(i have a list with available gateways).
We will use an external SMTP to avoid blocking or blacklisting due to sending several sms's to wrong gateways.
2- Also i want to enable the sender to chose to route the response to his phone or email....
Any ideas on step 1,2,1 and 2.....
I would appreciate it
Thanks.
Samer
|
|
|
|
|
You can take some help from Here[^]
Best Regards,
Apurva Kaushal
|
|
|
|
|
hi
i want to print particular part of the page like datagrid for a report.
so how can it possible?
if any solution in Javascript, ASP.Net or CSS then you can reply me.
it's very important to me.
ok
Thanks
jigisha
|
|
|
|
|