|
Hi All
I've got the following connection string in my web.config file, when I "view in browser" through VS's built in web server everything works fine, however when I copy everything to the IIS wwwroot folder and browse that I get the following error:
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
I've searched high an low but can't get the thing working!
<add name="ConnectionString5" connectionString="DSN=Excel Files;DBQ=C:\Inetpub\wwwroot\A2Z.xls;;DefaultDir=C:\Inetpub\wwwroot;DriverId=1046;MaxBufferSize=2048;PageTimeout=5;" providerName="System.Data.Odbc"/>
Really appreciate any help (again )
|
|
|
|
|
Can you try re-registering .net with IIS using aspnet_regiis.exe
Venky
|
|
|
|
|
I don't want to use any database access yet, as I don't know squat about mySQL, so how can I set up a paged system, where each page is a scanned image from a product brochure. I would like to have a menu item for each brochure, but then I seriously don't want sub-menu items for e.g. "Page 1", "Page 2".
I could get creative with a generic paging system using MultiView and View, but I need to demonstrate the content tomorrow. This is only p.o.c. for the client, so I need the quickest, and obviously dirtiest, way to page a group of pages. My first thought is a second, horizontal menu, with page numbers on it. Any other suggestions?
|
|
|
|
|
Create a list of data in code, that's a perfectly valid data source for a data driven control.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hi
i create a simple multi language website with visual studio 2005 auto generated local resource, now i want to set default language in web.config file but how to do ?
thanks
|
|
|
|
|
hi,
We are using .Net 2.0 Web Services. I am looking for a way to get hold of Request/Response XML sent by .net.
Any suggestions?
Keep DotNetting!!
GeekFromIndia
|
|
|
|
|
Hi friends!
I am new in ASP.NET, I started ,a few days ago, to writing a website using this language. I know about C# well and I thought I can learn ASP.NET easily but now I'm confused, I don't know where to began. Please help me.
Thank you in advance.
|
|
|
|
|
ASP.NET for beginners.[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Above reply is the best one
I wanted to suggest one more think
1.Buy ASP.NET book or hire it form your friends
2.After that take an active part in Code Project forum just check what other developers are facing problems and also see its solution
Try to resolve this issue if ou have enough time (Start from Simple one)
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
learn the lifecycle of a page object, i.e. what events fire in what order, and what each event is intended to do
once you understand how that works, the rest is easy
|
|
|
|
|
Hi all,
I have two Problem please help me.
One:
I want secure pages and i wrote this code for it
<authentication mode="Forms">
<forms name="myCookie" timeout="30" loginUrl="English.aspx" defaultUrl="_Default.aspx">
<credentials passwordFormat="Clear">
<user name="myUserName" password="myPassword"/>
</credentials>
</forms>
</authentication>
<authorization>
<allow users="myUserName"/>
<deny users="?"/>
</authorization>
but I don't access to _Default.aspx page.
Two:
I want a DropDownList that AutoPostBack property is true
and i wrote this code for select an item:
protected void ddlField_SelectedIndexChanged(object sender, EventArgs e)
{
row = myFunction(2, ddlField.SelectedItem.Text);//row select index in database
DT_SelectAdeptP = TA_SelectAdeptP.GetData(1, row);
ddlAdept.DataSource = DT_SelectAdeptP;
ddlAdept.DataTextField = "Adept";
ddlAdept.DataBind();
}
but this code didn't execute and page is loading agian
Please help me.
Thanks in advance.
|
|
|
|
|
I am trying to hide/unhide a calendar that I created inside a gridview. I would like to get it hidden when I click the "Update" option in the gridview. Now after click the "Update" the calendar comes up because I don't have any code defined.
I was thinking if I add some code inside the RowCommand event it could works but I was unable to find the control. I tried this but I got errors in the syntax.
Calendar Cal = (Calendar)Gridview.Findcontrol("Cal1")
Cal.Visible = false;
P.S. I created a button named "CalMABD" to bring the calendar up after click it I tried adding a "onclick" event but I have the same issue to findcontrol of the calendar.
Here is the HTML
<asp:templatefield headertext="MABD" itemstyle-horizontalalign="Center" xmlns:asp="#unknown">
<asp:label width="60" font-size="Smaller" id="LabelMABD" runat="server" text="<%# Eval(" mabd=") %>">
<asp:textbox width="60" font-size="Smaller" id="txtMABD" runat="server" text="<%#Bind(" mabd=") %>" autopostback="true" ontextchanged="Deltaprojected_OnTextChanged">
<asp:calendar>
ID="Cal1" runat="server" OnSelectionChanged="Cal1_SelectionChanged"
BackColor="White"
BorderColor="#999999" CellPadding="4" DayNameFormat="Short" Font-Names="Verdana"
Font-Size="8pt" ForeColor="Black" Height="180px" Width="200px" >
<selecteddaystyle backcolor="#666666" font-bold="True" forecolor="White">
<selectorstyle backcolor="#CCCCCC">
<titlestyle backcolor="#999999" bordercolor="Black" font-bold="True">
<asp:templatefield itemstyle-horizontalalign="Center" xmlns:asp="#unknown">
I will appreciate any help on this! Thanks
Daniel HH
|
|
|
|
|
I am dynamically binding a generic list, List<products>, to a ListView. I want to use a DataPaging control with the ListView and use the code behind to assist in the paging. Does anyone know how this can be done?
Thanks,
Steve
|
|
|
|
|
|
Reality Strikes wrote: why everyone stopped responding in this community...........
Maybe no one has an answer for you.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
u mean to say, no one ever came across this hurdle...........
on my way to track it down, let's see if someone can point me to the right direction..............
|
|
|
|
|
I tend not to answer much anymore because the questions are getting dumber and dumber.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hi
i created a resource file for my webPage for each language, but i want to when user click RightToLeft language, the webPage align it's controls from Right to left, for this, i create a variable in each resource file named 'Layout', then set it for english lang to ltr and for arabic lang to rtl. then in source of page , modify body tag as follow :
<body dir="<% Resources:PageResource1, Layout %>" runat="server">
but when i compile my webSite and set arabic language, nothing occured.
where does my problem and how to solve it ?
thanks
|
|
|
|
|
Hi Gurus,
I have interesting question in front of me.
I have a GIS (mapping) application which has Login.aspx as login page and a startup page.
it redirects to MAP page where the map is shown also at the left side I have a pane where the report like controls are .
Now I have generated automated mails which will give me information about some items from the map and it will have link for those items which need to be located onto the map.. but see there is a barrier here login.aspx. User will click the link in his mail and it should straightaway take him to
the application locating inside the map. I know how to locate but there are two scenarios user may have already this GIS application open or he may not have.
User clicks the link it opens a page which will gather all the information and redirect to login.aspx
One option is to login automatically and redirect to map locating the feature. but my question is can the startup page be given paramteres?
if the user has already open gis application (he has already logged in), now user clicks on the link a page opens which redirects me to this open application.. how how can I locate the open Map window?
and how can I make it redirect externally?
I am a new bee so need some feedback?
regards
Vijay
|
|
|
|
|
I have been given a project where we are sending data from our website to a website that another company owns. They have asked us to use the "Form post" method of doing this. The screen that we are using will require us to send multiple sets of data to their site in some kind of a loop format.
I have no experience in this and am hoping that someone here will be able to give me pointers to where I should start.
Steps
1. User fills in fields on our website and clicks submit button.
2. We loop through the data the user entered and send the data to the website of another company.
3. We bring the user to a "Confirmation" page telling them that their information has been submitted and they will be contacted soon.
We are using ASP.NET and VStudio 2008
Thanks.
|
|
|
|
|
|
What would be a good mechanism for displaying, a) a long piece of text in several pages, and b) several product descriptions? For the latter, I think a templated DataList would be good. I don't want to simply have a long, scrolling page showing all products etc.
|
|
|
|
|
Brady Kelly wrote: I don't want to simply have a long, scrolling page showing all products etc.
You mean like how codeproject lets the user set the number of threads to show in one page?
led mike
|
|
|
|
|
Sort of, but it's a consumer site, so I'm not giving the users too much choice yet - it's a very, very low budget site for a friend. The text side needs some explanation: If I have a long piece of text, I want to break it up into pages, just as a repeating control would do for separate items. I'm even willing to break the text myself....Oh, Pages of text in a table and a paging DataList. Thanks, just talking about it has been a help.
|
|
|
|
|
hi,
i have created 2 drop down lists and made a web service.
// This is Web servie, which is having the 2 web methods.
// a GetCountries
//b. GetStates
using System;<br />
using System.Web;<br />
using System.Collections;<br />
using System.Collections.Generic;<br />
using System.Web.Services;<br />
using System.Web.Services.Protocols;<br />
using System.Xml.Serialization;<br />
<br />
using System.Collections.Specialized;<br />
using AjaxControlToolkit;<br />
<br />
<br />
[WebService(Namespace = "http://tempuri.org/")]<br />
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]<br />
[System.Web.Script.Services.ScriptService]<br />
public class TerritoriesService : System.Web.Services.WebService<br />
{<br />
<br />
public TerritoriesService()<br />
{<br />
<br />
}<br />
<br />
<br />
<br />
[WebMethod]<br />
public string HelloWorld()<br />
{<br />
return "Hello World";<br />
}<br />
<br />
<br />
[WebMethod]<br />
public CascadingDropDownNameValue[] GetCountries(string knownCategoryValues, string category)<br />
{<br />
UNIVERSAL.CommonBLL.Country.Country oCountry = UNIVERSAL.CommonBLL.Country.CountryFactory.GetInstance();<br />
UNIVERSAL.CommonBLL.Country.CountryCollection objCountryCollection = (UNIVERSAL.CommonBLL.Country.CountryCollection)oCountry.GetAll();<br />
List<CascadingDropDownNameValue> values = new List<CascadingDropDownNameValue>();<br />
<br />
foreach (UNIVERSAL.CommonBLL.Country.Country objCountry in objCountryCollection)<br />
{<br />
values.Add(new CascadingDropDownNameValue(objCountry.Name,objCountry.PKID.ToString()));<br />
}<br />
<br />
return values.ToArray();<br />
<br />
<br />
}<br />
<br />
[WebMethod]<br />
public CascadingDropDownNameValue[] GetStates(string knownCategoryValues, string Category)<br />
{<br />
StringDictionary kv = CascadingDropDown.ParseKnownCategoryValuesString(knownCategoryValues);<br />
int CountryID;<br />
<br />
if (!kv.ContainsKey("Country") || !Int32.TryParse(kv["Country"], out CountryID))<br />
{<br />
return null;<br />
}<br />
<br />
UNIVERSAL.CommonBLL.States.States oState = UNIVERSAL.CommonBLL.States.StatesFactory.GetInstance();<br />
UNIVERSAL.CommonBLL.States.StatesCollection objStateCollection = (UNIVERSAL.CommonBLL.States.StatesCollection)oState.GetAll(CountryID.ToString());<br />
List<CascadingDropDownNameValue> values = new List<CascadingDropDownNameValue>();<br />
<br />
foreach (UNIVERSAL.CommonBLL.States.States objState in objStateCollection)<br />
{<br />
values.Add(new CascadingDropDownNameValue(objState.Name, objState.PKID.ToString()));<br />
}<br />
return values.ToArray();<br />
}<br />
}<br />
My aspx page codeing is belo
<asp:ScriptManager ID="ScriptManager1" runat="server">
<asp:DropDownList ID="ddlCountry" runat="server">
</asp:DropDownList></td>
<td style="width: 100px">
<cc1:CascadingDropDown ID="CascadingDropDown1" runat="server"
TargetControlID="ddlCountry"
Category ="Country"
PromptText="PleaseSelectCountry"
LoadingText="Please Wait..."
ServiceMethod="GetCountries"
ServicePath="TerritoriesService.asmx" />
</td>
</tr>
<tr>
<td style="width: 100px">
States</td>
<td style="width: 100px">
<asp:DropDownList ID="ddlStates" runat="server">
</asp:DropDownList></td>
<td style="width: 100px">
<cc1:CascadingDropDown ID="CascadingDropDown2" runat="server"
Category ="Country"
TargetControlID="ddlStates"
ParentControlID="ddlCountry"
PromptText="Please Select State"
LoadingText="Please Wait..."
ServiceMethod="GetStates"
ServicePath="TerritoriesService.asmx" />
It works well for first dropdown list but in second drop down list it give the error messaage Method Erro 500after the prompt message of CasecadingDropdown
The web service is working fine, but in the page its not giveing result.
Pleaes help.
modified on Thursday, September 11, 2008 10:11 AM
|
|
|
|