|
Make sure in the webconfig file that you have the correct application name for the membership provider. In fact make sure this part of the web.config file is the same as the other
|
|
|
|
|
Hello
I put my application in the server
in the application the user can export some data to an excel file
my problem is that the excel file don't open on the client and it will just open the excel in the task manager in server
Please can someone help me
"""""
On Error GoTo errprocess
Dim objSheet As Microsoft.Office.Interop.Excel.Worksheet
Dim wb As Microsoft.Office.Interop.Excel.Workbook
wb = New Excel.Application().Workbooks.Add(path)
wb.Application.Visible = True
objSheet = wb.ActiveSheet
objSheet.Cells(11, 2) = "ttt"
objSheet.Cells(13, 2) = "ggg"
objSheet.Cells(14, 2) = "kkk"
objSheet.Cells(15, 2) = "eee"
objSheet.Cells(16, 2) = "rrr"
objSheet.Cells(14, 4) = "yyy"
objSheet.Cells(12, 4) = "bbb"
objSheet.Cells(17, 4) = "ccc"
''''''
objSheet.Columns.AutoFit()
Exit Sub
errprocess: '
Response.Write(Err.Description & " " & Err.Number & " " & Err.Source)
Response.End()
""""""
Thanks in advance
Assaf
|
|
|
|
|
I am doing an application in ASP .NET in which i am using a list box with multiple selection. I am using a sqldatasource to bind values to the list box. Everything works fine till this.
i want the page to send the selected multiple values in list box to be in two different text boxes
i tried this code and working, all the selected values comes to single text boxes. I want first selected value to be in textbox1 and second value to be in textbox2..
This is the code...
On Click event of a button
int i;
txt_uname1.Text = "selected" + " ";
for (i = 0; i < list_users.Items.Count - 1; i++)
{
if (list_users.Items[i].Selected)
{
txt_uname1.Text = txt_uname1.Text + list_users.Items[i].Text + " ";
}
}
Please help me fixing this...
Thanks in advance
SAJAN A PILLAI
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
What if user selects more than 3 items from the ListBox ?
Where are you going to show those items ?
Code modification for your logic (Not tested)
int i;
txt_uname1.Text = "selected" + " ";
bool isFirstSelected
for (i = 0; i < list_users.Items.Count - 1; i++)
{
if (list_users.Items[i].Selected)
{
if(!isFirstSelected)
{
//TextBox 1
txt_uname1.Text = list_users.Items[i].Text;
isFirstSelected=true;
}
else
{
//Text Box 2
txt_uname2.Text = list_users.Items[i].Text;
break;
}
}
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
|
|
|
|
|
Thanks for the reply....It works.
SAJAN A PILLAI
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
For that instead of assigning values directly to textbox,first you store values to a string array.And after that you create other loop and assign values to your textboxes.
Hope this will help you
|
|
|
|
|
How to creating application
|
|
|
|
|
Get it
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
|
|
hi what for?
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Hi,
I am create a masterpage and webform and I want to display the webform in one page like when we open the website link ,default page, all the contents display in one page,the user no need to scroll up and down.
How to do this using asp.net masterpage or webform?
Anyone can help?
Thanks.
Regards,
Katelva
|
|
|
|
|
put all the contents inside the content place holder and then u can see it.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Hi,
I have been design my stuff in the webform using masterpage,but when I test using the browser, the user need to scroll down the page to see all the content, I wan to make all the content which user can see in one page?
Regards,
Katelva
|
|
|
|
|
Hi,
I want to drag a panel drop it to another location in the same page.
Just like iGoogle where we can drag and drop the panel from one location to another.
How can I do?
Is there any control in .Net? or Any solution in AJAX?
Thanks
|
|
|
|
|
sjs4u wrote: Is there any control in .Net? or Any solution in AJAX?
Get it
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
|
its my pleasure to help.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
|
|
|
Use Ajax for that.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Hi to all
how to convert to arraylist to dataset, i don't want to add one by one item to dataset by repeating loop.
i want predefined statement to convert Arraylist to dataset
i tried below statement, it is showing error:
DataSet[] ds2 = (DataSet[])arrLst.ToArray(typeof(DataSet));
any suggestions please
This is haneef.............................................................
|
|
|
|
|
Could you tell what are you trying to achieve ?
As you may get better solution than what you are trying
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
|
|
|
|
|
ArrayList arraylistcontainer = new ArrayList(2);
arraylistcontainer.Insert(0, "aa");
arraylistcontainer.Insert(1, "bb");
can you convert this into dataset with out taking any loops.
This is haneef.............................................................
|
|
|
|