|
Thanks for fast reply,
Data is coming from database i have created table dynamically and wants to merge cells .
i mean iam getting start_cell_number and end_cell_number from database columns and stored in array.and after stroing the array i have created loop of 32 cells of one row like this.
Dim myarray(32)as integer
for i = start_cell_number to end_cell_number
myarray(i)=1
Next
for d as integer =0 to 31
dim tc as tablcell = new tablecell
if testarray(d)=1
tc.backcolor= color.green
else
tc.backclor= color.yellow
endif
tc.text =" "
trow.cells.add(tc)
table1.row.add(trow)
now i have to merge cells from start_cell_number to end_cell_number ?
tc.columnspan="?" ?
give me hint ?
regards
Rameez
|
|
|
|
|
hi,
i have a grat problem, when i print on crustal repport, the page will be refrech, there are a methode for stoping this refrech?? thank you very mutch.
|
|
|
|
|
I assume that the print operation includes a postback to get data. If it's refreshing, it's because it needs to.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
there are not a methode to stop refrech??
|
|
|
|
|
By a book on ASP.NET so you can understand what it is, and how it works.
Why would it do a refresh, if it didn't need to ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
i would save a string who was obtain with a post of an other page, so when i refresh i lose my variable, how i can stock variable on page?? thank you
|
|
|
|
|
use hidden controls or viswstate or session!
studing is processing in this life.
|
|
|
|
|
This page refresh meaning it have posted to server.You just this button of print run at client,not server,just validation controls using-occur in client.
studing is processing in this life.
|
|
|
|
|
i use following code to create a folder (.net 1.1)
if ( Directory.Exists(Server.MapPath("~/temp") +"/"+ SID) )
{
lbl_event.Text=ss;
Directory.Delete( Server.MapPath("~/temp") +"/"+ SID, true );
}
Directory.CreateDirectory(Server.MapPath("~/temp") +"/"+ SID );
and following error appear "Could not find a part of the path "D:\"."
you can see the error with its details http://kmrt.ir/Welcome.aspx[^]
it is not for permission!
anyone know how could i solve it?!!
please help me
|
|
|
|
|
Nafiseh Salmani wrote: Server.MapPath("~/temp") +"/"+ SID
What kind of system are you using? That would work on a *nix system, as that uses "/" as file path separator, but it would not work on a Windows system, as that uses "\" as file path separator.
You should use the Path.Combine method to form the path, that way it will work regardlesss of what file path separator the system uses:
Path.Combine(Server.MapPath("~/temp"), SID)
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
i checked
Server.MapPath("~/temp") +"/"+ SID . it works .
just when i use
Directory.Delete or
Directory.CreateDirectory it takes Error.
i set the permission also!
How could I solve it?
|
|
|
|
|
Nafiseh Salmani wrote: i checked
Server.MapPath("~/temp") +"/"+ SID
. it works .
In what sense do you mean that it works?
If you are using it as a path in a Windows system, it's not correct. It might work eventhough in some situations, but fail in others.
Nafiseh Salmani wrote: How could I solve it?
Eh? I already told you. Gave you the code for it and everything.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Did you consider using the debugger to see what the path is it's trying to write to ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
I cant use it! because it happen when i upload it not at localhost
|
|
|
|
|
Then write a page which works out the path and writes it to the page, so you can see what you're dealing with.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
You had better debug it,or create a new file to debug filepath validation.Certainly,you also use following:
Directory.Delete(Server.MapPath(@"./temp")+"//"+sid,true);
or
Directory.Delete(Server.MapPath(".//temp")+"//"+sid,true);
Ple notice "/" in limit!
studing is processing in this life.
|
|
|
|
|
Hi,
i would saving a int in variable, When there is the post of variable, I want this record remains variable in the page despite updating the page, I do as follows:
public string s;
protected void Page_Load(object sender, EventArgs e)
{ if (Request.Form["champ"] != "")
{ s = Request.Form["champ"]; }
ViewState["s"] = s;
string s1 = ViewState["s"].ToString();
}
an error was shows : The reference object is not defined by an instance of an object , on line : string s1 = ViewState["s"].ToString();
Please help me to resolve this great problem, thank you very mutch.
|
|
|
|
|
Set it as a hiddenfield server control.
|
|
|
|
|
string s1=(string)ViewState["s"];
studing is processing in this life.
|
|
|
|
|
<ajaxtoolkit:tabpanel runat="server" width="650px" id="pnlDocuments" xmlns:ajaxtoolkit="#unknown">
<contenttemplate>
<asp:updatepanel id="upnlDocuments" runat="server" xmlns:asp="#unknown">
<contenttemplate>
//THIS IS WHERE I WANT TO DOWNLOAD FILE FROM THE SERVER SAY NOTE.TXT OR EMP.DOC BUT I CANNOT
<asp:linkbutton id="lnkViewEmpDoc" runat="server" width="161px" onclick="lnkViewEmpDoc_Click">View Documents
<triggers><asp:postbacktrigger controlid="Submit_Document">
<headertemplate>
Documents
|
|
|
|
|
What is it you are trying to do?
"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
|
|
|
|
|
TRYING TO DOWNLOAD THE FILE FROM THE SERVER TO THE CLIENT
|
|
|
|
|
Again, don't shout using all caps. That is rather rude. You should try describing a bit more in detail what you are trying to accomplish instead of just throwing a few lines of code up there.
"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
|
|
|
|
|
MAYBE THE POSTING WAS NOT THAT CLEAR
|
|
|
|
|
Don't shout.
"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
|
|
|
|