|
thanx, but it seems that it doesn't create a folder, so it gives the next exception"
x = {"Could not find a part of the path ...."}
|
|
|
|
|
I've got you thanx!!!
I created the folder first and then used Request.PhysicalApplicationPath
Thank you
|
|
|
|
|
Hi!
Long time since I posted here...
I created a typed dataset using the wizard by adding a Dataset to the project.
I have a very variable menu(for a web page) structure that is stored in a database(SQL2K5X).
I need to be able to have the menu items stored as an xml file that the menu control will read from and I don't know how to do that. I tried several things but... I'm here
So how do I dynamically manage my menu from a database?
Thank you for your help, sincerely,:->
Antoine
|
|
|
|
|
I hosted one page and also bin directory,web.config and precompiledapp.config while deploying will get these files.i just add only two controls in that page one HTML Text box and one Asp Label Control but when i open that page i could see only the Html Text box, Label is not shown in that page.But when i check the source of this page i could see the Label and its Text.what is the problem is there anything should i host.
|
|
|
|
|
Hi,
i have three asp.net applications in different domains say www.domain1.com and www.domain2.com and www.domain3.aspx.
Two pages are there in each applications .First LogIn.aspx and other MyPage.aspx. In mypage of www.domain1.com, i have a link to mypage.aspx of www.domain2.aspx and www.domain3.aspx. now my requiremets are:
1> when user login in www.domain1.aspx, and clicks any link on MyPage.aspx, say he clicks www.domain2.aspx, then he shud be redirected to Mypage.aspx of www.domain2.aspx. it shud not show him its login page .same for www.domain3.aspx.i have to use forms authentication.
Its basicly a single sign on.
The problem i am facing excatly is that, i acieved this using same machinekey,validationkey for all in web.config like
<machinekey validationkey="F9D1A2D3E1D3E2F7B3D9F90FF3965ABDAC304902"
="" decryptionkey="F9D1A2D3E1D3E2F7B3D9F90FF3965ABDAC304902F8D923AC" validation="SHA1">
But i need that the validation keys should be different for different applicatons in there web.config ,and when i click the links from www.domain1.aspx then anyways i save it in the formauthetication cookie and also i want to add some more information in formauthentication cookie.
Please help me in this. Its urgent.Any other way to get this functionality achieved ia also welcome
thx
|
|
|
|
|
hello friends
i want to send a mail in asp.net but i cant.
althought i could send mail in localhost but i dont know the smtpserver value for set.
if every body know the smtpserver value ,please say me.
thank you(msma)
oh my god
im alone and alone
and nobody close me
no body know me
nobosy love me
nobody like me
but i have u
you like me
u love me
u power me
and u are all of my things...
thank u
|
|
|
|
|
Wow - a sig that's longer than your question, and is a poem in txt speak.
If you don't know the SMTP server, you can't send mail, simple as that. Check your mail program to find out what your smtp server is.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
thank you Christian
but can you say me more details ...
where can i find this value?
in the control panle of my site or else...
please say me in more details
oh my god
im alone and alone
and nobody close me
no body know me
nobosy love me
nobody like me
but i have u
you like me
u love me
u power me
and u are all of my things...
thank u
|
|
|
|
|
Dude, your sig is kind of annoying. Not because of it's contents, but because it takes up so much space.
Honestly, I can't say in great detail without knowing what your mail program is.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
Replace your code with the following code and check your application:-
<code>static string HostName = System.Net.Dns.GetHostName();
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
message.To.Add("xxx@xxx.com");
message.Subject = "This is the Subject line";
message.From = new System.Net.Mail.MailAddress("yyy@yyy.com");
message.Body = "This is the message body";
System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient(HostName);
smtp.Send(message);</code>
Regards,
Sandeep Kumar.V
|
|
|
|
|
How i can set the dropdownlist without using Selectindex property. Because in my repeater control (where i am displaying dropdownlist data) , i don't have assoicated listindex values, i just have dropdown list text.
I tried to use
((DropDownList)(FormView1.FindControl("CmbCountry"))).Text= "USA"; and i got erroe as below
has a SelectedValue which is invalid because it does not exist in the list of items.
Please help...
|
|
|
|
|
Amit Kumar G wrote: has a SelectedValue which is invalid because it does not exist in the list of items.
OK, so you're on the right track, but the text you tried to set does not appear in the list. Therefore, if you use a string that does appear in the list, this is the right way to set the value by text instead of index. Isn't there also a findindex method ? Or you can iterate over the Items collection to find the one you want, to ensure it is there.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
oh dont worry...
its easy
just set dropdownlist_name.SelectedValue="USA"
now test it and enjoy...
msma
www.toolsfa.com
|
|
|
|
|
Dear Mohsen,
It is giving the same error
CmbCountry' has a SelectedValue which is invalid because it does not exist in the list of items.Parameter name: value
when i am doing
((DropDownList)(FormView1.FindControl("CmbCountry"))).SelectedValue = "USA";
|
|
|
|
|
test this code:
for (int i = 0; i < [your repeater].Rows.Count; i++)
{
Control ctrl = gv_links_edit.Rows[i].Cells[0].FindControl("[your item name]");
DropDownList ddl= (DropDownList)ctrl;
ddl.SelectedValue="USA";
}
i use this code and i dont have any problem.
good luck
msma.
www.toolsfa.com
|
|
|
|
|
Solved, In case some one is having similar probs.
var lb = document.getElementById("FormView1_CmbCountry");
for(var i=0;i<lb.options.length;i++)
{
if(lb.options[i].text=sCountry)
{
lb.options[i].selected = sCountry;
}
}
Thanks for your reply....;)
Amit
|
|
|
|
|
This works ? It looks like javascript to me, and I thought the selected property could only be true or false ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I try to use the dataRepeater to show a reapet data in a web page, the database is Sql
but unfortunatly i can't reach my point
please can someone help me (it's urgent)
Thank you very much
Assaf
|
|
|
|
|
Here[^] is an article that should at least get you started on what you're looking for (since you didn't post any code or an error you're receiving I'm not going to do much at this point)
Assaf82 wrote: please can someone help me (it's urgent)
Everyone's problem/question is "urgent", that doesn't makes your special so saying its urgent wont speed up the process.
"Well yes, it is an Integer, but it's a metrosexual Integer. For all we know, under all that hair gel it could be a Boolean."
Tom Welch
|
|
|
|
|
Well Tom I'm sorry
it's benifit, but can you tell me how to assaign the data to the element in the repeater
Thank you
Assaf
|
|
|
|
|
I try the code you give it to me but it give me th following error:
"The DataSourceID of 'Repeater1' must be the ID of a control of type IDataSource. A control with ID 'SqlDataSource1' could not be found."
What it's IDataSource type and how i can solve it
Thank in advance
Assaf
|
|
|
|
|
To assign vlaues in data repeater...
<%#DataBinder.Eval(Container.DataItem, "FirstName")%>
Thanks
Amit
|
|
|
|
|
"The DataSourceID of 'Repeater1' must be the ID of a control of type IDataSource. A control with ID 'SqlDataSource1' could not be found."
This message states it can't find the sqldatasource control you assigned to the repeater.
You could set the datasource in the code behind using a reader, dataset or custom business object as well. Otherwise, you will need to ensure you have the control on your page.
|
|
|
|
|
Please Someone can help me
i write this code but it didn't work cn someone tell here is the wrong :
Dim Conn As SqlConnection
Dim Query As String
Dim SqlComm As SqlCommand
Dim reader As SqlDataReader
Dim dt As New DataTable
dt.Columns.Add("FNAME")
Dim row As DataRow
Conn = New SqlConnection("Data Source=toshiba-owner;Initial Catalog=HRDataBase;Integrated Security=True")
Query = "SELECT fName,lName FROM Employee WHERE (EmployeeNum = 1243)"
SqlComm = New SqlCommand(Query, Conn)
Conn.Open()
reader = SqlComm.ExecuteReader
row = dt.NewRow
While reader.Read
row("fName") = reader.GetValue(0)
row("lName") = reader.GetValue(1)
dt.Rows.Add(row)
End While
myRepeater.DataSource = dt
myRepeater.DataBind()
Conn.Close()
and this error still appear:
"The DataSourceID of 'Repeater1' must be the ID of a control of type IDataSource. A control with ID 'SqlDataSource1' could not be found"
Thanks in advance
Assaf
|
|
|
|
|
what is on your aspx page? Typically that is an error caused by wrongly assinging the datasource control to an object like a repeater (usually on the UI side).
Outside of this, you only add one column to your data table, yet try to fill two columns from a data reader.
Check the aspx page and the properties delcared for the repeater control. More than likely you will find the error.
|
|
|
|